[asterisk-users] play with varibles

BERGANZ François francois at acropolistelecom.net
Wed May 20 11:33:52 CDT 2009


I found !

 

exten => _X.,n,Set(var2=${CUT(var,',2)})

 

 

Cordialement,

BERGANZ François

 

P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.

 

De : asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] De la part de BERGANZ
François
Envoyé : mercredi 20 mai 2009 18:21
À : 'Asterisk Users Mailing List - Non-Commercial Discussion'
Objet : Re: [asterisk-users] play with varibles

 

Don’t work

I need that it suppr the  ‘

 

 

Thank you

 

 

Cordialement,

BERGANZ François

 

De : asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] De la part de Danny
Nicholas
Envoyé : mercredi 20 mai 2009 17:53
À : 'Asterisk Users Mailing List - Non-Commercial Discussion'
Objet : Re: [asterisk-users] play with varibles

 

Cut should do this for you

Exten => x,x,Set(var2=cut(var1,’\’’)

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of BERGANZ
François
Sent: Wednesday, May 20, 2009 10:33 AM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] play with varibles

 

Hello,

 

I have a var like ‘blabla’ with the  ‘

I need to suppr the ‘

Is it possible with the ${var:x:y}  ?

 

Thank you

 

 

Cordialement,

BERGANZ François

P Pensez à l'Environnement, n'imprimez ce mail que si nécessaire.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090520/54e71923/attachment.htm 


More information about the asterisk-users mailing list