Have you been able to get this working with Asterisk at Home?
For an unknown reason (otherwise, I wouldn’t be posting here), the exten => s,2 command doesn’t seem to work…
It should be noted that my CallerID-based response system works. IE: I have set it up so that if my ex calls in, (her number is specified in the “Caller ID Number:” field), she is transferred into a non-terminated repetitive IVR.
; partial contents of extensions_additional.conf (included from extensions.conf)
[ext-did]
include => ext-did-custom
exten => s,1,Set(FROM_DID=s)
exten => s,n,Set(FAX_RX=disabled)
exten => s,n,Answer
; continued…
; contents of ext-did-custom context in extensions_custom.conf (included from extensions_additional.conf)
[ext-did-custom]
; this will allow calls to be routed by the ZAP channel they come in on.
; example a call comming in on ZAP cahnnel 1 will have Zap1 for it’s DID.
;exten => s,2,GotoIf($["${CHANNEL:0:3}" = “Zap”]?ext-did|Zap${CHANNEL:4:1}|1)
;----------------------- END -----------------------
As per the commented notes, this is supposed to set the “DID” to Zap1 if the call comes in on Zap/1-?, or Zap2 if it comes in on Zap/2-? or the same… However, this context is not even being executed. Since *@H is taking over so many of the functions of this, I can’t seem to get it to even run a custom extension ie: [checkchannel-custom] from the inbound route setup.
When I call into my system with only 2 inbound routes set up (for DID=Zap1 and DID=Zap2), the system hangs up the call. (see log below:)
-- Starting simple switch on 'Zap/1-1'
== Starting Zap/1-1 at from-pstn,s,1 failed so falling back to exten ‘s’
== Starting Zap/1-1 at from-pstn,s,1 still failed so falling back to context ‘default’
– Executing Playback(“Zap/1-1”, “vm-goodbye”) in new stack
– Playing ‘vm-goodbye’ (language ‘en’)
– Executing Macro(“Zap/1-1”, “hangupcall”) in new stack
– Executing ResetCDR(“Zap/1-1”, “w”) in new stack
– Executing NoCDR(“Zap/1-1”, “”) in new stack
– Executing Wait(“Zap/1-1”, “5”) in new stack
– Executing Hangup(“Zap/1-1”, “”) in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘Zap/1-1’ in macro ‘hangupcall’
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on ‘Zap/1-1’
– Hungup ‘Zap/1-1’
Thanks again for any help you can offer!
Jay