Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Apr 16, 2024 8:52 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: A2billing 1.9.4(Cuprum) Callback not working
PostPosted: Sat Jul 16, 2011 11:52 pm 
Offline

Joined: Sat Jul 16, 2011 11:34 pm
Posts: 8
Hello All,

I cannot get A2billing 1.9.4 callback to work with Asterisk 1.8.3.3. I have the callback daemon(a2b_callback_daemon) started correctly
and my a2billing_api_callback_request.log log file reports that callback has been inserted.

The python callback daemon is able to log onto the Asterisk Manager interface but i cannot see any calls being placed on the Asterisk console.
After checking the A2billing web interface for the callback i see an Error reported.

This is the error reported in /var/log/a2billing/a2b-callback-daemon.log

"2011-07-17 03:44:10,797 - root - MainThread - INFO - [<database.CallBack_Spool object at 0x3227310>]"
"2011-07-17 03:44:10,834 - root - MainThread - INFO - try_originate : SIP/ip_address/125397XXXX : 23079xxxxx : a2billing-callback"
"2011-07-17 03:44:10,836 - root - MainThread - INFO - CallBack Status 4 : Error"
"2011-07-17 03:44:10,847 - root - MainThread - INFO - [2011/07/17 03:44:10] Placed 1 calls"
"2011-07-17 03:44:15,853 - root - MainThread - INFO - waiting..."

Does anyone have the same problem and have you been able to resolve it.

I do not think the problem is with the daemon logging onto the Asterisk management Interface since i can see from the Asterisk console it successfully does that but it just cannot get Asterisk to place the call.

Help will be very much appreciated

Thanks


Top
 Profile  
 
 Post subject: Re: A2billing 1.9.4(Cuprum) Callback not working
PostPosted: Sun Jul 17, 2011 6:24 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

We've not tested with 1.8. However, you may get more information from the full log, rather than the console, also turn up the agi-conf logging to 4.

It looks like the call is being attempted, so check that you have a rate for the A-Leg, this is the most usual cause.

Joe


Top
 Profile  
 
 Post subject: Re: A2billing 1.9.4(Cuprum) Callback not working
PostPosted: Sun Jul 17, 2011 11:27 pm 
Offline

Joined: Sat Jul 16, 2011 11:34 pm
Posts: 8
Hi Jroper

I turned up logging for the agi-conf to 4 and there is a rate set correctly for the A-Leg.

This is what i get from the asterisk log file but these logs have nothing to do with the callback.

[Jul 18 03:13:26] NOTICE[25635] cdr.c: CDR simple logging enabled.
[Jul 18 03:13:26] NOTICE[25635] loader.c: 188 modules will be loaded.
[Jul 18 03:13:26] NOTICE[25635] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Jul 18 03:13:26] NOTICE[25635] res_config_ldap.c: No directory user found, anonymous binding as default.
[Jul 18 03:13:26] ERROR[25635] res_config_ldap.c: No directory URL or host found.
[Jul 18 03:13:26] ERROR[25635] res_config_ldap.c: Cannot load LDAP RealTime driver.
[Jul 18 03:13:26] NOTICE[25635] config.c: Registered Config Engine curl
[Jul 18 03:13:26] NOTICE[25635] chan_skinny.c: Configuring skinny from skinny.conf
[Jul 18 03:13:26] NOTICE[25635] chan_ooh323.c: Unable to load config ooh323.conf, OOH323 disabled
[Jul 18 03:13:26] NOTICE[25635] pbx_ael.c: Starting AEL load process.
[Jul 18 03:13:26] NOTICE[25635] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'.
[Jul 18 03:13:26] NOTICE[25635] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'.
[Jul 18 03:13:26] NOTICE[25635] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'.
[Jul 18 03:13:26] NOTICE[25635] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'.
[Jul 18 03:13:26] NOTICE[25635] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'.

I have been using callback on Asterisk 1.4 with A2billing 1.7 and that works alright but i just set out to test these new releases and thats where i am stuck. You might want to try it out also to see.

Secondly is there a way to get logs for the manager.py python script which i think actually places the callback on the Asterisk CLI.

Thanks


Top
 Profile  
 
 Post subject: Re: A2billing 1.9.4(Cuprum) Callback not working
PostPosted: Tue Jul 19, 2011 12:04 pm 
Offline

Joined: Sun Apr 17, 2011 1:59 am
Posts: 10
you set asterisk version 1_4
manager host: 127.0.0.1

Hope help you.


Top
 Profile  
 
 Post subject: Re: A2billing 1.9.4(Cuprum) Callback not working
PostPosted: Wed Jul 20, 2011 1:48 am 
Offline

Joined: Sat Jul 16, 2011 11:34 pm
Posts: 8
Hi Baka,

This still does not work.


Top
 Profile  
 
 Post subject: Re: A2billing 1.9.4(Cuprum) Callback not working
PostPosted: Wed Jul 20, 2011 10:00 am 
Offline

Joined: Sun Apr 17, 2011 1:59 am
Posts: 10
try manager.conf

[myasterisk]
secret=mycode
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read=system,call,log,verbose,command,agent,user,originate,config,diaplan
write=system,call,log,verbose,command,agent,user,originate,config,diaplan


Top
 Profile  
 
 Post subject: Re: A2billing 1.9.4(Cuprum) Callback not working
PostPosted: Fri Jul 22, 2011 1:28 am 
Offline

Joined: Sat Jul 16, 2011 11:34 pm
Posts: 8
Hi Baka

This still does not solve the problem. I tried testing it with Asterisk 1.6 as well and i still have the same problem with it.

Thanks


Top
 Profile  
 
 Post subject: Re: A2billing 1.9.4(Cuprum) Callback not working
PostPosted: Fri Jul 22, 2011 3:11 am 
Offline

Joined: Sun Apr 17, 2011 1:59 am
Posts: 10
i am using Asterisk Version 1.8.3 and A2billing 1.9.4 (database)
I too have same problem but i fix it
i try some thing as i tell with you above

Note: global->asterisk version=1.6 ( i set so, it charge A leg)


Top
 Profile  
 
 Post subject: Re: A2billing 1.9.4(Cuprum) Callback not working
PostPosted: Fri Jul 22, 2011 4:14 am 
Offline

Joined: Sat Jul 16, 2011 11:34 pm
Posts: 8
Hi Baka

Thanks a lot for your help this worked after i changed the Asterisk version to 1.6 and restarted the daemon.

Secondly this is how my context looks for callback in extensions.conf. Problem is after the first leg of the call it is asking to enter destination number. Is this context correct or i need to change something.

[a2billing-callback]
; CallingCard application
exten => _X.,1,AGI(a2billing.php,1,callback)
exten => h,1,Hangup


Top
 Profile  
 
 Post subject: Re: A2billing 1.9.4(Cuprum) Callback not working
PostPosted: Fri Jul 22, 2011 10:54 am 
Offline

Joined: Sun Apr 17, 2011 1:59 am
Posts: 10
I think it is:


[a2billing-callback]
; CallingCard application
exten => _X.,1,AGI(a2billing.php,1,callback)
exten => _X.,n,Hangup


Top
 Profile  
 
 Post subject: Re: A2billing 1.9.4(Cuprum) Callback not working
PostPosted: Fri Jul 22, 2011 5:05 pm 
Offline

Joined: Sat Jul 16, 2011 11:34 pm
Posts: 8
hi Baka

After making the change to the context i still get the please enter destination number after i pick the callback and this is the log i get from
the asterisk console instead of just going ahead and calling the destination number.When i try to enter the destination number it just keeps playing the ivr please enter destination number. Even after i press the # key

-- Executing [2307XXXXX@a2billing-callback:1] AGI("SIP/ip-address-0000000f", "a2billing.php,1,callback") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
-- Playing 'prepaid-callback_intro' (escape_digits=#) (sample_offset 0)
-- <SIP/ip-address-0000000f> Playing 'prepaid-enter-dest.gsm' (language 'en')
-- <SIP/ip-address-0000000f> Playing 'prepaid-enter-dest.gsm' (language 'en')

This is the debug from the AGI

-- Executing [2307xxxxxx@a2billing-callback:1] AGI("SIP/ipaddress-00000016", "a2billing.php,1,callback") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
<SIP/ip-address-00000016>AGI Tx >> agi_request: a2billing.php
<SIP/-00000016>AGI Tx >> agi_channel: SIP/ipaddress-00000016
<SIP/-00000016>AGI Tx >> agi_language: en
<SIP/-00000016>AGI Tx >> agi_type: SIP
<SIP/-00000016>AGI Tx >> agi_uniqueid: 1311357948.22
<SIP/-00000016>AGI Tx >> agi_version: 1.8.3.3
<SIP/-00000016>AGI Tx >> agi_callerid: 1253xxxxx
<SIP/-00000016>AGI Tx >> agi_calleridname: unknown
<SIP/-00000016>AGI Tx >> agi_callingpres: 0
<SIP/-00000016>AGI Tx >> agi_callingani2: 0
<SIP/-00000016>AGI Tx >> agi_callington: 0
<SIP/-00000016>AGI Tx >> agi_callingtns: 0
<SIP/-00000016>AGI Tx >> agi_dnid: unknown
<SIP/-00000016>AGI Tx >> agi_rdnis: unknown
<SIP/-00000016>AGI Tx >> agi_context: a2billing-callback
<SIP/-00000016>AGI Tx >> agi_extension: 2307xxxxx
<SIP/-00000016>AGI Tx >> agi_priority: 1
<SIP/-00000016>AGI Tx >> agi_enhanced: 0.0
<SIP/-00000016>AGI Tx >> agi_accountcode: 6613608847
<SIP/-00000016>AGI Tx >> agi_threadid: 140413254809344
<SIP/-00000016>AGI Tx >> agi_arg_1: 1
<SIP/-00000016>AGI Tx >> agi_arg_2: callback
<SIP/-00000016>AGI Tx >>
<SIP/-00000016>AGI Rx << GET VARIABLE IDCONF
<SIP/-00000016>AGI Tx >> 200 result=0
<SIP/-00000016>AGI Rx << ANSWER
<SIP/-00000016>AGI Tx >> 200 result=0
<SIP/-00000016>AGI Rx << STREAM FILE prepaid-callback_intro "#" 0
-- Playing 'prepaid-callback_intro' (escape_digits=#) (sample_offset 0)
<SIP/-00000016>AGI Tx >> 200 result=0 endpos=21440
<SIP/-00000016>AGI Rx << GET VARIABLE CALLED
<SIP/-00000016>AGI Tx >> 200 result=1 (1253xxxxxx|CALLING=2307xxxxxx|CBID=u1ma5-0608397516|TARIFF=1)
<SIP/-00000016>AGI Rx << GET VARIABLE CALLING
<SIP/-00000016>AGI Tx >> 200 result=0
<SIP/-00000016>AGI Rx << GET VARIABLE MODE
<SIP/-00000016>AGI Tx >> 200 result=0
<SIP/-00000016>AGI Rx << GET VARIABLE TARIFF
<SIP/-00000016>AGI Tx >> 200 result=0
<SIP/-00000016>AGI Rx << GET VARIABLE CBID
<SIP/-00000016>AGI Tx >> 200 result=0
<SIP/-00000016>AGI Rx << GET VARIABLE LEG
<SIP/-00000016>AGI Tx >> 200 result=0
<SIP/-00000016>AGI Rx << SET VARIABLE CHANNEL(language) "en"
<SIP/-00000016>AGI Tx >> 200 result=1
<SIP/-00000016>AGI Rx << SET CALLERID 1253xxxxxx
<SIP/-00000016>AGI Tx >> 200 result=1
<SIP/-00000016>AGI Rx << CHANNEL STATUS SIP/ipaddress-00000016
<SIP/-00000016>AGI Tx >> 200 result=6
<SIP/-00000016>AGI Rx << GET DATA prepaid-enter-dest 6000 20
-- <SIP/-00000016> Playing 'prepaid-enter-dest.gsm' (language 'en')
<SIP/-00000016>AGI Tx >> 200 result= (timeout)
<SIP/-00000016>AGI Rx << CHANNEL STATUS SIP/ipaddress-00000016
<SIP/-00000016>AGI Tx >> 200 result=6
<SIP/-00000016>AGI Rx << GET DATA prepaid-enter-dest 6000 20
-- <SIP/-00000016> Playing 'prepaid-enter-dest.gsm' (language 'en')
<SIP/-00000016>AGI Tx >> 200 result= (timeout)
<SIP/-00000016>AGI Rx << CHANNEL STATUS SIP/ipaddress-00000016
<SIP/-00000016>AGI Tx >> 200 result=6
<SIP/-00000016>AGI Rx << GET DATA prepaid-enter-dest 6000 20
-- <SIP/-00000016> Playing 'prepaid-enter-dest.gsm' (language 'en')
<SIP/ipaddress-00000016>AGI Tx >> 200 result=-1


Last edited by kaf3773 on Sat Jul 23, 2011 4:17 am, edited 3 times in total.

Top
 Profile  
 
 Post subject: Re: A2billing 1.9.4(Cuprum) Callback not working
PostPosted: Fri Jul 22, 2011 5:11 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

It is usual for the system to ask for the destination to call, unless of course you are using web callback.

Joe


Top
 Profile  
 
 Post subject: Re: A2billing 1.9.4(Cuprum) Callback not working
PostPosted: Fri Jul 22, 2011 5:20 pm 
Offline

Joined: Sat Jul 16, 2011 11:34 pm
Posts: 8
Yes i am using webcallback and on a2billing 1.7 once i supply the callback numer and the destination it does not ask for the destination again.

And secondly it is still playing the ivr please enter the destination number after i have pressed the # key. So its not responding to any key input.


Top
 Profile  
 
 Post subject: Re: A2billing 1.9.4(Cuprum) Callback not working
PostPosted: Sat Jul 23, 2011 7:31 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

I wonder if the problem you are having is that there is no rate for the destination or the call cannot get through, and what you are hearing is a prompt for another number to call.

Temporarily reduce the try_count to 1, and see if you are cut off.

Joe


Top
 Profile  
 
 Post subject: Re: A2billing 1.9.4(Cuprum) Callback not working
PostPosted: Sat Jul 23, 2011 2:38 pm 
Offline

Joined: Sat Jul 16, 2011 11:34 pm
Posts: 8
Hello Joe

Yes after changing the retry_count to 1 it cuts off after playing the ivr one's

Kaf


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 5 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group