The Adtran community holiday season is starting next week! The holiday period will span from December 21, 2024 to January 6, 2025. During this time, responses to feedback form submissions may be delayed. If you are encountering product issues, you can reach out to Adtran support at any time.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
azbrewsky
New Contributor

Header Manipulation Rule Help

Note: Similar to post Need to insert user=phone on outboud SIP invite message from TA916

Equipment: Adtran 908e, 11.10.0.E (updating firmware next week)

PBX: Mitel Connect (formerly ShoreTel)

Connection type: SIP to SIP

- Adtran Internal IP: 172.24.1.83

- PBX Internal IP: 10.3.10.17

Issue: If an internal user on our PBX forwards their DID number to an external number, and someone calls the PBX DID using the same caller-ID as to where the DID is forwarded, call gets rejected at carrier.

Ex:

PBX DID: 602-555-1234 and forward all calls to: 602-686-5566

- someone from 602-686-5566 calls 602-555-1234 - call rejected

- someone from 602-xxx-yyyy calls 602-555-1234 - call accepted and forwarded

I need to create an HMR to examine the INVITE: sip: and the FROM: sip: - if the two are identical then I need to change the FROM: sip: to the Diversion: sip:

Hope that makes sense. Below us a debug from an actual call. Some information changed to match above scenario and redacted as needed:

Any help would be appreciated.

Sample Trace:

07:57:41.682 SIP.STACK MSGTx: UDP src=<Adtran WAN Address>:5060 dst=<Carrier IP Address>:5100
07:57:41.682 SIP.STACK MSG    INVITE sip:6026865566@<Carrier IP Address>:5100 SIP/2.0
07:57:41.682 SIP.STACK MSG    From: "ARIZONA CALL" <sip:6026865566@voip.carriername.com:5100;transport=UDP>;tag=4d0c9868-<redacted>
07:57:41.682 SIP.STACK MSG    To: <sip:6026865566@voip.carriername.com:5100>
07:57:41.683 SIP.STACK MSG    Call-ID: <redacted>-7f000001-<redacted>@voip.carriername.com
07:57:41.683 SIP.STACK MSG    CSeq: 2 INVITE
07:57:41.683 SIP.STACK MSG    P-Asserted-Identity: <sip:<adtranRegistrationNumber>@voip.carriername.com>
07:57:41.683 SIP.STACK MSG    Diversion: <sip:6025551234@voip.carriername.com>;reason=unconditional;counter=1;privacy=off;screen=no
07:57:41.683 SIP.STACK MSG    Max-Forwards: 70
07:57:41.684 SIP.STACK MSG    Supported: 100rel,replaces
07:57:41.684 SIP.STACK MSG    Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, PRACK, REFER, REGISTER
07:57:41.684 SIP.STACK MSG    User-Agent: ADTRAN_Total_Access_908e_3rd_Gen/R11.10.0.E
07:57:41.684 SIP.STACK MSG    Via: SIP/2.0/UDP <Adtran WAN Address>:5060;branch=z9hG4bK-e8d4-38d7e49-3b0ee5a7
07:57:41.684 SIP.STACK MSG    Contact: <sip:6026865566@<Adtran WAN Address>:5060;transport=UDP>
07:57:41.684 SIP.STACK MSG    Authorization: Digest
Labels (1)
0 Kudos