Re: [asterisk-dev] Endpoints vs Extensions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 22, 2014 at 1:26 PM, Chris Bestall <chris.bestall@xxxxxxxxx> 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@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@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@xxxxxxxxxxxxxx | IRC: pabelanger (Freenode)
Github: https://github.com/pabelanger | Twitter: https://twitter.com/pabelanger

_______________________________________________
asterisk-app-dev mailing list
asterisk-app-dev@xxxxxxxxxxxxxxxx
http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev




[Index of Archives]     [Asterisk SS7]     [Asterisk Announcements]     [Asterisk Users]     [PJ SIP]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Linux API]

  Powered by Linux