asteriskal at gmail.com Guest
|
Posted: Sat Mar 29, 2014 9:54 pm Post subject: [asterisk-users] handset forwarding Diversion header cannot |
|
|
is there anyway to change Sip headers in local channels?
if a user sets forward on their handset, calls coming in to the handset get diversion header added:
Diversion: "202" <sip:202@192.168.1.46 ([email]sip%3A202@192.168.1.46[/email])>;reason=deflection
Then asterisk sends the call to local channel:
- Now forwarding SIP/201-00000483 to 'Local/3333333333@test' (thanks to SIP/202-00000484)
and not all Telco providers handle diversion header gracefully, some dont like to see "202" in header.
i tried to set the sip header in target "3333333333@test" but asterisk see's this as local channel and wont do sip add header:
WARNING[13584]: chan_sip.c:20562 func_header_read: This function can only be used on SIP channels.
is there anyway around this? |
|