[asterisk-users] Extract Remote-Party-ID from incoming INVITE indialplan

Jonas Kellens jonas.kellens at telenet.be
Wed Mar 16 08:50:39 CDT 2011


On 03/16/2011 02:07 PM, Danny Nicholas wrote:
> ------------------------------------------------------------------------
>
> *From:* asterisk-users-bounces at lists.digium.com 
> [mailto:asterisk-users-bounces at lists.digium.com] *On Behalf Of *Jonas 
> Kellens
> *Sent:* Wednesday, March 16, 2011 2:39 AM
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion
> *Subject:* [asterisk-users] Extract Remote-Party-ID from incoming 
> INVITE indialplan
>
> Hello list,
>
> is it possible to extract the Remote-Party-ID from an incoming call in 
> the dialplan ? Is there some kind of function for this ?
>
>
>
> Kind regards,
> Jonas.
>
> If you're on the 1.8 branch, it's just a SIPHeader function, otherwise 
> you're out of luck.
>

I'm on 1.6.2.16.1. How about :

exten => _XXX.,n,Set(DID="${SIP_HEADER(Remote-Party-ID)}")


Kind regards,
Jonas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110316/4036a758/attachment.htm>


More information about the asterisk-users mailing list