Re: [asterisk-users] Asterisk 1.6 and LUA

2009-01-07 Thread Dominique Dartois
Great!!

Thanks a lot.

Try

module reload pbx_lua.so

Dominique Dartois wrote:
 Hello all.
 I'm playing with LUA and I can't see a way to reload 'extensions.lua' 
 after a change, except by restarting Asterisk.
 Any clue?

---
Dominique Dartois



___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Asterisk 1.6 and LUA

2009-01-06 Thread Dominique Dartois
Hello all.
I'm playing with LUA and I can't see a way to reload 'extensions.lua' after
a change, except by restarting Asterisk.
Any clue?

Thanks.

-
Dominique Dartois



___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [asterisk-users] Correct syntax to access a shell variable?

2006-11-25 Thread Dominique Dartois
The right syntax should be externip=${ENV(MYIP)} but I **think** variables
are only allowed in extensions.* and not in sip.conf.

---
Dominique Dartois

-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Larry Alkoff
Envoyé : samedi 25 novembre 2006 04:01
À : Asterisk-users
Objet : [asterisk-users] Correct syntax to access a shell variable?

I would like to access my shell environment variable MYIP from within
sip.conf to put in externip.

I've tried some variations of syntax after reading The Future of Telephony
but it's not working yet.

Should it be
externip=${ENV{$MYIP}}
or some other syntax??

Larry

--
Larry Alkoff N2LA - Austin TX
Using Thunderbird on Linux
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [asterisk-users] VM mail notification and locale

2006-11-22 Thread Dominique Dartois
 LC_CTYPE or LC_TIME? 
LC_TIME, sorry for the typo.

I added 
export LC_TIME=fr_FR
(date; locale)  /tmp/log
in /etc/init.d/asterisk and restarted by service asterisk restart.

The content of /tmp/log :
linux2:/tmp # cat log
Wed Nov 22 12:43:09 CET 2006
LANG=POSIX
LC_CTYPE=POSIX
LC_NUMERIC=POSIX
LC_TIME=POSIX
LC_COLLATE=POSIX
LC_MONETARY=POSIX
LC_MESSAGES=POSIX
LC_PAPER=POSIX
LC_NAME=POSIX
LC_ADDRESS=POSIX
LC_TELEPHONE=POSIX
LC_MEASUREMENT=POSIX
LC_IDENTIFICATION=POSIX
LC_ALL=POSIX

Obviously the assigment has no effect but a NoOp(LC_TIME: ${ENV(LC_TIME)})
in extension.ael2 displays in the CLI :
-- Executing NoOp(SIP/103-0819f470, LC_TIME: fr_FR) in new stack
!


-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Tzafrir Cohen
Envoyé : mardi 21 novembre 2006 23:32
À : asterisk-users@lists.digium.com
Objet : Re: [asterisk-users] VM mail notification and locale

On Tue, Nov 21, 2006 at 10:54:31PM +0100, Dominique Dartois wrote:
 I set the ENV variable LC_TYPE=fr_FR

LC_CTYPE or LC_TIME?

 in the starting shell of Asterisk.
 A NoOp(${ENV(LC_TIME)}) in extension.ael2 shows the right value.
 In voicemail.conf, emaildateformat=%A prints the day of week in the 
 mail body but in English, not in French.

Could you add to that script, just before running asterisk,

  (date; locale)  /tmp/log

and provide here the generated /tmp/log from an asterisk startup so we can
see that the assignment had the right effect?

-- 
   Tzafrir Cohen   
icq#16849755jabber:[EMAIL PROTECTED]
+972-50-7952406   mailto:[EMAIL PROTECTED]   
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [asterisk-users] Asterisk Manager and Ruby

2006-11-03 Thread Dominique Dartois
I use it to learn ruby + Asterisk Manager.
A script is run every 10 seconds to create an HTML page to display the
codecs used by active channels. The script also makes rddtool generate a
graph.
This is not a production Asterisk. The script is runing for about a month.
(It's a quick and dirty written script).

Dominique.

-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de snacktime
Envoyé : jeudi 2 novembre 2006 08:38
À : Asterisk Users Mailing List - Non-Commercial Discussion
Objet : Re: [asterisk-users] Asterisk Manager and Ruby

On 11/1/06, Rajkumar S [EMAIL PROTECTED] wrote:
 Hi,

 Any one using Rubi asterisk manager interface 
 http://rubyforge.org/projects/rami/ ?

 How stable/usable it is?

It probably hasn't seen much use.  I created that back when I was just
learning ruby, so it could probably use some refactoring as well.
And If anything has changed in the asterisk manager protocol that would be
an issue also.  I created it against the beta version at the time, can't
remember what that was.

Chris
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] AEL2 and the variables

2006-10-29 Thread Dominique Dartois
Hi,
I am using Asterisk 1.2.12.1 + the AEL2 patch.
If I use a variable instead of the extension itself, an incoming call cannot
be connected.
${ID-FST1} = Dial(SIP/gs|15|r);   == NON ok
sip debug shows :
 Looking for 6674262730 in interne (domain 192.168.1.14)
 SIP/2.0 404 Not Found
Is it a bug or am I doing something wrong?

Thank you.

//===
// extensions.ael2
globals {
ID-FST1=6674262730;
GS=SIP/gs;
}

context entrant {
//6674262730 = Dial(SIP/gs,15,r);  == OK
${ID-FST1} = Dial(SIP/gs|15|r);   == NON ok
}

context interne {
includes {
entrant;
}
}

-
Dominique Dartois

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Voicemail and languages other than english doesn't seem to work well

2006-08-21 Thread Dominique Dartois
I want to hear french messages. I put language=fr in the [globals] section
of extensions.conf and in the [general] section of sip.conf.

If I call an unavailable number, the digits are read in english even if the
trace says french :

-- Executing VoiceMail(SIP/103-6441, [EMAIL PROTECTED]) in new stack
-- Playing 'vm-theperson' (language 'fr')  ; -- ok, french
-- Playing 'digits/1' (language 'fr')   ; non ok, english
-- Playing 'digits/0' (language 'fr')   ; non ok, english
-- Playing 'digits/4' (language 'fr')   ; non ok, english
-- Playing 'vm-isunavail' (language 'fr')  ; -- ok, french
-- Playing 'vm-intro' (language 'fr')  ; -- ok, french

The french messages are at the right place :
/var/lib/asterisk/sounds/fr/digits/*.gsm

By the way, the days and months are also in english. They are in the same
dir (digits).

Somebody has an idea?

Thank you.


---
Dominique Dartois

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [asterisk-users] Voicemail and languages other than englishdoesn't seem to work well

2006-08-21 Thread Dominique Dartois
Thank you very much Carlos, you are absolutely right. Now it works!

Thanks again. 


---
Dominique Dartois

-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Carlos Chavez
Envoyé : lundi 21 août 2006 23:09
À : Asterisk Users Mailing List - Non-Commercial Discussion
Objet : Re: [asterisk-users] Voicemail and languages other than
englishdoesn't seem to work well

On Mon, 2006-08-21 at 23:03 +0200, Dominique Dartois wrote:
 I want to hear french messages. I put language=fr in the [globals] 
 section of extensions.conf and in the [general] section of sip.conf.

 
 The french messages are at the right place :
 /var/lib/asterisk/sounds/fr/digits/*.gsm

The correct location for sounds is:

/var/lib/asterisk/sounds/fr/*.gsm - for general sounds
/var/lib/asterisk/sounds/digits/fr/*.gsm
/var/lib/asterisk/sounds/letters/fr/*.gsm
/var/lib/asterisk/sounds/phonetic/fr/*.gsm


--
Carlos Chavez Prats
Director de Tecnología
Telecomunicaciones Abiertas de México S.A. de C.V.
Tel: +52-55-91169161 Ext 2001

___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users