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