Hi All,
I am a newbie here so apologies if I am missing the obvious...
I am trying to setup an outbound SIP trunk in A2billing but I keep on getting the message "The number you have dialled is currently unavailable"
My Setup is as follows
-Inbound IAX2 Trunk
-Outbound SIP Trunk (TestTrunk)
-AsteriskNow Extensions
Software
-A2Billing Version 1.7.1
-Asterisk 1.4.24
I have set up the Outbound SIP trunk in AsteriskNow and it works fine through the AsteriskNow extensions .
On A2Billing, I have defined the Outbound SIP trunk using the Trunk name (and not IP). I connect through Inbound IAX2 trunk and do hear the balance etc but when I try to dial out, the system gives me the following error
"The number you have dialled is currently unavailable".
This is what I see on the CLI - Debug
[color=#000080] a2billing.php: file:Class.RateEngine.php - line:1234 - uniqueid:1276248227.57 - app_callingcard: Dialing 'SIP/TestTrunk/92718500000|60|HRrL(8520000:61000:30000)' with timeout of '8520'.
a2billing.php:
a2billing.php: file:Class.RateEngine.php - line:1253 - uniqueid:1276248227.57 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.
a2billing.php: file:Class.RateEngine.php - line:1148 - uniqueid:1276248227.57 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse=inuse+1 WHERE id_trunk='3']
-- AGI Script Executing Application: (DIAL) Options: (SIP/TestTrunk/92718500000|60|HRrL(8520000:61000:30000))
-- Limit Data for this call:
> timelimit = 8520000
> play_warning = 61000
> play_to_caller = yes
> play_to_callee = no
> warning_freq = 30000
> start_sound = (null)
> warning_sound = timeleft
> end_sound = (null)
Audio is at 94.193.Y.Y port 60170
Adding codec 0x4 (ulaw) to SDP
Adding codec 0x8 (alaw) to SDP
Adding codec 0x2 (gsm) to SDP
Adding non-codec 0x1 (telephone-event) to SDP
Reliably Transmitting (NAT) to 64.79.X.X:5060:
INVITE sip:
[email protected] SIP/2.0
Via: SIP/2.0/UDP 94.193.Y.Y:5060;branch=z9hG4bK7ab74fcb;rport
From: "07813000000" <sip:
[email protected]>;tag=as089b8a66
To: <sip:
[email protected]>
Contact: <sip:
[email protected]>
Call-ID:
[email protected]CSeq: 102 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Fri, 11 Jun 2010 09:24:10 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Type: application/sdp
Content-Length: 287
v=0
o=root 3356 3356 IN IP4 94.193.Y.Y
s=session
c=IN IP4 94.193.Y.Y
t=0 0
m=audio 60170 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv
---
-- Called TestTrunk/92718500000
localhost*CLI>
<--- SIP read from 64.79.X.X:5060 --->
SIP/2.0 404 Not Found
CSeq: 102 INVITE
Via: SIP/2.0/UDP 192.168.0.40:5060;branch=z9hG4bK7ab74fcb
From: "07813000000" <sip:
[email protected]>;tag=as089b8a66
Call-ID:
[email protected]To: <sip:
[email protected]>;tag=1706451008165650659377921
Contact: <sip:64.79.X.X:5060;transport=udp>
Content-Length: 0
<------------->
--- (8 headers 0 lines) ---
Transmitting (NAT) to 64.79.X.X:5060:
ACK sip:
[email protected] SIP/2.0
Via: SIP/2.0/UDP 94.193.Y.Y:5060;branch=z9hG4bK7ab74fcb;rport
From: "07813000000" <sip:
[email protected]>;tag=as089b8a66
To: <sip:
[email protected]>;tag=1706451008165650659377921
Contact: <sip:
[email protected]>
Call-ID:
[email protected]CSeq: 102 ACK
User-Agent: Asterisk PBX
Max-Forwards: 70
Content-Length: 0
---
-- SIP/TestTrunk-09c487e8 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
a2billing.php: file:Class.RateEngine.php - line:1262 - uniqueid:1276248227.57 - DIAL SIP/TestTrunk/92718500000|60|HRrL(8520000:61000:30000)
a2billing.php: file:Class.RateEngine.php - line:1148 - uniqueid:1276248227.57 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse=inuse-1 WHERE id_trunk='3']
[/color]