I use the lastest Freepbx 14 Distro.
I need to send specific P-Access-Network-Info SIP Header in INVITE on outgoing calls for my voip carrier to handle emergency numbers.
Each extension will use the same outgoing route with a carrier class SIP Trunk.
To handle the emergency numbers routing related to the extension geographical location, I need for each extension to send in INVITE the P-Access-Network-Info Header with a specific code for each extension.
Here is an exemple :
P-Access-Network-Info: IEEE-802.3;operator-specific-GI="00<CODEINSEE>00"; network-provided
I will use SIP Extensions (no PJSIP).
I need for each extension to define the CODEINSEE transmitted in SIP Header.
Adding this in a custom outbound context should be relatively simple, but you’re going to have some fun getting the two variables filled in.
Spit-balling here: Set up the two variables in the Asterisk ASTDB associated with the extensions. This way, they are persistent across reboots. From there, you can use a “DBGET” to snag them, fill them in, and send them out in a header like the ones described in Hooking for fun and income
You should be able to get the environment built in a couple of lines in a custom context, then use the data items in your addsipheader() (name changed to protect the lazy) function on the way out to the trunk.
After you get that done, I’d suggest submitting a Feature Request so that people that need that stuff can use it and maybe we can get someone to build an extension to the Extensions module that allows that data to be set from the GUI.
It looks like not very easy to setup. Paid support from Sangoma could do it for me ?
Even though they are my corporate overlord, I never shill for Sangoma. In spite of that, yeah - you fund the work and they make it available to the world would be awesome.
Is there a corporate Sangoma who could answer to me ?
I’d start with https://www.freepbx.org/support-and-professional-services and follow that rabbit hole to see where it can take you.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.