[Freeswitch-users] stip variable
Miha
miha at softnet.si
Wed Mar 14 11:31:47 MSK 2012
On 03/14/2012 08:45 AM, Michael Collins wrote:
> Try this:
>
> <action application="set" data="my_number=${regex
> 18005551212 at tf.voipmich.com
> <mailto:18005551212 at tf.voipmich.com>|^(\d+)|%1}"/>
>
> Also, you may need 'inline="true"' depending on when you need the
> value that ends up in ${my_number}.
>
> -MC
>
> On Tue, Mar 13, 2012 at 12:39 AM, Miha Zoubek <miha at softnet.si
> <mailto:miha at softnet.si>> wrote:
>
> Hi @Brian,
>
> I was looking at Enum.conf but having problem with modifying it.
>
> <route service="E2U+SIP" regex="sip:(.*)"
> replace="sofia/internal/$1"/>
>
> I can remove sofia/internal/ and Enum will return just
> 18005551212 at tf.voipmich.com <mailto:18005551212 at tf.voipmich.com>.
>
> What is the best why to get rid of @tf.voipmich.com
> <http://tf.voipmich.com> as I need only number?
>
> I was trying to trim it like exp.
> {18005551212 at tf.voipmich.com:10:10
> <mailto:18005551212 at tf.voipmich.com:10:10>} but this is not
> working properly as length of number change.
>
> Thanks!
>
> Regards,
> Miha
>
>
>
>
>
>
> On 03/08/2012 04:10 PM, Brian West wrote:
>> or modify enum.conf to only give you the numer?
>>
>> /b
>>
>> On Mar 8, 2012, at 4:54 AM, Miha Zoubek wrote:
>>
>>> Hi,
>>>
>>> how can I strip thissofia/internal/18005551212 at tf.voipmich.com
>>> <mailto:sofia/internal/18005551212 at tf.voipmich.com>, so that I
>>> would have only number 18005551212 <tel:18005551212>?
>>>
>>> This return enum.
>>>
>>>
>>> Thanks!
>>> Miha
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org <mailto: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
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org <mailto:consulting at freeswitch.org>
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> <mailto: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
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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
@MC,
thanks! IT works:)
Regards,
Miha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120314/cfd541ec/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list