Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 10:47 pm
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject:
PostPosted: Sun Oct 07, 2007 3:46 pm 
Offline

Joined: Mon Jun 19, 2006 5:14 pm
Posts: 218
here are a few ways to do it and not lose the DNID which is what drives the additional pricing

exten => 800number,1,GoTo(custom-callingcard-toll,${EXTEN},1)

dnid not lost because the goto is still 800number

[custom-callingcard-toll]
exten => _X., 1, deadagi(a2biling.php)

here is another approach i use when i have multiple toll free numbers but i want to keep it simple

exten => _X.,1,Set(CALLERID(DNID)=800800800)
exten => _X.,2,DeadAGI(a2billing.php|1)
exten => _X.,3,Hangup


i set the dnid to a defined number but notice i do not do any "goto" to cause the dnid to change

if i have to do a goto i use the exten variable so as not to lose the dnid


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 07, 2007 5:14 pm 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
Yep.

Gue's suggestions should work. Here is a direct approach that I use quite often and it works like a charm.

Code:
[custom-callingcard-toll]
exten => _8008888888,1,NoOp(Icoming call on 1-800-888-8888)
exten => _8008888888,n,DeadAGI(a2billing.php|2|cid-callback)
exten => _8008888888,n,Hangup

exten => _8008008000,1,NoOp(Icoming call on 1-800-800-8000)
exten => _8008008000,n,DeadAGI(a2billing.php|3|cid-callback)
exten => _8008008000,n,Hangup


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 08, 2007 12:25 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
callingcard wrote:
exten => _X.,2,DeadAGI(a2billing.php|5)
You're not calling a2billing.php correctly; the agi-confX section is the 3rd parameter to DeadAGI. Here you have it as the 2nd parameter, which is meant to be the number dialed: ${EXTEN}


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 08, 2007 1:53 am 
Offline

Joined: Mon Jun 19, 2006 5:14 pm
Posts: 218
Quote:
-- Executing Answer("SIP/81.201.84.26-09750720", "") in new stack
-- Executing Wait("SIP/81.201.84.26-09750720", "1") in new stack
-- Executing DeadAGI("SIP/81.201.84.26-09750720", "a2billing.php|1") in new stack


this is the instructions you executed. that is not what you said you have in your extensions.conf

The call is not taking the path you believe


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3
Auto Dialer Software


All times are UTC


Who is online

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