<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">Hi Luka,</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">For me is the same... just to compliant comment inside source code:</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">/* on asterisk user's side, we're using port 1-2.    </div><div style="font-family:arial,sans-serif;font-size:13px"> * Here in non normal human's world, we begin        </div><div style="font-family:arial,sans-serif;font-size:13px"> * counting at 0.                                    </div><div style="font-family:arial,sans-serif;font-size:13px"> */</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">So you confirm that "TAPI/%s","1" map both port0 and port1 to TAPI/1 and you can't use asterisk extensions rule to choose which port to use to route the call....</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Do you think we need to patch the source to use </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial;font-size:small">chan = ast_channel_alloc(1, state, NULL, NULL, "", ext, ctx, 0, c, </span><span style="font-family:arial;font-size:small">"TAPI/%d", (c + 1));</span><br></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial;font-size:small"><br></span></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial;font-size:small">or</span></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial;font-size:small"><br></span></div><div style="font-family:arial,sans-serif;font-size:13px"><span style="font-size:small;font-family:arial">chan = ast_channel_alloc(1, state, NULL, NULL, "", ext, ctx, 0, c, </span><span style="font-size:small;font-family:arial">"TAPI/%d", c);</span><span style="font-family:arial;font-size:small"><br></span></div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">Eddi...</span><br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 11, 2014 at 10:59 PM, Luka Perkov <span dir="ltr"><<a href="mailto:luka@openwrt.org" target="_blank">luka@openwrt.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Eddi,<br>
<span class=""><br>
On Tue, Nov 11, 2014 at 07:11:13PM +0100, Eddi De Pieri wrote:<br>
> it seems it work better in this way...<br>
><br><br>
><br>
> I don't know so well asterisk programming... please let me know if it seems<br>
> correct to you!<br>
<br>
</span>I'm not sure. Why don't you use '"TAPI/%d", c' so the naming starts with 0?<br>
<span class=""><font color="#888888"><br>
Luka<br>
</font></span></blockquote></div><br></div></div>