This is my dial parameter:
,60,HRrL(%timeout%:61000:30000)
My customers register to asterisk using a2billing generated card numbers and passwords. They usually use softphones like x-lite to register and dial out. everything is working fine except for this inbound issue.
and another thing my customers complain that as soon as they hit "dial" button it says "call answered" and then it starts ringing the called party. This creates doubts as if they get charged right from the beginning even before the call is actually connected.
Following is what I see on Asterisk CLI when I dial my DID: (note that my I have changed my IP to 1.2.3.4 here and the DID to 12345678901)
------------------------
$ asterisk -rvvvvvvvvvvvvvvvvvvvvvvvv
Asterisk 1.6.0.17, Copyright (C) 1999 - 2009 Digium, Inc. and others.
Created by Mark Spencer <
[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
== Parsing '/etc/asterisk/asterisk.conf': == Found
== Parsing '/etc/asterisk/extconfig.conf': == Found
Connected to Asterisk 1.6.0.17 currently running on localhost (pid = 26889)
Verbosity is at least 33
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [12345678901@a2billing:1] Answer("SIP/0928656434-b7ed9770", "") in new stack
-- Executing [12345678901@a2billing:2] Wait("SIP/0928656434-b7ed9770", "2") in new stack
-- Executing [12345678901@a2billing:3] DeadAGI("SIP/0928656434-b7ed9770", "a2billing.php") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
-- AGI Script Executing Application: (DIAL) Options: (SIP/
[email protected]:5687|60|HiL(3600000:61000:30000))
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called
[email protected]:5687|60|HiL(3600000:61000:30000)
-- Got SIP response 482 "Loop Detected" back from 1.2.3.4
-- Now forwarding SIP/0928656434-b7ed9770 to 'Local/0928656434@from-sip-external' (thanks to SIP/1.2.3.4:5687|60|HiL(3600000:61000:30000)-0a15eb60)
-- Executing [0928656434@from-sip-external:1] NoOp("Local/0928656434@from-sip-external-31d2;2", "Received incoming SIP connection from unknown peer to 0928656434") in new stack
-- Executing [0928656434@from-sip-external:2] Set("Local/0928656434@from-sip-external-31d2;2", "DID=0928656434") in new stack
-- Executing [0928656434@from-sip-external:3] Goto("Local/0928656434@from-sip-external-31d2;2", "s,1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing [s@from-sip-external:1] GotoIf("Local/0928656434@from-sip-external-31d2;2", "1?checklang:noanonymous") in new stack
-- Goto (from-sip-external,s,2)
-- Executing [s@from-sip-external:2] GotoIf("Local/0928656434@from-sip-external-31d2;2", "0?setlanguage:from-trunk,0928656434,1") in new stack
-- Goto (from-trunk,0928656434,1)
-- Executing [0928656434@from-trunk:1] Set("Local/0928656434@from-sip-external-31d2;2", "__FROM_DID=0928656434") in new stack
-- Executing [0928656434@from-trunk:2] NoOp("Local/0928656434@from-sip-external-31d2;2", "Received an unknown call with DID set to 0928656434") in new stack
-- Executing [0928656434@from-trunk:3] Goto("Local/0928656434@from-sip-external-31d2;2", "s,a2") in new stack
-- Goto (from-trunk,s,2)
-- Executing [s@from-trunk:2] Answer("Local/0928656434@from-sip-external-31d2;2", "") in new stack
-- Local/0928656434@from-sip-external-31d2;1 answered SIP/0928656434-b7ed9770
-- Executing [s@from-trunk:3] Wait("Local/0928656434@from-sip-external-31d2;2", "2") in new stack
-- Executing [s@from-trunk:4] Playback("Local/0928656434@from-sip-external-31d2;2", "ss-noservice") in new stack
-- <Local/0928656434@from-sip-external-31d2;2> Playing 'ss-noservice.ulaw' (language 'en')
-- Executing [s@from-trunk:5] SayAlpha("Local/0928656434@from-sip-external-31d2;2", "0928656434") in new stack
-- <Local/0928656434@from-sip-external-31d2;2> Playing 'digits/0.ulaw' (language 'en')
== Spawn extension (from-trunk, s, 5) exited non-zero on 'Local/0928656434@from-sip-external-31d2;2'
-- Executing [h@from-trunk:1] Hangup("Local/0928656434@from-sip-external-31d2;2", "") in new stack
== Spawn extension (from-trunk, h, 1) exited non-zero on 'Local/0928656434@from-sip-external-31d2;2'
-- <SIP/0928656434-b7ed9770>AGI Script a2billing.php completed, returning -1
localhost*CLI>
------------------------------