12-10-2024 04:05 AM
Hello! I'm trying to manage incoming and outgoing calls. I have a sip trunk configured with a provider. There is a sip account to which the provider has linked 10 numbers. Sip account - lgn_201@example.com. When I receive a call to CUCME I see in the logs
Received:
INVITE sip:lgn_201@1.2.3.4:5060 SIP/2.0
Via: SIP/2.0/UDP 5.5.5.5:5060;branch=z9hG4bK65-7ynyhj1msda14
From: "+71111111111" <sip:+711111111111@example.com>;tag=65-26kqmz0qiby50
To: <sip:lgn_201@example.com>
Call-ID: SD8oibc01-10dd7a0f51b6a9bac08fe3e124a36937-aovl7v3040-itlTTbeOt
CSeq: 1 INVITE
Diversion: <sip:+72222222222@example.com>
Contact: <sip:signode-65-8qammc0pzstzb@5.5.5.5:5060;transport=UDP>
Allow: INVITE, ACK, CANCEL, BYE, INFO, REFER, SUBSCRIBE, NOTIFY
Allow-Events: keep-alive
Supported: timer
Session-Expires: 7200
Min SE: 900
Max-Forwards: 60
User-Agent: ITLCS 7.3.3
Content-Type: application/sdp
Content-Length: 406
All incoming and outgoing calls come from under the lgn_201 account. And as I understand it, the manipulation of numbers occurs precisely in the Diversion field. But how to do it correctly?
12-10-2024 04:16 AM
I have not seen an ITSP send the calls that way. The numeric portion was always in the "To:" header with every ITSP I can recall. Can you request that they send the numeric info in the "To:" header? It is possible to change that using SIP profiles, but that would have a few moving pieces. You would have to capture to the info from the Diversion: header into a variable, remove the To: header, and then re-insert the To: header with the variable captured from the Diversion: header.
12-10-2024 05:00 AM
I've never seen a SIP invite with account details instead of numbers either. Is your ITSP sending you the correct information? SIP technology is still new for many ITSPs.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide