<div dir="ltr">Hi Alejandro,<br><br>As per my a2billing knowledge it's termination issue. Might be your call balance is finished please check and then test again.<br><br><div class="gmail_quote">On Thu, May 19, 2011 at 8:40 PM, Alejandro Mejia Evertsz <span dir="ltr"><<a href="mailto:amejia@gua.net">amejia@gua.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello everyone.<br>
<br>
I'm using Asterisk 1.4.31 and A2Billing 1.7.0 to manage a small wholesale operation, so I configured A2Billing for not to answer the call nor play any greetings or balance notifications to the caller.<br>
I'm authenticating each customer by it's IP address, and each customer has it's own context, in which I set the following:<br>
<br>
;=====in extensions.conf======<br>
[from-customerX]<br>
exten => _X.,1,Set(CDR(accountcode)=9999) ;Here I change the accountcode depending on each customer<br>
exten => _X.,2,Set(CALLERID(dnid)=${EXTEN})<br>
exten => _X.,3,Goto(a2billing|${EXTEN}|1)<br>
<br>
[from-customerY]<br>
exten => _X.,1,Set(CDR(accountcode)=8888)<br>
exten => _X.,2,Set(CALLERID(dnid)=${EXTEN})<br>
exten => _X.,3,Goto(a2billing|${EXTEN}|1)<br>
<br>
[a2billing]<br>
exten => _X.,1,DeadAGI(a2billing.php|1)<br>
exten => _X.,2,Hangup(34)<br>
;=============================<br>
<br>
A2Billing authenticates and routes the call properly, but when the termination gateway for the destination dialed by the customer rejects the call, my Asterisk box sends "603 Declined" to the customer.<br>
It also happens when A2Billing doesn't find any route for that destination, in which it should return "404 Not Found", but returns "603 Declined" instead.<br>
I tried to force every rejected attempt with "503 Service Unavailable" putting the Hangup(34) you see on my config, but it never seems to get there.<br>
The last thing I see on CLI running in verbose is: -- AGI Script a2billing.php completed, returning 0<br>
<br>
Is there anything I could do to return a different cause than "603 Declined"?<br>
I posted the same question on A2Billing's forum, but had no luck.<br>
<br>
Thanks in advance,<br>
<br>
Alejandro Mejia<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><br><br><br>-----<br>Thanks and regards<br><br> Virendra Bhati<br>+91-9172341457<br>Asterisk Engineer<br></div><br>
</div>