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
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users