[asterisk-users] Changing the contact header

Dovid Bender dovid at telecurve.com
Wed Nov 25 04:58:29 CST 2020


Is anyone aware of any way of changing the contact header on a call? We are
sending 911 calls to a provider and they require that the contact be the
call back number. I tried:
Set(PJSIP_HEADER(update,contact)=<sip:foobar at>)

But the came back with:
No headers had been previously added to this session.

If I try to do:
Set(PJSIP_HEADER(add,contact)=<sip:foobar at>)
Then Asterisk just adds a second contact header but does not replace the
original (I also suspect adding a contact breaks the RFC?)

Is anyone aware of a way to modify the contact header?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20201125/ae570b8d/attachment.html>

More information about the asterisk-users mailing list