Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 25, 2024 4:28 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: h@a2billing:1 and INUSE=1
PostPosted: Wed Oct 21, 2009 8:40 pm 
Offline

Joined: Wed Sep 16, 2009 9:37 pm
Posts: 38
hi all

can anyone ex-plane me what is this?? spatially where dos "h@a2billing" come from

Executing [h@a2billing:1] Answer("SIP/7086342843-0a206550", "") in new stack

this debug line appear in the agi debug and it comes as soon as u hang up the line.
next qustion is that i am getting wrong updations on "INUSE" feeld in "CC_CARD" table when u place a call and the other party dos not answer. then next call will be having a error "this number is already in use" recoding.

can anyone help me ??
i use trixbox 2.6.2.2 and A2B 1.4 with SVN updates.
use only "DeadAgi"

hear is the log
---------------------------------------------------------------------------

-- Executing [h@a2billing:1] Answer("SIP/7086342843-0a206550", "") in new stack
-- Executing [h@a2billing:2] DeadAGI("SIP/7086342843-0a206550", "a2billing.php|1") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
AGI Tx >> agi_request: a2billing.php
AGI Tx >> agi_channel: SIP/7086342843-0a206550
AGI Tx >> agi_language: en
AGI Tx >> agi_type: SIP
AGI Tx >> agi_uniqueid: 1256155016.6
AGI Tx >> agi_callerid: 819871009399497
AGI Tx >> agi_calleridname: 7086342843
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: h
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: a2billing
AGI Tx >> agi_extension: h
AGI Tx >> agi_priority: 2
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode: 7086342843
AGI Tx >>
AGI Rx << GET VARIABLE IDCONF
AGI Tx >> 200 result=0
AGI Rx << ANSWER
AGI Tx >> 200 result=0
AGI Rx << SET VARIABLE CHANNEL(language) "en"
AGI Tx >> 200 result=1
AGI Rx << CHANNEL STATUS SIP/7086342843-0a206550
AGI Tx >> 200 result=6
AGI Rx << HANGUPling
AGI Tx >> 200 result=1
-- AGI Script a2billing.php completed, returning 0
-- Executing [h@a2billing:1] Answer("SIP/7086342843-0a206550", "") in new stack
== Spawn extension (a2billing, h, 1) exited non-zero on 'SIP/7086342843-0a206550'
-------------------------------------------------------------------------------------------------


Top
 Profile  
 
 Post subject: Re: h@a2billing:1 and INUSE=1
PostPosted: Thu Oct 22, 2009 12:23 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
The h (hangup) extension is probably not the best extension to use to call A2billing

http://www.voip-info.org/wiki/index.php ... +extension


Top
 Profile  
 
 Post subject: Re: h@a2billing:1 and INUSE=1
PostPosted: Wed Oct 28, 2009 12:20 am 
Offline

Joined: Wed Sep 16, 2009 9:37 pm
Posts: 38
hi all

thanks for the reply jroper. and i found a solution
in the extensions_a2billing.conf file i used as AGI(a2billing.php) instead of the DeadAgi(a2billing.php)

Hear is the correct one.

[a2billing]
; CallingCard application
exten => _X.,1,Answer
exten => _X.,2,Wait(2)
exten => _X.,3,AGI(a2billing.php)
exten => _X.,4,Wait(2)
exten => _X.,5,Hangup

thanks all


Top
 Profile  
 
 Post subject: Re: h@a2billing:1 and INUSE=1
PostPosted: Wed Oct 28, 2009 6:10 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
You should be using deadagi

Joe


Top
 Profile  
 
 Post subject: Re: h@a2billing:1 and INUSE=1
PostPosted: Wed Oct 28, 2009 7:22 pm 
Offline

Joined: Wed Sep 16, 2009 9:37 pm
Posts: 38
hi

when i use DeadAGI the INUSE value of db table cc_card dos not com back to 0 (ziro) when the call is not answered from the other side. any ideas??

thanks


Top
 Profile  
 
 Post subject: Re: h@a2billing:1 and INUSE=1
PostPosted: Wed Oct 28, 2009 7:33 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Possibly deficiencies in your PHP installation, are you using PHP 5.2

Joe


Top
 Profile  
 
 Post subject: Re: h@a2billing:1 and INUSE=1
PostPosted: Wed Oct 28, 2009 8:18 pm 
Offline

Joined: Wed Sep 16, 2009 9:37 pm
Posts: 38
seems like EAGI is good too


Top
 Profile  
 
 Post subject: Re: h@a2billing:1 and INUSE=1
PostPosted: Wed Oct 28, 2009 8:55 pm 
Offline

Joined: Wed Sep 16, 2009 9:37 pm
Posts: 38
yes. PHP Version 5.2.5


Top
 Profile  
 
 Post subject: Re: h@a2billing:1 and INUSE=1
PostPosted: Mon Dec 07, 2009 9:31 pm 
Offline

Joined: Wed Sep 16, 2009 9:37 pm
Posts: 38
i did this to sort this problem

inuse=1-------- elseif ($dialstatus == "CANCEL") { $answeredtime=0;}

vi /usr/local/src/a2billing/common/lib/Class.A2Billing.php

-------so it looks like this---------------------------------------------------

$this -> debug( INFO, $agi, __FILE__, __LINE__, "[".$inst_listdestination[4]." Friend][followme=$callcount]:[ANSWEREDTIME=".$answeredtime."-DIALSTATUS=".$dialstatus."]");

//# Ooh, something actually happend!
if ($dialstatus == "BUSY") {

$answeredtime=0;
$agi-> stream_file('prepaid-isbusy', '#');
if (count($listdestination)>$callcount) continue;

} elseif ($this->dialstatus == "NOANSWER") {

$answeredtime=0;
$agi-> stream_file('prepaid-callfollowme', '#');
if (count($listdestination)>$callcount) continue;

} elseif ($dialstatus == "CANCEL") {

// Call cancelled, no need to follow-me
//return 1;
$answeredtime=0;

} elseif ($dialstatus == "ANSWER") {
$this -> debug( DEBUG, $agi, __FILE__, __LINE__, "[A2Billing] DID call friend: dialstatus : $dialstatus, answered time is ".$answeredtime." \n");


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 
Predictive Dialer


All times are UTC


Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group