[Freeswitch-users] using non numeric user id - mailbox

Ján Hrnko janhrnko at gmail.com
Mon Feb 20 21:06:48 MSK 2012


Thank you for your responses. Actually I was missing parenthesis () in
regular expression, so the variable $1 was empty.

The correction was made here:

<extension name="vmenu">
    <condition field="destination_number" expression="^vm-.*$">
    <action application="voicemail" data="check default ${domain_name} $1"/>
    </condition>
    </extension>

To this:

<extension name="vmenu">
    <condition field="destination_number" expression="^vm-(.*)$">
    <action application="voicemail" data="check default ${domain_name} $1"/>
    </condition>
    </extension>

It works with mailbox param as well. Thank you very much!



2012/2/20 Brian West <brian at freeswitch.org>

> <user id="jano" number-alias="502">
>
> /b
>
> On Feb 17, 2012, at 5:22 AM, Ján Hrnko wrote:
>
> <user id="jano" mailbox="502">
>
>
> --
> Brian West
> FreeSWITCH Solutions, LLC
> Phone: +1 (918) 420-9266
> Fax:   +1 (918) 420-9267
> brian at freeswitch.org
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120220/1a4fbbda/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list