[Asterisk-Users] SipAddHeader bug?

Alexander Lopez alex.lopez at opsys.com
Wed Jan 18 19:10:14 MST 2006


So this will work??

exten => _9XXXXXXX,1,SipAddHeader(P-Asserted-Identity:
sip:${CALLERIDNUM} tel:${CALLERIDNUM})
 


> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com 
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of 
> Kevin P. Fleming
> Sent: Wednesday, January 18, 2006 9:01 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [Asterisk-Users] SipAddHeader bug?
> 
> 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.
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 



More information about the asterisk-users mailing list