Hello Joe,
I have done the following so far...
1. I have created a trunk named "DX157" in free-PBX. This is a trunk to voip-gsm GW.
2. Then I have added custom destination named "Let me try" from tools in free-PBX having custom destination "a2billing,${EXTEN},1".
3. After that I setup an inbound route named "GO_DX157" having DID number "_." which points to custom destination "Let me try"
4. After doing all this in free-PBX, I have added the following lines in /etc/extensions_a2billing.conf [a2billing] exten => _X.,1,Answer exten => _X.,n,Wait(1) exten => _X.,n,DeadAGI(a2billing.php,1) exten => _X.,n,Hangup
5. I also set up provider/trunk/prefix/callplan/ratecard/rates etc in a2billing.
6. But now when I am trying to call 8801730075290 from x-lite , I am hearing "Please enter your complete pin number". I did not set up any pin number for any incomming calls. here is the cli output......
Connected to Asterisk 1.8.7.0 currently running on SW1 (pid = 11692) Verbosity is at least 17 -- Remote UNIX connection == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Executing [8801730075290@from-sip-external:1] NoOp("SIP/114.141.208.30-0000000d", "Received incoming SIP connection from unknown peer to 8801730075290") in new stack -- Executing [8801730075290@from-sip-external:2] Set("SIP/114.141.208.30-0000000d", "DID=8801730075290") in new stack -- Executing [8801730075290@from-sip-external:3] Goto("SIP/114.141.208.30-0000000d", "s,1") in new stack -- Goto (from-sip-external,s,1) -- Executing [s@from-sip-external:1] GotoIf("SIP/114.141.208.30-0000000d", "1?checklang:noanonymous") in new stack -- Goto (from-sip-external,s,2) -- Executing [s@from-sip-external:2] GotoIf("SIP/114.141.208.30-0000000d", "0?setlanguage:from-trunk,8801730075290,1") in new stack -- Goto (from-trunk,8801730075290,1) -- Executing [8801730075290@from-trunk:1] Set("SIP/114.141.208.30-0000000d", "__FROM_DID=8801730075290") in new stack -- Executing [8801730075290@from-trunk:2] Gosub("SIP/114.141.208.30-0000000d", "app-blacklist-check,s,1") in new stack -- Executing [s@app-blacklist-check:1] GotoIf("SIP/114.141.208.30-0000000d", "0?blacklisted") in new stack -- Executing [s@app-blacklist-check:2] Set("SIP/114.141.208.30-0000000d", "CALLED_BLACKLIST=1") in new stack -- Executing [s@app-blacklist-check:3] Return("SIP/114.141.208.30-0000000d", "") in new stack -- Executing [8801730075290@from-trunk:3] ExecIf("SIP/114.141.208.30-0000000d", "0 ?Set(CALLERID(name)=206550)") in new stack -- Executing [8801730075290@from-trunk:4] Set("SIP/114.141.208.30-0000000d", "__CALLINGPRES_SV=allowed_not_screened") in new stack -- Executing [8801730075290@from-trunk:5] Set("SIP/114.141.208.30-0000000d", "CALLERPRES()=allowed_not_screened") in new stack -- Executing [8801730075290@from-trunk:6] Goto("SIP/114.141.208.30-0000000d", "a2billing,8801730075290,1") in new stack -- Goto (a2billing,8801730075290,1) -- Executing [8801730075290@a2billing:1] Answer("SIP/114.141.208.30-0000000d", "") in new stack -- Executing [8801730075290@a2billing:2] Wait("SIP/114.141.208.30-0000000d", "1") in new stack -- Executing [8801730075290@a2billing:3] DeadAGI("SIP/114.141.208.30-0000000d", "a2billing.php,1") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php -- <SIP/114.141.208.30-0000000d> Playing 'prepaid-enter-pin-number.gsm' (language 'en') -- <SIP/114.141.208.30-0000000d> Playing 'prepaid-enter-pin-number.gsm' (language 'en') -- <SIP/114.141.208.30-0000000d>AGI Script a2billing.php completed, returning 4 == Spawn extension (a2billing, 8801730075290, 3) exited non-zero on 'SIP/114.141.208.30-0000000d'
Please help me out!
Regards, Zahid Hasan
|