A few points, and reasons why the issue is both more simple and more complex than indicated:
From: Pavan Kumar via sr-users <sr-users@lists.kamailio.org>
Sent: Thursday, May 30, 2024 8:58 PM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Cc: Pavan Kumar <pavanputhra@gmail.com>
Subject: [SR-Users] Assistance Needed: Converting 11-Digit US Numbers to E.164 in Kamailio
CAUTION: This email originated from outside the organization.
Do not click links or open attachments unless you recognize the sender and know the content is safe.
|
Hey everyone,
I have the following setup:
External User/Trunk <===> Kamailio <===> FreeSWITCH
I have configured FreeSWITCH and Kamailio to work only with phone numbers in E.164 format. Recently, I needed to integrate a new SIP trunk that sends phone numbers in an 11-digit US format.
My initial idea to solve this is to use Kamailio as a translator that converts 11-digit numbers to E.164 when sending to FreeSWITCH, and back to 11-digit when sending to the trunk.
Before writing the code, I want to know if there is already a solution to this problem in one of the modules, so that I won't reinvent the wheel.
Thanks,
Pavan Kumar