Re: [asterisk-users] [1.4] Reading phone number the French way?

2011-03-10 Thread Gilles
On Thu, 10 Mar 2011 15:10:19 + (UTC), t...@softins.co.uk (Tony Mountifield) wrote: >> -- Executing [@internal:6] Playback("SIP/xlite-02a56004", >> "phone:0892123456}|say") in new stack ... >You have a spurious } after 0892123456 which is preventing it >from matching the pattern in say.conf

Re: [asterisk-users] [1.4] Reading phone number the French way?

2011-03-10 Thread Tony Mountifield
In article , Gilles wrote: > On Thu, 10 Mar 2011 14:37:45 +0100, Gilles > wrote: > >I figured out how extensions.conf and say.conf work and posted my > >results in the reply to Dave. > > Noticed something strange, though: 0800123456 is played OK (ie. > 0.800.12.34.56) , but 092123456 is played d

Re: [asterisk-users] [1.4] Reading phone number the French way?

2011-03-10 Thread Gilles
On Thu, 10 Mar 2011 08:49:43 -0600, "Danny Nicholas" wrote: >"sip set debug peer" is probably going to be >your best bet for say.conf debugging. If you do "sip set debug peer " >as opposed to "core set debug 10", you are getting "nodal debugging" as >opposed to "general debugging". Thanks fo

Re: [asterisk-users] [1.4] Reading phone number the French way?

2011-03-10 Thread Danny Nicholas
-Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Gilles Sent: Thursday, March 10, 2011 8:39 AM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] [1.4] Reading phone number the French way? On Thu

Re: [asterisk-users] [1.4] Reading phone number the French way?

2011-03-10 Thread Gilles
On Thu, 10 Mar 2011 08:34:51 -0600, "Danny Nicholas" wrote: >== say.conf > >;1-9 >_[n]um:X => digits/${SAY} > >;10-99 >_[n]um:1X => digits/${SAY} >_[n]um:[2-9]0 => digits/${SAY} >_[n]um:[2-6]1 => digits/${SAY:0:1}0, vm-and, digits/${SAY:1} >_[n]um:71 => digits/60, vm-and, num:1${SAY:1} >_

Re: [asterisk-users] [1.4] Reading phone number the French way?

2011-03-10 Thread Danny Nicholas
-Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Gilles Sent: Thursday, March 10, 2011 8:32 AM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] [1.4] Reading phone number the French way? On

Re: [asterisk-users] [1.4] Reading phone number the French way?

2011-03-10 Thread Gilles
On Thu, 10 Mar 2011 14:37:45 +0100, Gilles wrote: >I figured out how extensions.conf and say.conf work and posted my >results in the reply to Dave. Noticed something strange, though: 0800123456 is played OK (ie. 0.800.12.34.56) , but 092123456 is played digit by digit (0.8.9.2, etc.): ==

Re: [asterisk-users] [1.4] Reading phone number the French way?

2011-03-10 Thread Gilles
On Thu, 10 Mar 2011 15:30:51 +0200, Tzafrir Cohen wrote: >I think you're missing SayDigits(). > >say.conf does use the syntax of the extensions.conf, but it's not a >dialplan. Thanks for the input, but SayDigit() isn't right for what I want to do, since it simply reads a phone number digit-by-dig

Re: [asterisk-users] [1.4] Reading phone number the French way?

2011-03-10 Thread Tzafrir Cohen
On Thu, Mar 10, 2011 at 12:55:18PM +0100, Gilles wrote: > On Tue, 08 Mar 2011 13:22:18 +0100, Gilles > wrote: > >I need to write a script which prompts the callee to type a number, > >and then read it back to them as confirmation: > > Apparently, the right way to read a phone number back to the u

Re: [asterisk-users] [1.4] Reading phone number the French way?

2011-03-10 Thread Gilles
On Thu, 10 Mar 2011 13:18:41 +0100, Dave Cotton wrote: >Look at the GotoIf statement for example Thanks Dave for the tip, but I found that I needed to change a pattern that was already in say.conf: === [fr](date-base,digit-base) ;BAD _[n]um:0. => num:${SAY:1} _[n]um:0X => num:${SAY:0:1},

Re: [asterisk-users] [1.4] Reading phone number the French way?

2011-03-10 Thread Dave Cotton
On 10/03/11 12:55, Gilles wrote: On Tue, 08 Mar 2011 13:22:18 +0100, Gilles wrote: I need to write a script which prompts the callee to type a number, and then read it back to them as confirmation: Apparently, the right way to read a phone number back to the user is not to use SayNumber() (whi

Re: [asterisk-users] [1.4] Reading phone number the French way?

2011-03-10 Thread Gilles
On Tue, 08 Mar 2011 13:22:18 +0100, Gilles wrote: >I need to write a script which prompts the callee to type a number, >and then read it back to them as confirmation: Apparently, the right way to read a phone number back to the user is not to use SayNumber() (which might be OK for US-style readin

Re: [asterisk-users] [1.4] Reading phone number the French way?

2011-03-09 Thread Gilles
On Wed, 9 Mar 2011 12:43:37 +0200, Tzafrir Cohen wrote: >On Tue, Mar 08, 2011 at 02:58:02PM -0600, Tilghman Lesher wrote: >> On Tuesday 08 March 2011 06:49:55 Faisal Hanif wrote: >> > You can also set it in dialplan using "Set(LANGUAGE=FR)" >> >> Actually, the right way to do this is: >> Set(CHA

Re: [asterisk-users] [1.4] Reading phone number the French way?

2011-03-09 Thread Gilles
On Tue, 08 Mar 2011 07:47:39 EST, ken...@gnat.com (Richard Kenner) wrote: >Maybe something like: > >exten => s,n,SayDigits(${NBR2CALL:0:1}) >exten => s,n,SayNumber(${NBR2CALL:2:2}) >exten => s,n,SayNumber(${NBR2CALL:4:2}) >exten => s,n,SayNumber(${NBR2CALL:6:2}) >exten => s,n,SayNumber(${NBR2CALL:8

Re: [asterisk-users] [1.4] Reading phone number the French way?

2011-03-09 Thread Tzafrir Cohen
On Tue, Mar 08, 2011 at 02:58:02PM -0600, Tilghman Lesher wrote: > On Tuesday 08 March 2011 06:49:55 Faisal Hanif wrote: > > You can also set it in dialplan using "Set(LANGUAGE=FR)" > > Actually, the right way to do this is: > Set(CHANNEL(language)=fr) > > The "LANGUAGE" pseudo-variable is read-o

Re: [asterisk-users] [1.4] Reading phone number the French way?

2011-03-08 Thread Tilghman Lesher
On Tuesday 08 March 2011 06:49:55 Faisal Hanif wrote: > You can also set it in dialplan using "Set(LANGUAGE=FR)" Actually, the right way to do this is: Set(CHANNEL(language)=fr) The "LANGUAGE" pseudo-variable is read-only. -- Tilghman --

Re: [asterisk-users] [1.4] Reading phone number the French way?

2011-03-08 Thread Faisal Hanif
[asterisk-users] [1.4] Reading phone number the French way? On Tue, 8 Mar 2011 17:31:26 +0500, "Faisal Hanif" wrote: >When you compile asterisk you can select multiple language files by >using "make menuselect" additionally you find lot of free sources on >inter

Re: [asterisk-users] [1.4] Reading phone number the French way?

2011-03-08 Thread Richard Kenner
> exten => s,n(nbr2call),Read(NBR2CALL,please-type-number,10,,2,20) > > For instance, a landline number in Paris like 01 42 92 81 00 is read > "zero-one, forty-two, ninety-two, eighty-one, zero-zero", where I > assume Americans would read all the digits individually ("zero, one, > four, two, etc."

Re: [asterisk-users] [1.4] Reading phone number the French way?

2011-03-08 Thread Gilles
On Tue, 8 Mar 2011 17:31:26 +0500, "Faisal Hanif" wrote: >When you compile asterisk you can select multiple language files by using >"make menuselect" additionally you find lot of free sources on internet for >language files. Simply create a folder with language short-code in sounds >and then set

Re: [asterisk-users] [1.4] Reading phone number the French way?

2011-03-08 Thread Faisal Hanif
that short-code. -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Gilles Sent: Tuesday, March 08, 2011 5:22 PM To: asterisk-users@lists.digium.com Subject: [asterisk-users] [1.4] Reading phone number the French way? Hello, I

[asterisk-users] [1.4] Reading phone number the French way?

2011-03-08 Thread Gilles
Hello, I need to write a script which prompts the callee to type a number, and then read it back to them as confirmation: === extensions.conf [robocall] ;Expect 10-digit number excluding final #, 2 tries, 20s time-out exten => s,n(nbr2call),Read(NBR2CALL,please-type-number,10,,2,20) exten =>