Is my dialplan correct ?<br><br>&lt;extension name=&quot;public_extensions&quot;&gt;<br>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^(sam)$&quot;&gt;<br>      &lt;action application=&quot;info&quot;/&gt;<br>
    &lt;action application=&quot;voicemail&quot; data=&quot;default $${domain} ${sip_to_host}&quot;/&gt;<br>      &lt;/condition&gt;<br>    &lt;/extension&gt;<br><br><br>I want to match three any alphanumeric 3 digit/letters <br>
<br>Also i wan to store the voicemail into the folders where the herachy would be      :::          Domain --&gt; Username --&gt; Voicemail file<br><br>Regards<br>Sam<br><br><br><br><br><div class="gmail_quote">On Fri, May 27, 2011 at 12:19 AM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Your regex is only going to match a single alphanumeric character. Are you trying to match an actual email address or what? Once you know what you hope to match it will be easier to know which regex to use. For the record a semi-proper email grabbing regex is like this:<div>

<br></div><div>^([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6})$</div><div><br></div><div>Matching emails is an interesting exercise. If you&#39;re not all into &quot;making it perfect&quot; and just want to capture &quot;foo@bar&quot; then do something like this:</div>

<div><br></div><div>^([^@]+@.*)$</div><div><br></div><div><font color="#888888">-MC</font><div><div></div><div class="h5"><br><div><br><div class="gmail_quote">On Thu, May 26, 2011 at 10:02 AM, Sam <span dir="ltr">&lt;<a href="mailto:u2nsam@gmail.com" target="_blank">u2nsam@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for that,<br><br>I want to use that when someone with username <a href="mailto:sam@gmail.com" target="_blank">sam@gmail.com</a> will be routed to a voicemail dialplan, with domain partitioning.<br>

<br>here still i am not able to achiveve it with domain.<br>
<br>&lt;domain name=&quot;<a href="http://gmail.com" target="_blank">gmail.com</a>&quot;&gt;<br>        <br>    &lt;extension name=&quot;public_extensions&quot;&gt;<br>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^(\w)$&quot;&gt;<br>


          &lt;action application=&quot;info&quot;/&gt;<br>        &lt;action application=&quot;voicemail&quot; data=&quot;default $${domain_name} $1&quot;/&gt;<br>      &lt;/condition&gt;<br>    &lt;/extension&gt;<br><br>


&lt;/domain&gt;<br><br>here above <a href="http://gmail.com" target="_blank">gmail.com</a> is examplary .<br><br>when there is an invite coming from different server to FS with <a href="mailto:sam@gmail.com" target="_blank">sam@gmail.com</a> and it is routed directly on voicemail context to route via public.xml<br>


<br>here first the call is not recognized to the context <a href="http://gmail.com" target="_blank">gmail.com</a> but when i remove that it goes to voicemail directly properly and stores the voicemail.<br><br>but the voicemail is not stored under domain name <a href="http://gmail.com" target="_blank">gmail.com</a> which should store it ideally under domain name as folder, which it is just storing it under user sam folder.<br>


<br>This is what I want to achieve.<br><br>Regards<br><font color="#888888">Sam</font><div><div></div><div><br><br><br><br><br><div class="gmail_quote">On Thu, May 26, 2011 at 3:56 PM, mazilo <span dir="ltr">&lt;<a href="mailto:Nabble@slickdeals.endjunk.com" target="_blank">Nabble@slickdeals.endjunk.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div><br>
samir wrote:<br>
&gt;<br>
&gt; Friends,<br>
&gt;<br>
&gt; How can i match words in expressions,<br>
&gt;<br>
&gt; is it by expression=&quot;^(\y\w+\y)$&quot;  or could be something else.<br>
&gt;<br>
&gt; Regards<br>
&gt; Sam<br>
</div></div>I understand ^(\w)$ will match any word, but not with \y. Perhaps, if you<br>
tell us exactly what you want to accomplish, someone will chime in for a<br>
better solution.<br>
<br>
-----<br>
FreeSWITCH hosted on a Seagate DockStar with OpenWRT and ONLY consumes 3 Watts of electricity.<br>
--<br>
View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/matching-word-tp6406170p6406420.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/matching-word-tp6406170p6406420.html</a><br>



Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br>
</div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div></div></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>