[asterisk-users] play with varibles

Danny Nicholas danny at debsinc.com
Wed May 20 13:04:10 CDT 2009


Perhaps this

Exten => s,1,Set(myVar=’123’)

exten => s,2,Set(cutVar=${CUT(myVar|\’|2)})

 

  _____  

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 11:21 AM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: 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/e0facab1/attachment.htm 


More information about the asterisk-users mailing list