<div dir="ltr"><div>On Tue, Nov 11, 2014 at 4:24 PM, Luka Perkov <span dir="ltr"><<a href="mailto:luka@openwrt.org" target="_blank">luka@openwrt.org</a>></span> wrote:<br></div><div class="gmail_extra"><div class="gmail_quote"><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>
</span>I don't remember if that worked on owsip. But asterisk should support<br>
both channels.<br>
<br>
What about TAPI/0? I am unsure if we started naming the channels from 0<br>
or 1...<br>
<span class=""><font color="#888888"><br></font></span></blockquote><div><div>/* on asterisk user's side, we're using port 1-2.    </div><div> * Here in non normal human's world, we begin        </div><div> * counting at 0.                                    </div><div> */                                                  </div></div><div><br></div><div> my doubt is:</div><div><br></div><div>chan = ast_channel_alloc(1, state, NULL, NULL, "", ext, ctx, 0, c, "TAPI/%s", "1");      <br></div><div><br></div><div>If I understand correctly this is like a printf... so it seems it will always map c to TAPI/1</div><div><br></div><div>I think it should be:</div><div><br></div><div><div>chan = ast_channel_alloc(1, state, NULL, NULL, "", ext, ctx, 0, c, "TAPI/%s", sprintf("%d", (c+1)));<br></div></div><div><br></div><div>Let me try...</div><div><br></div><div>Eddi</div><div><br></div></div></div></div>