Hiya,
I’ve bought a new SIP trunk to test with but this one doesn’t search the DID in the header.
This trunk is running on a IP centrex switch and Asterisk and in order for it to work I need to rewrite the DID header
So for now it works by making a /etc/asterisk/extensions_override_freepbx.conf with the contents:
[custom-get-did-from-sip]
exten => _.,1,Noop(Fixing DID using information from SIP TO header)
exten => _.,n,Set(pseudodid=${SIP_HEADER(To)})
exten => _.,n,Set(pseudodid=${CUT(pseudodid,@,1)})
exten => _.,n,Set(pseudodid=${CUT(pseudodid,:,2)})
exten => _.,n,Goto(from-trunk,${pseudodid},1)
And the trunk setup as:
type=peer
context=custom-get-did-from-sip
secret=0000
username=0000
host=something.something.ex
fromdomain=ssomething.something.ex
dtmfmode=rfc2833
canreinvite=no
disallow=all
allow=ulaw
insecure=port,invite
qualify=yes
However I would like to configure this from within the GUI itself since I don’t like changes through CLI.
Is this possible or is there a way to make sure my custom config “lives” through updates/upgrades?