[asterisk-dev] Re: Read custom SIP header from Manager API?

Tony Mountifield tony at softins.clara.co.uk
Fri Mar 23 03:16:52 MST 2007


In article <c091208c0703221850h6bc936d1if13690d5ffae7750 at mail.gmail.com>,
Ast Exp <astexp at gmail.com> wrote:
> On 3/22/07, Tony Mountifield <tony at softins.clara.co.uk> wrote:
> >
> > Look at the UserEvent dialplan application, e.g.
> >
> > exten => _X.,n,UserEvent(SIP|SIPHdr: ${YOURSIPHEADER})
> >
> > You would probably put this just before your Dial() statement.
> >
> > Then you could watch for this event over the AMI and store the header
> > against the channel.
> 
> Could this be used to extract the service identifier IE from an IAX
> channel? Something like
> 
> exten => _X.,n,UserEvent(IAX|IAXHdr: ${IAX_IE_SERVICEIDENT})

That would depend only on whether Asterisk makes the value of interest
available via a channel variable.

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org


More information about the asterisk-dev mailing list