[asterisk-users] Is it possible to perform PJSIP Add Header prior to calling Queue and have it part of the INVITE packet?
Dan Cropp
dan at amtelco.com
Fri Aug 28 08:20:02 CDT 2015
Thank you Niklas
That solved my problem.
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Niklas Larsson
Sent: Friday, August 28, 2015 1:55 AM
To: asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] Is it possible to perform PJSIP Add Header prior to calling Queue and have it part of the INVITE packet?
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/62cfefb5/attachment.html>
More information about the asterisk-users
mailing list