Thanks for that,
I want to use that when someone with username sam@gmail.com will be routed to a voicemail dialplan, with domain partitioning.
here still i am not able to achiveve it with domain.
<domain name="gmail.com">
<extension name="public_extensions">
<condition field="destination_number" expression="^(\w)$">
<action application="info"/>
<action application="voicemail" data="default $${domain_name} $1"/>
</condition>
</extension>
</domain>
here above gmail.com is examplary .
when there is an invite coming from different server to FS with sam@gmail.com and it is routed directly on voicemail context to route via public.xml
here first the call is not recognized to the context gmail.com but when i remove that it goes to voicemail directly properly and stores the voicemail.
but the voicemail is not stored under domain name gmail.com which should store it ideally under domain name as folder, which it is just storing it under user sam folder.
This is what I want to achieve.
Regards
Sam
I understand ^(\w)$ will match any word, but not with \y. Perhaps, if you
samir wrote:
>
> Friends,
>
> How can i match words in expressions,
>
> is it by expression="^(\y\w+\y)$" or could be something else.
>
> Regards
> Sam
tell us exactly what you want to accomplish, someone will chime in for a
better solution.
-----
FreeSWITCH hosted on a Seagate DockStar with OpenWRT and ONLY consumes 3 Watts of electricity.
--
View this message in context: http://freeswitch-users.2379917.n2.nabble.com/matching-word-tp6406170p6406420.html
Sent from the freeswitch-users mailing list archive at Nabble.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