Contact URI's after registration renewal

Hi, All!
I have a problem with mtt_ru provider (others 4 trunks on my PBX to 4 different providers work fine).
After registration renewal in SIP headers appear 3 CONTACT URI’s
In some cycle of renewal provider gives the wrong DID (“s”). But my Inbound Routes can’t handle “_fromDID=s” and I get “no-service” message.
Because Inbound Route is configured to DID 88314XX

Why it happens so and how to prevent multiple contact headers?

The same problem discussed here in 2014, but no solution was found. (can’t paste the whole link)
community_freepbx_org/t/contact-uri-showing-sip-s-ipaddress/26127

Would appreciate any help.
Thanks.

Trunk is SIP, type=friend
Register string: 88314XX:password@login_mtt_ru / 88314XX

_<--- SIP read from UDP:80.75.130.83:5060 --->_

SIP/2.0 200 OK
Via: SIP/2.0/UDP myIP:port;received=myIP;branch=z9hG4bK45161a74;rport=port
From: <sip : 88314XX@login_mtt_ru>;tag=as2b02bfa3
To: <sip : 88314XX@login_mtt_ru>;tag=4c76616a
_Call-ID: 3fd0
CSeq: 310 REGISTER
Contact: <sip : s@myIP:port;realip=myIP>;expires=90
Contact: <sip : 7800PhoneNumber@myIP:port;realip=myIP>;expires=300
Contact: <sip : 88314XX@myIP:port;realip=myIP>;expires=195

Set the trunk context to:

from-pstn-toheader
2 Likes

Thank you very much for quick and precise answer! It helped!!
You saved my day!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.