[asterisk-app-dev] [asterisk-dev] Endpoints vs Extensions

Paul Belanger paul.belanger at polybeacon.com
Fri Aug 22 13:57:08 CDT 2014


On Fri, Aug 22, 2014 at 1:26 PM, Chris Bestall <chris.bestall at gmail.com> wrote:
>
> Matt, Thank you for the detailed response.  I have replied to the correct
> mailing list (asterisk-app-dev).
>
> I have read the ARI portion of the wiki many times, though looks like a lot
> of new information is up at the URL you posted since I last visited:
> https://wiki.asterisk.org/wiki/display/AST/Introduction+to+ARI+and+Channels
>
> I will take what you posted and read the new information and do some
> testing.
>
>> What do you mean by prefix? An example of what flowroute is looking for
>> would help here.
>
> Flowroute supports IP based authentication for outgoing calls, but I also
> need to prepend a prefix before any number when sending an outgoing call.
> The old extension looked like this:
>
> exten => _1NXXXXXXXXX,1,Dial(SIP/123456789*${EXTEN}@flowroute)
>
> Assuming 123456789 is my prefix.
>
> How does this translate to an endpoint?  Do I need to manually prepend the
> prefix when POSTing to URL.  Like
>
> POST
> /channels?endpoint=PJSIP/123456789*5555551212 at flowroute&app=my_awesome_app
>
If it was me, I would use a local channel endpoint, then manipulate
the dialstring as needed.  So it would look something like:

/channels?endpoint=Local/5555551212 at flowroute&app=my_awesome_app

Then in extensions.conf

[flowroute]
exten => _NXXNXXXXXX,1,Dial((SIP/123456789*${EXTEN}@flowroute)


-- 
Paul Belanger | PolyBeacon, Inc.
Jabber: paul.belanger at polybeacon.com | IRC: pabelanger (Freenode)
Github: https://github.com/pabelanger | Twitter: https://twitter.com/pabelanger



More information about the asterisk-app-dev mailing list