I have recently installed and configured a Wildcard TDM400P with 2 FXS and 2 FXO modules. I am using Call files to connect to a dial plan. Previously I was using the call files to call a SIP soft phone. Everything worked fine. The dial plan would wait until I answered the soft phone and would then continue on with the dialplan.
After installing and configuring the card and modifying the call file to call an actual phone (I used my cell phone for testing), I received the call but it was already half way through the dialplan. I missed a few playbacks and backgrounds before I actually picked up my phone. Using the CLI, I can monitor what Asterisk is doing. When I used the SIP soft phone, Asterisk would wait until I answered the softphone, then proceed with the first application in the dial plan. But when I was calling to my cell phone, I could see the dial plan being executed before I ever answered the phone. If I don’t answer the phone the dial plan would continue until a timeout occurred.
How do I get Asterisk to wait until I answer a “hard” phone? I assume there is something missconfigured in one of the zaptel.conf or zapata.conf files.
Here is the call file with the actual phone number removed for privacy reasons:
Channel: ZAP/g2/18005551212 MaxRetries: 2 RetryTime: 20 WaitTime: 300 Context: lead_context Extension: s Priority: 1 CallerID: Asterisk Digium SetVar: number=123456 SetVar: leadName=Danny SetVar: leadEmailemail@example.com SetVar: leadPhone=900-555-1212 SetVar: leadMessage=I am interested in ...
Here is my zaptel.conf file:
# Configuration for FXS channel: connects to phone fxoks=1,2 # Configuration for FXO channel: connects to PSTN fxsks=3,4 loadzone = us defaultzone=us
Here is my zapata.conf file:
[channels] language=en context=default cidstart=ring hidecallerid=yes musiconhold=default ;; ;; Configuration Supplied from Digium ;; echocancel=yes echocancelwhenbridged=yes echotraining=400 callerid=asreceived signalling=fxo_ks group=1 context=default channel => 1-2 signalling=fxs_ks group=2 context=incoming channel=> 4 group=3 channel=> 3
Any help will be much appreciated.