[asterisk-users] Is it possible to perform PJSIP Add Header prior to calling Queue and have it part of the INVITE packet?
Niklas Larsson
niklas at tese.se
Fri Aug 28 01:55:26 CDT 2015
Den 2015-08-28 kl. 00:07, skrev Dan Cropp:
>
> I have both the PJSIP add and the chan_sip way of adding SIP headers
> in there. The Verbose is showing the variable value is there.
>
> The INVITE to PJSIP/Agent1 does not include either X-My-DNID or
> X-My-DNID2 headers.
>
You have to use an pre-dial handler option in the Dial command:
same => n,Dial(PJSIP/Agent1,,b(set_header^s^1))
[set_header]
exten => s,1,Set(PJSIP_HEADER(add,X-My-DNID2)=${MY_DNID})
same => n,Return
/niklas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150828/fa740ed5/attachment.html>
More information about the asterisk-users
mailing list