[asterisk-app-dev] Accessing dialplan functions and SIP headers via ARI
Phil Mickelson
phil at cbasoftware.com
Thu Dec 18 05:50:13 CST 2014
Are you asking about the actual caller id or an internal value? If caller
id (the caller's telephone number) can't you get that from the StasisStart
event? I get it when the channel is created by accessing a variable I call
"stasis" like this: stasis.channel.caller.number. If the caller allows
their number to be visible I can see it just fine.
Otherwise, if you're looking for a unique number why not just use the
channel.id value?
Sorry if I don't understand the question correctly.
BTW, I'm using Asterisk 13 and the Node ARI interface.
Phil M
On Thu, Dec 18, 2014 at 5:22 AM, Ben Merrills <b.merrills at mersontech.co.uk>
wrote:
>
> You can access the SIP headers using "SIP_HEADER(from)" (for example), I
> do it in ARI at the moment, using "Channels.GetChannelVar".
>
> I'm using 12.7
>
> Ben
>
> > -----Original Message-----
> > From: asterisk-app-dev-bounces at lists.digium.com [mailto:
> asterisk-app-dev-
> > bounces at lists.digium.com] On Behalf Of Paul Belanger
> > Sent: 18 December 2014 04:04
> > To: Asterisk Application Development discussion
> > Subject: Re: [asterisk-app-dev] Accessing dialplan functions and SIP
> headers
> > via ARI
> >
> > On Wed, Dec 17, 2014 at 9:51 PM, Alistair Cunningham
> > <acunningham at integrics.com> wrote:
> > > Our re-write of the Enswitch telephony to use the ARI is making good
> > > progress. We have encountered one thing that we can't figure out how
> > > to do, and that's get the values of SIP headers via the ARI. Our
> > > developer tells me that dialplan functions such as SIP_HEADER() are
> > > unavailable via ARI. Is that correct? If so, what would be required to
> add
> > this to the ARI?
> > >
> > He is correct, had the same problem. I wanted access to the SIP callid
> field
> > for some queue stuff, only way I could get it was to preset a channel
> variable
> > before dumping the call into stasis.
> >
> > --
> > Paul Belanger | PolyBeacon, Inc.
> > Jabber: paul.belanger at polybeacon.com | IRC: pabelanger (Freenode)
> > Github: https://github.com/pabelanger | Twitter:
> > https://twitter.com/pabelanger
> >
> > _______________________________________________
> > asterisk-app-dev mailing list
> > asterisk-app-dev at lists.digium.com
> > http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev
>
> _______________________________________________
> asterisk-app-dev mailing list
> asterisk-app-dev at lists.digium.com
> http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-app-dev/attachments/20141218/885a9f36/attachment-0001.html>
More information about the asterisk-app-dev
mailing list