Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Mar 29, 2024 4:45 am
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Destination Annoucment
PostPosted: Thu Mar 29, 2012 3:37 am 
Offline

Joined: Thu Mar 29, 2012 3:32 am
Posts: 7
I am trying to play an audio file to the destination location.

I am using FreePBX and A2Billing, Someone else set this up and I have been called in to solve a problem. A caller calls a did and freepbx fowrwards the inbound to a custom extension. a2billing. I looked at that and found a extensions_cusotm.conf with a a2billing-did line in it. After that it seems the call gets sent to a2billing which sends it out to an external phone number.

What I need to accomplish is when the external caller picks up the phone, it says "call from company x" and then the call is connected.

Does anyone know if this is possible and if so, Where to begin?

Thanks for any advice, I hope I can return the favor to someone else someday.


Top
 Profile  
 
 Post subject: Re: Destination Annoucment
PostPosted: Thu Mar 29, 2012 8:11 am 
Offline

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


Use the A(x) switch in the dialcommand parameter in the agi-conf see http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial

Joe


Top
 Profile  
 
 Post subject: Re: Destination Annoucment
PostPosted: Thu Mar 29, 2012 1:48 pm 
Offline

Joined: Thu Mar 29, 2012 3:32 am
Posts: 7
I saw this A() Option in there. Where does it go? Where can I find the agi-conf file? I see something in the A2Billing control panel that says agi-conf1 conf2 etc ro make a conf by those parameters don't seem to look like what the article is describing. I am guess there is a physical file with a dialplan I need to add the option to? Also where does the audio file need to set and how would the path go in there? Does it need to be a specific format or will mp3 wav work?

I appreciate the help.


Top
 Profile  
 
 Post subject: Re: Destination Annoucment
PostPosted: Thu Mar 29, 2012 2:30 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
The agi-conf is database driven and controlled via A2Billing admin, not a file (unless you are using 1.3.4 or earlier)

It goes in the dial command parameter.

Joe


Top
 Profile  
 
 Post subject: Re: Destination Annoucment
PostPosted: Thu Mar 29, 2012 2:54 pm 
Offline

Joined: Thu Mar 29, 2012 3:32 am
Posts: 7
Well I think I found the area to target, I made a agi-conf 2 and found the dial command area:


GROUP
Group Name of the configuration variable
TITLE
Title of the configuration variable
KEY
Key name of the configuration variable
VALUE
Insert the Value
DESCRIPTION More information about the Dial : http://voip-info.org/wiki-Asterisk+cmd+dial
30 : The timeout parameter is optional. If not specifed, the Dial command will wait indefinitely, exiting only when the originating channel hangs up, or all the dialed channels return a busy or error condition. Otherwise it specifies a maximum time, in seconds, that the Dial command is to wait for a channel to answer.
H: Allow the caller to hang up by dialing *
r: Generate a ringing tone for the calling part


So i put this in: ,60,HRrL(%timeout%:61000:30000),A(dir-intro-fnln.gsm)
Not sure about the path of the audio file or if that audio file works, is there a test aduio file I can use, If i make one it is in the custom folder. I will play with it to see if I can get it working.

Also I set it to a second plan for testing so in freepbx i set up a new custom destination and in the extensions_custom.conf I added a copy but changed it to: a2billing.php,2 <- i think that is all I need to do to trigger the agi-conf2 right? I also saw in one article they are putting a path like /var/lib/asterisk/sounds/cutom .... I am going to play with that and see if it works.


Top
 Profile  
 
 Post subject: Re: Destination Annoucment
PostPosted: Thu Mar 29, 2012 2:55 pm 
Offline

Joined: Thu Mar 29, 2012 3:32 am
Posts: 7
jroper wrote:
The agi-conf is database driven and controlled via A2Billing admin, not a file (unless you are using 1.3.4 or earlier)

It goes in the dial command parameter.

Joe



Thanks Joe, I found it in the cp and the dial command, I just need to understand the syntax of how to put the A(file.gsm) in now :)

Most helpful!


Top
 Profile  
 
 Post subject: Re: Destination Annoucment
PostPosted: Thu Mar 29, 2012 3:37 pm 
Offline

Joined: Thu Mar 29, 2012 3:32 am
Posts: 7
not sure where it goes, there seems to be several dial commands:

Dial Command Params dialcommand_param ,60,HRrL(%timeout%:61000:30000),A(/var/lib/asterisk/sounds/en/access-denied.gsm) More information about the Dial : http://voip-info.org/wiki-Asterisk+cmd+dial
30 : The timeout parameter is optional. If not specifed, the Dial command will wait indefinitely, exiting only when the originating channel hangs up, or all the dialed channels return a busy or error condition. Otherwise it specifies a maximum time, in seconds, that the Dial command is to wait for a channel to answer.
H: Allow the caller to hang up by dialing *
r: Generate a ringing tone for the calling part agi-conf2
SIP/IAX Dial Command Params dialcommand_param_sipiax_friend ,60,HRrL(%timeout%:61000:30000),A(/var/lib/asterisk/sounds/en/access-denied.gsm) by default (3600000 = 1HOUR MAX CALL). agi-conf2

Also would this path work? IS there a good audio file to use for testing? Does it have to be a gsm file?

IS there a way to make sure I am using the agi-conf2 as opposed to 1?


Top
 Profile  
 
 Post subject: Re: Destination Annoucment
PostPosted: Thu Mar 29, 2012 3:42 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Quote:
IS there a way to make sure I am using the agi-conf2 as opposed to 1?


The logs.

Quote:
...,60,HRrL(%timeout%:61000:30000),A(/var/lib/asterisk/sounds/en/access-denied.gsm)


Should work, as should A(en/accessed-denied)

Quote:
not sure where it goes, there seems to be several dial command

dialcommand_param


Top
 Profile  
 
 Post subject: Re: Destination Annoucment
PostPosted: Thu Mar 29, 2012 4:00 pm 
Offline

Joined: Thu Mar 29, 2012 3:32 am
Posts: 7
Ok thanks for the logs comment,

I looked and it does look like it is using the correct dialplan, however I dont hear the audio file when I answer it? here is the log file:
Code:
[29/03/2012 08:32:09]:[CallerID:12146019634]:[CN:2865172430]:[[exit]]
[29/03/2012 08:51:55]:[file:a2billing.php - line:106 - uniqueid:]:[CallerID:]:[CN:]:[IDCONFIG : 2]
[29/03/2012 08:51:55]:[file:a2billing.php - line:107 - uniqueid:]:[CallerID:]:[CN:]:[MODE : did]
[29/03/2012 08:51:55]:[file:Class.A2Billing.php - line:718 - uniqueid:1333036314.734]:[CallerID:12146019634]:[CN:]:[ get_agi_request_parameter = 12146019634 ; SIP/VI-0000024e ; 1333036314.734 ;  ; 9724780503]
[29/03/2012 08:51:55]:[file:a2billing.php - line:632 - uniqueid:1333036314.734]:[CallerID:12146019634]:[CN:]:[[ANSWER CALL]]
[29/03/2012 08:51:55]:[file:a2billing.php - line:647 - uniqueid:1333036314.734]:[CallerID:12146019634]:[CN:]:[[DID CALL - [CallerID=12146019634]:[DID=9724780503]]
[29/03/2012 08:51:55]:[file:Class.A2Billing.php - line:1251 - uniqueid:1333036314.734]:[CallerID:12146019634]:[CN:]:[[A2Billing] DID call friend: FOLLOWME=1 (cardnumber:2865172430|destination:2148930148|tariff:1)
]
[29/03/2012 08:51:55]:[file:Class.A2Billing.php - line:896 - uniqueid:1333036314.734]:[CallerID:12146019634]:[CN:2865172430]:[DESTINATION ::> 2148930148]
[29/03/2012 08:51:55]:[file:Class.RateEngine.php - line:1238 - uniqueid:1333036314.734]:[CallerID:12146019634]:[CN:2865172430]:[app_callingcard: Dialing 'SIP/VI/2148930148,60,HRrL(5000000:61000:30000),A(en/access-denied)' with timeout of '5000'.
]
[29/03/2012 08:52:10]:[file:Class.RateEngine.php - line:1267 - uniqueid:1333036314.734]:[CallerID:12146019634]:[CN:2865172430]:[DIAL SIP/VI/2148930148,60,HRrL(5000000:61000:30000),A(en/access-denied)]
[29/03/2012 08:52:10]:[file:Class.RateEngine.php - line:954 - uniqueid:1333036314.734]:[CallerID:12146019634]:[CN:2865172430]:[:[sessiontime:6 - id_cc_package_offer:-1 - package2apply:]
]
[29/03/2012 08:52:10]:[file:Class.RateEngine.php - line:1102 - uniqueid:1333036314.734]:[CallerID:12146019634]:[CN:2865172430]:[[CC_asterisk_stop : SQL: DONE : result=1]]
[29/03/2012 08:52:10]:[file:Class.A2Billing.php - line:1758 - uniqueid:1333036314.734]:[CallerID:12146019634]:[CN:2865172430]:[[bill_did_aleg]:[aleg_carrier_connect_charge=0.00000;\
aleg_carrier_cost_min=0.00000;\
aleg_retail_connect_charge=0.00000;\
aleg_retail_cost_min=0.00000;\
aleg_carrier_initblock=0;\
aleg_carrier_increment=0;\
aleg_retail_initblock=0;\
aleg_retail_increment=0]]
[29/03/2012 08:52:10]:[CallerID:12146019634]:[CN:2865172430]:[[exit]]


Top
 Profile  
 
 Post subject: Re: Destination Annoucment
PostPosted: Thu Mar 29, 2012 4:50 pm 
Offline

Joined: Thu Mar 29, 2012 3:32 am
Posts: 7
got it all working, thanks for everyones help,

just in case anyone stumbles in trying to figue it out, the place to put it in is in the control panel under group list and sleect the agi-conf1 or 2 or whatever you want to use and then find the dial-command property and add the A(audiofile) to the string. Make sure there is not comma on the front. The audio file will be from the asterisk sounds path, so if you do a custom just use cutom/soundfile and no extension. I used a mp3 file and worked a charm!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 
Auto Dialer Software


All times are UTC


Who is online

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