Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 26, 2024 3:39 pm
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: a2billing-cid-callaback configuration
PostPosted: Wed Jun 10, 2009 4:07 pm 
Offline

Joined: Mon Feb 16, 2009 10:22 am
Posts: 19
Location: tunis
Hello,
please I need your help because i have spent 60 days but i didn't succed to make a2billing-cid-callback work.
I have installed a2billing 1.4, asterisk 1.4.22, and freepbx 2.5.1.5, i have installed the deamon of callback and it works fine. this my configuration:

config trunk in freepbx:
Peer details

disallow=all
allow=gsm&alaw&ulaw
canreinvite=no
context=tocallback
host=xxx.xxx.xxx
fromdomain=voipshop.fr
insecure=very
secret=xxxxxx
type=peer
username=33xxxxxxxxx
fromuser=33xxxxxxxxx
qualify=yes
echocancel=yes
dtmfmode=rfc2833


User details:

disallow=all
allow=gsm&alaw&ulaw
canreinvite=no
fromuser=33xxxxxxxxx
qualify=yes
secret=xxxxx
type=user
username=33xxxxxxxxx

extensions.conf:

[tocallback]
exten => 33xxxxxxxxx,1,Goto(a2billing-cid-callback,${EXTEN},1)


[a2billing-cid-callback]
exten => _X.,1,Ringing()
exten => _X.,n,Set(CALLERID(num)=0${IF($[${CALLERID(num):0:2}=00]?${CALLERID(num):2}:${CALLERID(num)})})
exten => _X.,n,DeadAGI(a2billing.php|2|cid-callback|) ;last parameter is the callback area code
exten => _X.,n,Hangup


iam from tunisia so the prefix is 00216 but the callerid received in asterisk with the prefix 0216 only i don't know why asterisk don't detect the first 0 but no pb I have added this 0.

in a2billing i have created a provider, trunk, rate card, rate and a customer. the trunk is the same trunk configured in freepbx so this trunk is at the same time used as an access number and an outbound route to callback my mobile phone witch has the number 0021692144766


so when i call from my mobile phone the access number 33xxxxxxxxxx, the call is routed to the tocallback context then is routed to a2billing-cid-callback but asterisk didn't call me back. this is the output of the server:



Connected to Asterisk 1.4.22 currently running on s15322148 (pid = 20176)
Verbosity is at least 5
-- Executing [33179974773@tocallback:1] Goto("SIP/33179974773-b73387a0", "a2billing-cid-callback|33179974773|1") in new stack
-- Goto (a2billing-cid-callback,33179974773,1)
-- Executing [33179974773@a2billing-cid-callback:1] Ringing("SIP/33179974773-b73387a0", "") in new stack
-- Executing [33179974773@a2billing-cid-callback:2] Set("SIP/33179974773-b73387a0", "CALLERID(num)=0021692144766") in new stack
-- Executing [33179974773@a2billing-cid-callback:3] DeadAGI("SIP/33179974773-b73387a0", "a2billing.php|2|cid-callback|") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
s15322148*CLI>
-- AGI Script a2billing.php completed, returning 0
-- Executing [33179974773@a2billing-cid-callback:4] Hangup("SIP/33179974773-b73387a0", "") in new stack
== Spawn extension (a2billing-cid-callback, 33179974773, 4) exited non-zero on 'SIP/33179974773-b73387a0'
-- Executing [33179974773@tocallback:1] Goto("SIP/33179974773-b732f040", "a2billing-cid-callback|33179974773|1") in new stack
-- Goto (a2billing-cid-callback,33179974773,1)
-- Executing [33179974773@a2billing-cid-callback:1] Ringing("SIP/33179974773-b732f040", "") in new stack
-- Executing [33179974773@a2billing-cid-callback:2] Set("SIP/33179974773-b732f040", "CALLERID(num)=0021692144766") in new stack
-- Executing [33179974773@a2billing-cid-callback:3] DeadAGI("SIP/33179974773-b732f040", "a2billing.php|2|cid-callback|") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
s15322148*CLI>
-- AGI Script a2billing.php completed, returning 0
-- Executing [33179974773@a2billing-cid-callback:4] Hangup("SIP/33179974773-b732f040", "") in new stack
== Spawn extension (a2billing-cid-callback, 33179974773, 4) exited non-zero on 'SIP/33179974773-b732f040'


please help me i don't understand what is the error in my configuration, why asterisk didn't call me back?


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


All times are UTC


Who is online

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