<div dir="ltr">Thanks, that almost worked. This is what I get:<div><br></div><div>When calling from ARI (btw, I'm using Node ARI client)</div><div><br></div><div><div> Activating Stasis app 'hello'</div><div> -- Called 15555551212@flowroute</div>
<div> -- Executing [15555551212@flowroute:1] Dial("Local/15555551212@flowroute-00000004;2", "PJSIP/123456789*15555551212@flowroute") in new stack</div><div> -- Called PJSIP/123456789*15555551212@flowroute</div>
<div> == Spawn extension (flowroute, 15555551212, 1) exited non-zero on 'Local/15555551212@flowroute-00000004;2'</div></div><div><br></div><div>The number dialed never rings. Though when I do everything from CLI like so:</div>
<div><br></div><div><div>sip*CLI> channel originate LOCAL/15555551212 application Noop()</div><div> -- Called 15555551212</div><div> -- Executing [15555551212@default:1] NoOp("Local/15555551212@default-00000005;2", "") in new stack</div>
<div> -- Executing [15555551212@default:2] Dial("Local/15555551212@default-00000005;2", "PJSIP/123456789*15555551212@flowroute") in new stack</div><div> -- Called PJSIP/123456789*15555551212@flowroute</div>
<div> -- PJSIP/flowroute-00000003 is ringing</div><div> -- Local/15555551212@default-00000005;1 is ringing</div><div> -- PJSIP/flowroute-00000003 answered Local/15555551212@default-00000005;2</div><div> -- Channel Local/15555551212@default-00000005;2 joined 'simple_bridge' basic-bridge <492c9d82-5140-40d2-aa5e-80ea9a9c5f6c></div>
<div> -- Local/15555551212@default-00000005;1 answered</div><div>[Aug 23 20:52:47] WARNING[2455]: pbx.c:10173 pbx_outgoing_exec: No such application 'Noop()'</div><div> -- Channel Local/15555551212@default-00000005;2 left 'simple_bridge' basic-bridge <492c9d82-5140-40d2-aa5e-80ea9a9c5f6c></div>
<div> == Spawn extension (default, 15555551212, 2) exited non-zero on 'Local/15555551212@default-00000005;2'</div></div><div><br></div><div>the number rings.</div><div><br></div><div>Any ideas as to why the CLI works and ARI doesnt.</div>
<div><br></div><div>I can include my code if needed but it's basically just trying to execute this:</div><div><br></div><div><div> newChan.originate(</div><div> { endpoint: "LOCAL/15555551212@flowroute", app : "hello" },</div>
<div> function (err, channel) {</div><div> }</div></div><div> })</div><div><br></div><div><br></div><div><br></div><div><br></div><div class="gmail_extra"><div class="gmail_quote">On Fri, Aug 22, 2014 at 2:57 PM, Paul Belanger <span dir="ltr"><<a href="mailto:paul.belanger@polybeacon.com" target="_blank">paul.belanger@polybeacon.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Fri, Aug 22, 2014 at 1:26 PM, Chris Bestall <<a href="mailto:chris.bestall@gmail.com">chris.bestall@gmail.com</a>> wrote:<br>
><br>
> Matt, Thank you for the detailed response. I have replied to the correct<br>
> mailing list (asterisk-app-dev).<br>
><br>
> I have read the ARI portion of the wiki many times, though looks like a lot<br>
> of new information is up at the URL you posted since I last visited:<br>
> <a href="https://wiki.asterisk.org/wiki/display/AST/Introduction+to+ARI+and+Channels" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Introduction+to+ARI+and+Channels</a><br>
><br>
> I will take what you posted and read the new information and do some<br>
> testing.<br>
><br>
>> What do you mean by prefix? An example of what flowroute is looking for<br>
>> would help here.<br>
><br>
> Flowroute supports IP based authentication for outgoing calls, but I also<br>
> need to prepend a prefix before any number when sending an outgoing call.<br>
> The old extension looked like this:<br>
><br>
> exten => _1NXXXXXXXXX,1,Dial(SIP/123456789*${EXTEN}@flowroute)<br>
><br>
> Assuming 123456789 is my prefix.<br>
><br>
> How does this translate to an endpoint? Do I need to manually prepend the<br>
> prefix when POSTing to URL. Like<br>
><br>
> POST<br>
> /channels?endpoint=PJSIP/123456789*5555551212@flowroute&app=my_awesome_app<br>
><br>
</div>If it was me, I would use a local channel endpoint, then manipulate<br>
the dialstring as needed. So it would look something like:<br>
<br>
/channels?endpoint=Local/5555551212@flowroute&app=my_awesome_app<br>
<br>
Then in extensions.conf<br>
<br>
[flowroute]<br>
exten => _NXXNXXXXXX,1,Dial((SIP/123456789*${EXTEN}@flowroute)<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Paul Belanger | PolyBeacon, Inc.<br>
Jabber: <a href="mailto:paul.belanger@polybeacon.com">paul.belanger@polybeacon.com</a> | IRC: pabelanger (Freenode)<br>
Github: <a href="https://github.com/pabelanger" target="_blank">https://github.com/pabelanger</a> | Twitter: <a href="https://twitter.com/pabelanger" target="_blank">https://twitter.com/pabelanger</a><br>
</font></span></blockquote></div><br></div></div>