[Freeswitch-users] mod_voicemail and non_numeric id
Michael Collins
msc at freeswitch.org
Thu Oct 3 21:05:21 MSD 2013
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 at 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?
>
> http://jira.freeswitch.org/browse/FS-5841
>
>
> 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 at freeswitch.org>wrote:
>
>> I would start here:
>>
>>
>> https://wiki.freeswitch.org/wiki/XML_User_Directory_Guide#Alphanumeric_to_numeric_user_mapping
>>
>> 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 at 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 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
>>>
>>>
>>
>>
>> --
>> Michael S Collins
>> Twitter: @mercutioviz
>> http://www.FreeSWITCH.org
>> http://www.ClueCon.com
>> http://www.OSTAG.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
>>
>>
>
> _________________________________________________________________________
> 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
>
>
--
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20131003/02456eee/attachment.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list