Hello,
I have a installed a new PBX in a flash system, but I'm not able to make it work with my 3 DID from babytel. I think they send the DID number in the TO sip header.
I had it working with my previous trixbox installation running FreePBX 2.4.1.5 and Asterisk 1.2.12.1 with the following context in extensions_custom.conf:
[babytel-in]
exten => _.,1,Set(DID=${SIP_HEADER(TO):5:11})
exten => _.,2,Set(CALLERID(num)=9${CALLERID(num)})
exten => _.,n,NoOp(from babytel-in set DID to ${DID})
exten => _.,n,Goto(from-trunk,${DID},1)
With this setup, i just have to put the babytel-in context in the trunk and my did work with the inbound route rules.
As the Freepbx is newer with my new PIAF installation, that dont seem to work. Does the from-trunk context still exist.
Anyone can help my with the new babytel-in context i have to setup in extensions_custom.conf.
Thanks,
Tim
I have a installed a new PBX in a flash system, but I'm not able to make it work with my 3 DID from babytel. I think they send the DID number in the TO sip header.
I had it working with my previous trixbox installation running FreePBX 2.4.1.5 and Asterisk 1.2.12.1 with the following context in extensions_custom.conf:
[babytel-in]
exten => _.,1,Set(DID=${SIP_HEADER(TO):5:11})
exten => _.,2,Set(CALLERID(num)=9${CALLERID(num)})
exten => _.,n,NoOp(from babytel-in set DID to ${DID})
exten => _.,n,Goto(from-trunk,${DID},1)
With this setup, i just have to put the babytel-in context in the trunk and my did work with the inbound route rules.
As the Freepbx is newer with my new PIAF installation, that dont seem to work. Does the from-trunk context still exist.
Anyone can help my with the new babytel-in context i have to setup in extensions_custom.conf.
Thanks,
Tim