That's a bit outside my area of expertise, but I would suggest that you grep around and see if number-alias is used anywhere else in the code base. If it is then maybe you could emulate what it's doing and work up a patch for the devs to review.

-MC


On Thu, Oct 3, 2013 at 9:30 AM, Lloyd Aloysius <lloyd.aloysius@gmail.com> wrote:
Hi MC

Thank you. I try that no luck.Then I look into the code, the code is not checking the number-alias. Can we add a check if id lookup failed check the number-alias?



1726 status = switch_xml_locate_user_merged("id", vm_cc, cbt->domain, NULL, &x_user, my_params); 
  1727 switch_event_destroy(&my_params); 
  1728
  1729 if (status != SWITCH_STATUS_SUCCESS) { 
  1730 switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, 
  1731 "Failed to forward message - Cannot locate user %s@%s\n", vm_cc, cbt->domain); 
9203183 
1723 1732 TRY_CODE(switch_ivr_phrase_macro(session, VM_INVALID_EXTENSION_MACRO, vm_cc, NULL, NULL));


Thank you
Lloyd


On Thu, Oct 3, 2013 at 12:23 PM, Michael Collins <msc@freeswitch.org> wrote:
Give that a whirl and let us know if you have success.
-MC



On Thu, Oct 3, 2013 at 7:53 AM, Lloyd Aloysius <lloyd.aloysius@gmail.com> wrote:
Hi All

I use non numeric id at user configuration(<user id="mike" >). All my dial plans in lua.

Problem : when a user logged into his voicemail and try forward a message to another user's voicemail, mod_voicemail do not understand the extension number and always say invalid.

Is there any way map extension number to user id , so that mod_voicemail can get the non_numeric id and forward the voicemail?


Thanks 

Lloyd

_________________________________________________________________________
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




--
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.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



_________________________________________________________________________
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




--
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org