Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 8:48 pm
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: a2billing-cid-callback problem
PostPosted: Mon Mar 28, 2011 3:43 pm 
Offline

Joined: Mon Feb 16, 2009 10:22 am
Posts: 19
Location: tunis
Bonjour ,
J'ai rencontré un pb pour la configuration de a2billing-cid-callack et a2billing-all-callback.
Commençons d'abord par a2billing-cid-callabck:

j'utilise asterisk-1.4 + a2billing 1.9.3 sur un Centos 5 ( php 5.2.17)

voici le contexte de a2billing-cid-callabck
[a2billing-cid-callback]
exten => _X.,1,Ringing()
exten => _X.,n,Set(CALLERID(num)=00${IF($[${CALLERID(num):0:2}=00]?${CALLERID(num):2}:${CALLERID(num)})})
exten => _X.,n,DeadAGI(a2billing.php|6|cid-callback)
exten => _X.,n,Hangup

l'agi-conf 6 est configuré comme suit:
answer_call =yes
play_audio =yes
say_goodbye =no
use_dnid =no
number_try=3
force_callplan_id = 6
say_balance_after_auth =no
auto_setcallerid =yes
cid_enable =yes
cid_askpincode_ifnot_callerid =yes
cid_auto_assign_card_to_cid =yes
callerid_authentication_over_cardnumber=no



le web-callback fonctionne bien car le deamon est bien installé mais le cid callback ne fonctionne pas, j'appele le did j'entend la sonnerie, pas de hangup et le serveur ne me rappele pas voiçi les logs de cli:


Executing [33488722136@a2billing-cid-callback:1] Ringing("SIP/5060-00000014", "") in new stack
-- Executing [33488722136@a2billing-cid-callback:2] Set("SIP/5060-00000014", "CALLERID(num)=0021626317096") in new stack
-- Executing [33488722136@a2billing-cid-callback:3] DeadAGI("SIP/5060-00000014", "a2billing.php|6|cid-callback") in new stack
[2011-03-28 15:38:43] WARNING[19582]: res_agi.c:2212 deadagi_exec: Running DeadAGI on a live channel will cause problems, please use AGI
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
AGI Tx >> agi_request: a2billing.php
AGI Tx >> agi_channel: SIP/5060-00000014
AGI Tx >> agi_language: en
AGI Tx >> agi_type: SIP
AGI Tx >> agi_uniqueid: 1301319523.30
AGI Tx >> agi_callerid: 0021626317096
AGI Tx >> agi_calleridname: unknown
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 1
AGI Tx >> agi_dnid: 33488722136
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: a2billing-cid-callback
AGI Tx >> agi_extension: 33488722136
AGI Tx >> agi_priority: 3
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >>
AGI Rx << GET VARIABLE IDCONF
AGI Tx >> 200 result=0
AGI Rx << HANGUP
AGI Tx >> 200 result=1
AGI Rx << STREAM FILE prepaid-auth-fail "#" 0
-- Playing 'prepaid-auth-fail' (escape_digits=#) (sample_offset 0)
[2011-03-28 15:38:43] WARNING[19582]: file.c:768 ast_readaudio_callback: Failed to write frame
AGI Tx >> 200 result=-1 endpos=22880
-- Executing [33488722136@a2billing-cid-callback:1] Ringing("SIP/5060-00000015", "") in new stack
-- Executing [33488722136@a2billing-cid-callback:2] Set("SIP/5060-00000015", "CALLERID(num)=0021626317096") in new stack
-- Executing [33488722136@a2billing-cid-callback:3] DeadAGI("SIP/5060-00000015", "a2billing.php|6|cid-callback") in new stack
[2011-03-28 15:38:46] WARNING[19586]: res_agi.c:2212 deadagi_exec: Running DeadAGI on a live channel will cause problems, please use AGI
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
AGI Tx >> agi_request: a2billing.php
AGI Tx >> agi_channel: SIP/5060-00000015
AGI Tx >> agi_language: en
AGI Tx >> agi_type: SIP
AGI Tx >> agi_uniqueid: 1301319526.31
AGI Tx >> agi_callerid: 0021626317096
AGI Tx >> agi_calleridname: unknown
AGI Tx >> agi_callingpres: 0
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 1
AGI Tx >> agi_dnid: 33488722136
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: a2billing-cid-callback
AGI Tx >> agi_extension: 33488722136
AGI Tx >> agi_priority: 3
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode:
AGI Tx >>
AGI Rx << GET VARIABLE IDCONF
AGI Tx >> 200 result=0
AGI Rx << HANGUP
AGI Tx >> 200 result=1
AGI Rx << STREAM FILE prepaid-auth-fail "#" 0
-- Playing 'prepaid-auth-fail' (escape_digits=#) (sample_offset 0)
[2011-03-28 15:38:46] WARNING[19586]: file.c:768 ast_readaudio_callback: Failed to write frame
AGI Tx >> 200 result=-1 endpos=22880

S'ils vous plait j'ai besoin de votre aide.


Top
 Profile  
 
 Post subject: Re: a2billing-cid-callback problem
PostPosted: Wed Mar 30, 2011 8:09 am 
Offline

Joined: Fri Dec 17, 2010 12:17 pm
Posts: 20
Bonjour,

je pense que c'est mieux de parler anglais sur le forum comme çà tout le monde peut comprendre, donc excuse moi de te repondre en english...

1. First to do the hangup, and depending to your provider, you may try hangup with the param 38 (exten => h,1,Hangup(38)) or maybe add some rings during 1 or 2 seconds : exten => 0xxxxxx,n,Ringing and exten => 0xxxxx,n,Wait(1)

2. Does the all-callback work ? If yes, verify you have your caller id (0021626317096 in your case) associated with the cardnumber you've created.

3. Did you start the a2b-callback-deamon after asterisk ? Verify the logs of the deamon you should see an attempt of call for the callback ( tail -f /var/log/a2billing/a2b-callback-daemon.log )

Hope those tests could help you,
a bientot


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 22 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