Hi Gardo,
Thanks for the response. I believe my PSTN line is working. This is because the call routes to the softphone. However, please find attached the following information:
My dial plan setting:
exten => s,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => s,2,Dial(SIP/201,20,to )
exten => s,3,Hangup
when I used other settings, I got "Sorry that is not a valid extension"
The other settings are
exten => _91NXXNXXXXXX,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,2,Dial(SIP/201,20,to )
exten => _91NXXNXXXXXX,3,Hangup
exten => _X.,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _X.,2,Dial(SIP/201,20,to)
exten => _X.,3,Hangup
exten => _9234XXXXXXXXXX,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => _9234XXXXXXXXXX,2,Dial(SIP/201,20,to)
exten => _9234XXXXXXXXXX,3,Hangup
The 234 is my country code, while the remaining digits are as provided by the providers.
This is my cli output
Aug 21 14:30:42 NOTICE[14166]: chan_zap.c:6248 ss_thread: Got event 18 (Ring Begin)...
Aug 21 14:30:43 NOTICE[14166]: chan_zap.c:6248 ss_thread: Got event 2 (Ring/Answered)...
Again I tried it using my pbx line, I did not get any result apart from using the following dial plan:
exten => s,1,AGI(
agi://127.0.0.1:4577/call_log)
exten => s,2,Dial(SIP/201,20,to )
exten => s,3,Hangup
My questions are:
1. Does DID configuration have any effect on receiving calls?
2. Does dial plan have anything to do with the leads in the list for this to work well?
Will really appreciate your response.