Hi,
I’m testing chan_pjsip and I cannot find a way to manipolate “From” and “To” headers, in chan_sip I use a dialstring like that:
SIP/sales@mysipproxy!sales@edvina.net
or
SIP/customer@mysipproxy!!customersupport@wearespindle.com
In PJSIP i tryed to use PJSIP_HEADER in the post dial hook, without success:
-- Executing [add@test-pjsip-header:23] Set("PJSIP/AST2-0000001e", "PJSIP_HEADER(update,To)=<sip:123456@192.168.1.11>") in new stack
[Mar 24 11:21:14] ERROR[26158]: res_pjsip_header_funcs.c:381 update_header: There was no header named To.
I tried “to and To”, using only the 123456 or a sip uri, without success…
Does anyone know how “convert”:
SIP/sales@mysipproxy!sales@edvina.net
for PJSIP?
Thanks