@ashdown wrote:
I'm a novice Asterisk user running FREEPBX 12.0.74 with Asterisk 13.7.2.
I'm trying to insert code into the dial plan to email details of every incoming call. I've put this code in the from-pstn-custom context in extensions_custom.conf and it's working fine but I can't work out how to return after it's been executed.
As far as I can see, in the default case where [from-pstn-custom] doesn't exist, the call flow drops through [from-pstn] to the included [ext-did] and thence to ext-did-0001, which is the first context that does any real processing.
So I've terminated my custom code with the line:
same => n,Goto(ext-did0001,${EXTEN},1)
hoping that this will make the call continue as if my custom code wasn't present, but it fails with:
Channel 'SIP/Sipgate-00000004' sent to invalid extension but no invalid handler: context,exten,priority=ext-did0001,[my DID],1
I think I'm misunderstanding something basic. Can some kind person show how I can return to the normal call flow?
Posts: 5
Participants: 3