Add a Sip Header

Hi everyone

I’m trying to add a SIP header before I call an extension :

exten => 00030101,1,Noop()
same => n,SipAddHeader(Alert-Info:info=internal)
same => n,noop(${SIP_HEADER(“Alert-info”)})
same => n,Dial(SIP/00030101,200,rTt)

but it doesn’t seem to work when I call the 00030101 extension (the third line doesn’t diplay it) :

– Executing [00030101@interne_3:1] NoOp(“SIP/00030102-00000506”, “”) in new stack
– Executing [00030101@interne_3:2] SIPAddHeader(“SIP/00030102-00000506”, “Alert-Info:info=appel_interne”) in new stack
– Executing [00030101@interne_3:3] NoOp(“SIP/00030102-00000506”, “”) in new stack
– Executing [00030101@interne_3:4] Dial(“SIP/00030102-00000506”, “SIP/00030101,200,rTt”) in new stack

how about it?

The SIP_HEADER function returns the (initial) inbound headers. If you want to see the outbound ones, you need to use sip set debug on and look at what is actually sent.

it’s ok, I’ve done a sip set debug on my peer and I can the header I added

thanks david