Hello,
On an older FreePBX version I was able to create custom extensions from the script and reload sip. Now the custom extensions are also visible in ‘sip show peers’, they are also qualified but it is impossible to make a call to them.
Why is it so? The extensions from sip_custom.conf use the same from-internal context.
My script works with Microsoft Active Directory, when person has some attribute then it also has the extension in sip_custom.conf My script overwrites this file and make a sip reload every few minutes. Now if I want to use fwconsole bulkimport then I could only import extensions, but when somebody should not be allowed to have an extension then I couldn’t control it.
If we add custom extensions (eg. 550) in sip_custom.conf and if we want to receive calls it is necessary to add an additional dialplan in extensions_custom.conf file, eg.:
[ext-local-custom] exten => 550,1,Macro(user-callerid,) same => n,Answer same => n,NoCDR same => n,Dial(SIP/${EXTEN},${RINGTIMER_DEFAULT}) same => n,Hangup
Below error was because of some extensions had the session-timers parameter set to null. chan_sip.c:31471 build_peer: Invalid session-timers '' at line xxx of sip.conf
Glad you got it figured out. The problem you might run into (if it’s a problem for you) is that these custom extensions are not “known” to the GUI. If that’s a thing for you, then you might need to think about a way to read these custom contexts and add them using the Bulk Handler.
If it’s not a problem for you, you’re all good. If it’s something you want to manage later, it might need some attention in the future.