replace From uri-host with uri-host form Diversion header
Hi
I have to replace the From uri-host on diverted calls to a local number otherwise the Telco will drop the call when diverted offnet. The from uri-host should only be modified if the diversion header is in the sip invite. If it is not a diverted call, the Sip invite From header should not be modified.
Example:
Incoming invite
From: <sip:0871234567@10.28.1.158;user=phone>;tag=ab7bc778-a011c0a-13c4-55013-33234-63c49767-33234
To: <sip:0111234567@10.18.4.230;user=phone>
:
Diverted invite: - outgoing
From: <sip:0871234567@10.28.1.158;user=phone>;tag=ab7bc778-a011c0a-13c4-55013-33234-63c49767-33234