Hi all, I’m fairly new to Asterisk and I’m currently operating 2 servers:
A trunk in testing, a RaspberryPi with Raspbx and a 3G dongle acting as a trunk. Working fine inside the Rpi. With FreePBX
A server on which physical SIP phones are connected (~10) and also working normally. FreePBX Distro.
What I would like to do, is to configure the Rpi as a trunk for the « server », and relay every call made to the 3g dongle, to the server. Currently, i have created an extension (222) on the Rpi and the server has a trunk configured with the extension. The inbound route on the RPI dials the extension, sngrep shows correctly an invite sent by the Rpi to the server.
But, the issue is, the INVITE doesn’t contain AT ALL any reference to the DID (which is the extension called), the URI called in the invite is:
PJSIP/222/sip:s@SERVER.IP:5060, so the server can’t match à DID as the extension received in the dialplan is “s”.
Is there a setting on the Rpi to send the extension instead of the “s” (I tracked down the calls until
PJSIP_DIAL_CONTACTS which is returning the s@ .
Thanks for your assistance