[Asterisk-Users] SipAddHeader bug?

Kevin P. Fleming kpfleming at digium.com
Wed Jan 18 19:01:15 MST 2006


Juan J. Sierralta P. wrote:

> exten => _9XXXXXXX,1,SipAddHeader(P-Asserted-Identity: <sip:${CALLERIDNUM}
> exten => _9XXXXXXX,2,SipAddHeader(P-Asserted-Identity: tel:${CALLERIDNUM})
> exten => _9XXXXXXX,3,Dial(SIP/${EXTEN}@${SIPTRUNK},,tT)
> exten => _9XXXXXXX,4,Congestion
> 
>     The problems is that Asterisk only add the last (priority 2)
> header if I remove the second SipAddHeader the first one appears on
> the INVITE. How do I add two or more headers ?

You cannot add two headers with the same label; just add one header with 
both values in it.



More information about the asterisk-users mailing list