Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 25, 2024 8:22 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Two Different Cid-Callback?
PostPosted: Fri Sep 18, 2009 5:35 pm 
Offline

Joined: Mon Apr 14, 2008 8:37 pm
Posts: 356
Location: Canada
hi all!

is it possible to have two different agi's for cid-callback? in the extensions_custom.conf file, the default cid-callback setup points to agi-conff1. but i want to create another agi that allows for only free minutes for cid-callback, hence the reason for the second agi. i'm having some trouble setting up the second agi for callback. i keep on getting the error:

Code:
    -- Executing [4164728410@from-trunk:1] Set("SIP/provider1-incoming-b7932c80", "__FROM_DID=4164728410") in new stack
    -- Executing [4164728410@from-trunk:2] ExecIf("SIP/provider1-incoming-b7932c80", "0 |Set|CALLERID(name)=9059754820") in new stack
    -- Executing [4164728410@from-trunk:3] Set("SIP/provider1-incoming-b7932c80", "__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [4164728410@from-trunk:4] SetCallerPres("SIP/provider1-incoming-b7932c80", "allowed_not_screened") in new stack
    -- Executing [4164728410@from-trunk:5] Goto("SIP/provider1-incoming-b7932c80", "a2billing-ul|4164728410|4") in new stack
    -- Goto (a2billing-ul,4164728410,4)
  == Auto fallthrough, channel 'SIP/provider1-incoming-b7932c80' status is 'UNKNOWN'


what could i be doing wrong? i renamed this second a2billing-cid-callback to a2billing-ul, and the agiconf is agiconf4. but i keep on getting this message? is it possible to have cid-callback go to another agi?

any help would be appreciated!


Top
 Profile  
 
 Post subject: Re: Two Different Cid-Callback?
PostPosted: Fri Sep 18, 2009 7:09 pm 
Offline

Joined: Wed Mar 15, 2006 11:58 pm
Posts: 325
if this is agi-conf2 then you should use 2 in context rather than 4.

-Bruce


Top
 Profile  
 
 Post subject: Re: Two Different Cid-Callback?
PostPosted: Fri Sep 18, 2009 7:19 pm 
Offline

Joined: Mon Apr 14, 2008 8:37 pm
Posts: 356
Location: Canada
thanks for the reply. its agiconf4. i have 4 different agi's curently. my first is for authenitaction via pin number. my second agi is for authentication via callerid. the third is for wholesale termination. the fourth is for my second agi relating to cid-callback :)


Top
 Profile  
 
 Post subject: Re: Two Different Cid-Callback?
PostPosted: Fri Sep 18, 2009 7:25 pm 
Offline

Joined: Wed Mar 15, 2006 11:58 pm
Posts: 325
Can you post your extensions_a2billing.conf here?!


Top
 Profile  
 
 Post subject: Re: Two Different Cid-Callback?
PostPosted: Fri Sep 18, 2009 8:40 pm 
Offline

Joined: Mon Apr 14, 2008 8:37 pm
Posts: 356
Location: Canada
hi! thanks for the replies! here is my exensions_custom.conf file; [a2billing-ul] is my second agi for cid-callback:

Code:
[custom-get-did-from-sip]
exten => _.,1,Goto(from-sip-external,${CUT(CUT(SIP_HEADER(To),@,1),:,2)},1)

[a2billing]
exten => _X.,1,Answer
exten => _X.,n,Wait(1)
exten => _X.,n,DeadAGI(a2billing.php|1)
exten => _X.,n,Hangup

[a2billing-did]
exten => _X.,1,DeadAGI(a2billing.php|1|did)

[a2billing-dd]
exten => _X.,1,Answer
exten => _X.,n,Wait(1)
exten => _X.,n,DeadAGI(a2billing.php|2)
exten => _X.,n,Hangup

[a2billing-callback]
exten => _X.,1,DeadAGI(a2billing.php|1|callback|1)
exten => _X.,n,Hangup

[a2billing-cid-callback]
exten => _X.,1,DeadAgi(a2billing.php|1|cid-callback|1) ;last parameter is the callback area code
exten => _X.,n,Hangup

[a2billing-all-callback]
exten => _.,1,DeadAgi(a2billing.php|1|all-callback) ;last parameter is the callback area code
exten => _.,n,Hangup   

[a2billing-voucher]
exten => _.,1,Answer(1)
exten => _.,n,DeadAgi(a2billing.php|2|voucher)
;exten => _.,n,AGI(a2billing.php|1|voucher|44) ; will add 44 in front of the callerID for the CID authentication
exten => _.,n,Hangup   

[a2billing-predictivedialer]
exten => _X.,1,DeadAGI(a2billing.php|1|predictivedialer)
exten => _X.,n,Hangup

[wholesale]
exten => _X.,1,DeadAGI(a2billing.php|3)
exten => _X.,n,Hangup

[a2billing-ul]
exten => _X.,1,DeadAgi(a2billing.php|4|cid-callback|1) ;last parameter is the callback area code
exten => _X.,n,Hangup


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


All times are UTC


Who is online

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