Hi, how can I strip this sofia/internal/18005551212@tf.voipmich.com, so that I would have only number 18005551212? This return enum. Thanks! Miha
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@tf.voipmich.com. What is the best why to get rid of @tf.voipmich.com as I need only number? I was trying to trim it like exp. {18005551212@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@tf.voipmich.com, so that I would have only number 18005551212?
This return enum.
Thanks! Miha
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Try this: <action application="set" data="my_number=${regex 18005551212@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@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@tf.voipmich.com.
What is the best why to get rid of @tf.voipmich.com as I need only number?
I was trying to trim it like exp. {18005551212@tf.voipmich.com:10:10} but this is not working properly as length of number change.
Thanks!
Regards, Miha
<sofia/internal/18005551212@tf.voipmich.com>
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 this sofia/internal/18005551212@tf.voipmich.com, so that I would have only number 18005551212?
This return enum.
Thanks! Miha
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On 03/14/2012 08:45 AM, Michael Collins wrote:
Try this:
<action application="set" data="my_number=${regex 18005551212@tf.voipmich.com <mailto:18005551212@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@softnet.si <mailto:miha@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@tf.voipmich.com <mailto:18005551212@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@tf.voipmich.com:10:10 <mailto:18005551212@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@tf.voipmich.com <mailto:sofia/internal/18005551212@tf.voipmich.com>, so that I would have only number 18005551212 <tel:18005551212>?
This return enum.
Thanks! Miha
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@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@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@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
On 8 March 2012 11:54, Miha Zoubek <miha@softnet.si> wrote:
how can I strip this sofia/internal/18005551212@tf.voipmich.com, so that I would have only number 18005551212?
See http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_regex - also take a look at the example i've given you in your other thread yesterday. Regards Christian
On 03/08/2012 04:17 PM, Christian Benke wrote:
On 8 March 2012 11:54, Miha Zoubek<miha@softnet.si> wrote:
how can I strip this sofia/internal/18005551212@tf.voipmich.com, so that I would have only number 18005551212? See http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_regex - also take a look at the example i've given you in your other thread yesterday.
Regards Christian
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thank you Christian. Regards, Miha
participants (5)
-
Brian West
-
Christian Benke
-
Michael Collins
-
Miha
-
Miha Zoubek