Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 4:26 pm
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: how to add new voice prompts for different language
PostPosted: Fri May 18, 2007 6:24 am 
Offline

Joined: Mon Aug 21, 2006 11:03 pm
Posts: 34
Location: Livorno - Italy
Hi,
I hope this can help some one:

To add new voice prompts to a2billing, first add new voiceprompts to asterisk putting the rigths dir sound in /usr/share/asterisk/sounds or /var/lib/asterisk/sounds (depends on your linux distro).
For example, in my case, i add "it" language sound directory with all subfolder like "digits", etc.
Then, look for the file /usr/share/asterisk/agi-bin/lib_a2billing/Class.A2Billing.php, line 448.
This his the little code i added to add italian sound:

Code:
$this -> languageselected = $res_dtmf ["result"];

                        if              ($this->languageselected=="2")
                                $language = 'es';
                        elseif  ($this->languageselected=="3")
                                $language = 'fr';
                        elseif  ($this->languageselected=="4")
                                $language = 'it';
                        else
                                $language = 'en';


How you can see, is sufficent add a line like this:

Code:
elseif  ($this->languageselected=="4")
                                $language = 'it';


Where "4" is the pressed digit and "it" is the country code for the new sounds prompts.

Then you've to change the file prepaid-menulang to add the new language options.

I hope in the next version of a2billing the voice prompts are not hardcoded even if the patch is very simpe.

Regards,
Alessandro Marzini
Digilab/YouPhone


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 10, 2007 9:02 am 
Offline

Joined: Sat Jan 06, 2007 8:16 pm
Posts: 14
Grazie Alessandro,

Can you please tell me if your solution bypass the problem of english digit prompts told even if the customer has selected espagnol?

Artur


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 10, 2007 9:08 am 
Offline

Joined: Mon Aug 21, 2006 11:03 pm
Posts: 34
Location: Livorno - Italy
can you explain exactly the problem you have?

Ciao!
Alessandro


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 10, 2007 9:35 am 
Offline

Joined: Sat Jan 06, 2007 8:16 pm
Posts: 14
Hi,

Example: for french I have:

Vous avez four minutes et ten secondes.

The digits gets played in english.

Artur


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 10, 2007 9:39 am 
Offline

Joined: Mon Aug 21, 2006 11:03 pm
Posts: 34
Location: Livorno - Italy
Hhmm...i would need to look into your configuration, but have you set the FRENCH language in a2billing customer configuration?

Regards,
Alessandro Marzini
DIGILAB


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 23, 2007 9:03 am 
Offline

Joined: Sat Jan 06, 2007 8:16 pm
Posts: 14
In fact I resolved the issue based on your post.

The issue was related with the fact that I needed to create a directory tree even for digits in /var/lib/asterisk/sounds, including subdirectories for each language I will use.

/var/lib/asterisk/sounds/digits/en
/var/lib/asterisk/sounds/digits/al
/var/lib/asterisk/sounds/digits/it
/var/lib/asterisk/sounds/digits/fr
/var/lib/asterisk/sounds/en
/var/lib/asterisk/sounds/al
/var/lib/asterisk/sounds/it
/var/lib/asterisk/sounds/fr

Thank you very much!

Artur


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 23, 2007 12:24 pm 
Offline

Joined: Mon Aug 21, 2006 11:03 pm
Posts: 34
Location: Livorno - Italy
arturnurja wrote:
In fact I resolved the issue based on your post.

The issue was related with the fact that I needed to create a directory tree even for digits in /var/lib/asterisk/sounds, including subdirectories for each language I will use.

/var/lib/asterisk/sounds/digits/en
/var/lib/asterisk/sounds/digits/al
/var/lib/asterisk/sounds/digits/it
/var/lib/asterisk/sounds/digits/fr
/var/lib/asterisk/sounds/en
/var/lib/asterisk/sounds/al
/var/lib/asterisk/sounds/it
/var/lib/asterisk/sounds/fr

Thank you very much!

Artur


I'm happy you resolved the problem with my suggest! :)

Best Regards,
Alessandro Marzini


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 
Predictive Dialer


All times are UTC


Who is online

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