[Freeswitch-users] question how to cut a string from a variable in fs?

Steven Ayre steveayre at gmail.com
Fri May 13 23:05:51 MSD 2011


Or:
<action application="set" data="after=${regex(${before}|^.*?@|%1"/>

before = abc at def.com
gives:
after = abc

-Steve

On 13 May 2011 19:57, Madovsky <infos at madovsky.org> wrote:
>
> if you do
> expresion="^(\whatever)@(whatever)$"
> $1 will be the id
> @ will be ignored
> $2 the ip/domain/hostname
>
> hope this helps
>
> ----- Original Message -----
> From: "Thomas Hoellriegel" <admin at blindi.net>
> To: "FreeSWITCH Users Help" <freeswitch-users at lists.freeswitch.org>
> Sent: Friday, May 13, 2011 2:50 PM
> Subject: Re: [Freeswitch-users] question how to cut a string from a variable
> in fs?
>
>
> Hi Michael,
> Sorry, i don.t find a command to cut digits for example:
> I like to remove a sipheader in a variable. cut all strings afer the @
> character, und remove the @ character.
> I search on:
> http://wiki.freeswitch.org/wiki/Regular_Expression
> A description can.t be fine.
> Do you have a string please? thank you
>
>
> ---------------
> Du kannst mich jederzeit kostenlos per Festnetz erreichen unter:
> http://www.blindi.net/callback
> homepage: http://www.blindi.net
> blinde-misc mailingliste für blinde. anmeldung unter:
> http://www.blindi.net/mailman/listinfo/blinde-misc
>
>
>
> --------------------------------------------------------------------------------
>
>
> > _______________________________________________
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> >
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org



More information about the FreeSWITCH-users mailing list