Collected some more data. Printed user details in the logs, I can see the LUA is called and user directory is returned with all the information, but it still fails with error that domainname not found. Here you can see after pressing 142#, directory details and error message right after that. 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:52.788356 [DEBUG] switch_rtp.c:7193 RTP RECV DTMF 8:1280 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:52.788356 [INFO] switch_channel.c:515 RECV DTMF 8:1280 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:52.808360 [DEBUG] switch_ivr_play_say.c:250 Handle play-file:[voicemail/vm-press.wav] (en:en) 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:52.808360 [DEBUG] switch_ivr_play_say.c:1468 Codec Activated L16@8000hz 1 channels 20ms 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:52.808360 [ALERT] switch_ivr_play_say.c:1399 sofia/internal/111@companyname.domainname.com receive message [AUDIO_SYNC] 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:52.808360 [DEBUG] switch_ivr_play_say.c:1911 done playing file /usr/local/freeswitch/share/ freeswitch/sounds/en/us/callie/voicemail/vm-press.wav 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:52.808360 [DEBUG] switch_ivr.c:195 Codec Activated L16@8000hz 1 channels 20ms 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:52.828410 [ALERT] switch_core_io.c:1152 sofia/internal/111@companyname.domainname.com receive message [TRANSCODING_NECESSARY] 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:52.908390 [DEBUG] switch_ivr_play_say.c:70 No language specified - Using [en] 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:52.908390 [DEBUG] switch_ivr_play_say.c:250 Handle play-file:[voicemail/vm-forward_enter_ext.wav] (en:en) 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:52.908390 [DEBUG] switch_ivr_play_say.c:1468 Codec Activated L16@8000hz 1 channels 20ms 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:52.908390 [ALERT] switch_ivr_play_say.c:1399 sofia/internal/111@companyname.domainname.com receive message [AUDIO_SYNC] 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:54.388411 [DEBUG] switch_rtp.c:7193 RTP RECV DTMF 1:1280 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:54.388411 [INFO] switch_channel.c:515 RECV DTMF 1:1280 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:54.388411 [DEBUG] switch_ivr_play_say.c:1911 done playing file /usr/local/freeswitch/share/ freeswitch/sounds/en/us/callie/voicemail/vm-forward_enter_ext.wav 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:54.388411 [DEBUG] switch_ivr.c:195 Codec Activated L16@8000hz 1 channels 20ms 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:54.408431 [ALERT] switch_core_io.c:1152 sofia/internal/111@companyname.domainname.com receive message [TRANSCODING_NECESSARY] 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:54.488430 [DEBUG] switch_ivr.c:1325 Codec Activated L16@8000hz 1 channels 20ms 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:54.808429 [DEBUG] switch_rtp.c:7193 RTP RECV DTMF 4:1280 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:54.808429 [INFO] switch_channel.c:515 RECV DTMF 4:1280 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:55.188430 [DEBUG] switch_rtp.c:7193 RTP RECV DTMF 2:1280 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:55.188430 [INFO] switch_channel.c:515 RECV DTMF 2:1280 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:56.148379 [DEBUG] switch_rtp.c:7193 RTP RECV DTMF #:1280 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:56.148379 [INFO] switch_channel.c:515 RECV DTMF #:1280 2017-02-09 22:27:56.148379 [NOTICE] switch_cpp.cpp:1360 [xml_handler] Section: directory 2017-02-09 22:27:56.148379 [NOTICE] switch_cpp.cpp:1360 [xml_handler] Tag Name: domain 2017-02-09 22:27:56.148379 [NOTICE] switch_cpp.cpp:1360 [xml_handler] Key Name: name 2017-02-09 22:27:56.148379 [NOTICE] switch_cpp.cpp:1360 [xml_handler] Key Value: companyname.domainname.com 2017-02-09 22:27:56.148379 [DEBUG] freeswitch_lua.cpp:365 DBH handle 0x7f27a0075280 Connected. 2017-02-09 22:27:56.148379 [NOTICE] switch_cpp.cpp:1360 [xml_handler] XML_STRING: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="freeswitch/xml"> <section name="directory"> <domain name="companyname.domainname.com"> <user id="142" cidr="" number-alias=""> <params> <param name="password" value="changed"/> <param name="vm-enabled" value="true"/> <param name="vm-password" value="142"/> <param name="vm-email-all-messages" value="true"/> <param name="vm-attach-file" value="true"/> <param name="vm-keep-local-after-email" value="true"/> <param name="vm-mailto" value="email@gmail.com "/> <param name="MWI-Account" value=" 142@companyname.domainname.com"/> <param name="timezone" value="America/Los_Angeles"/> <param name="dial-string" value="{sip_invite_domain=companyname.domainname.com,presence_id= 142@companyname.domainname.com}${sofia_contact(142@companyname. domainname.com)}"/> </params> <variables> <variable name="domain_uuid" value=""/> <variable name="domain_name" value=" companyname.domainname.com"/> <variable name="caller_id_name" value=""/> <variable name="caller_id_number" value=""/> <variable name="call_group" value="sales"/> <variable name="accountcode" value="5555555"/> <variable name="user_context" value=""/> <variable name="effective_caller_id_name" value="John"/> <variable name="outbound_caller_id_name" value="Company"/> <variable name="outbound_caller_id_name" value="ABC"/> <variable name="outbound_caller_id_number" value="19494710102"/> <variable name="directory_full_name" value="John"/> <variable name="recording" value="off"/> <variable name="callscreening" value="off"/> <variable name="limit_max" value="2"/> <variable name="record_stereo" value="true"/> <variable name="transfer_fallback_extension" value="operator"/> <variable name="export_vars" value="domain_name"/> </variables> </user> </domain> </section> </document> 2017-02-09 22:27:56.148379 [NOTICE] switch_cpp.cpp:1360 [xml_handler] Section: directory 2017-02-09 22:27:56.148379 [NOTICE] switch_cpp.cpp:1360 [xml_handler] Tag Name: domain 2017-02-09 22:27:56.148379 [NOTICE] switch_cpp.cpp:1360 [xml_handler] Key Name: name 2017-02-09 22:27:56.148379 [NOTICE] switch_cpp.cpp:1360 [xml_handler] Key Value: companyname.domainname.com 2017-02-09 22:27:56.148379 [DEBUG] freeswitch_lua.cpp:382 DBH handle 0x7f27a0075280 released. 2017-02-09 22:27:56.148379 [WARNING] mod_voicemail.c:3268 Cannot locate domain companyname.domainname.com 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:56.148379 [ERR] mod_voicemail.c:1768 Failed to forward message to 142 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:56.168414 [DEBUG] switch_ivr_play_say.c:250 Handle play-file:[voicemail/vm-that_was_an_invalid_ext.wav] (en:en) 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:56.168414 [DEBUG] switch_ivr_play_say.c:1468 Codec Activated L16@8000hz 1 channels 20ms 7a0ea415-8e00-472f-b0f0-a667608ffa0d 2017-02-09 22:27:56.168414 [ALERT] switch_ivr_play_say.c:1399 sofia/internal/111@companyname.domainname.com.com receive message [AUDIO_SYNC] On Thu, Feb 9, 2017 at 4:15 PM, Jai Rangi <jprangi@gmail.com> wrote:
Thank for you your effort to help me out,
In Voicmail IVR there are options, all options works fine, Example press 4 to send Voicemail to Email. 7 to Delete the recording, 2 to save the recording Press 8 to forward the message to another user.
Everything works, Press 4 and VM get forwarded to email. Only things that does not work is 8, forward to another user. Its the Voicemail Application, that forgets the domainname after pressing 8.
Here is my Dial plan for Voicemail.
<extension name="Voicemail_check"> <condition field="caller_id_number" expression="^(${destination_ number})$"> <action application="set" data="voicemail_domain=${ domain_name}"/> <action application="answer"/> <action application="voicemail" data="check default ${domain_name} $1"/> </condition> </extension>
Here is Directory
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="freeswitch/xml"> <section name="directory"> <domain name="domain.companyname.com"> <user id="142" cidr="" number-alias=""> <params> <param name="password" value="notopentopublic"/> <param name="vm-enabled" value="true"/> <param name="vm-password" value="142"/> <param name="vm-email-all-messages" value="true"/> <param name="vm-attach-file" value="true"/> <param name="vm-keep-local-after-email" value="true"/> <param name="vm-mailto" value="email@gmail.com "/> <param name="MWI-Account" value=" 142@domain.companyname.com"/> <param name="timezone" value="America/Los_Angeles"/> <param name="dial-string" value="{sip_invite_domain=domain.companyname.com,presence_id= 142@domain.companyname.com}${sofia_contact(142@domain.companyname.com)}"/> </params> <variables> <variable name="domain_uuid" value=""/> <variable name="domain_name" value=" domain.companyname.com"/> <variable name="caller_id_name" value=""/> <variable name="caller_id_number" value=""/> <variable name="call_group" value="sales"/> <variable name="accountcode" value="55555555"/> <variable name="user_context" value=""/> <variable name="effective_caller_id_name" value="Jai"/> <variable name="outbound_caller_id_name" value="somename"/> <variable name="outbound_caller_id_name" value="somename"/> <variable name="outbound_caller_id_number" value="000000000"/> <variable name="directory_full_name" value="Name"/> <variable name="recording" value="off"/> <variable name="callscreening" value="off"/> <variable name="limit_max" value="2"/> <variable name="record_stereo" value="true"/> <variable name="transfer_fallback_extension" value="operator"/> <variable name="export_vars" value="domain_name"/> </variables> </user> </domain> </section> </document>
In Voicmail IVR there are options, all options works fine, Example press 4 to send Voicemail to Email. 7 to Delete the recording Press 8 to forward the message to another user.
Everything works, Press 4 and VM get forwarded to email. Only things that does not work is 8, forward to another user. Its the Voicemail Application, that forgets the domainname after pressing 8.
What else I can collect and share to get any help/suggestion.
Best,
On Thu, Feb 9, 2017 at 8:58 AM, Michael Jerris <mike@jerris.com> wrote:
Then your lua script is not returning what it should for that domain lookup. If you add some debug to your lua script you should see the lookup request.
On Feb 8, 2017, at 5:32 PM, Jai Rangi <jprangi@gmail.com> wrote:
Problem is that I am using lua xml-hanlder-binding for directory and all the user credentials are generated by lua script dynamically. If I add the domain manually in directory/default.xml, it still does not find the user.
On Wed, Feb 8, 2017 at 12:57 PM, Michael Jerris <mike@jerris.com> wrote:
your directory has no domain that matches that one. More info on how to configure the directory is here:
https://freeswitch.org/confluence/display/FREESWITCH/Directory
On Feb 8, 2017, at 3:37 PM, Jai Rangi <jprangi@gmail.com> wrote:
Surprising, no one else is having this issue and no fix? Not sure if this is a bug, I can open a bug report if some one can confirm.
On Wed, Feb 1, 2017 at 8:46 AM, Jai Rangi <jprangi@gmail.com> wrote:
May be there is a setting, where FS will know all the domains it should listen to. But everything else works great except VM forwarding.
On Wed, Feb 1, 2017 at 8:41 AM, Jai Rangi <jprangi@didforsale.com> wrote:
Yes I can see that, but why it wont recognize the domain. I can leave voicemail for this this.
*Jai Rangi* Cebod Technologies LLC dba DIDforSale/Cebod Telecom O 949-471-0102 | C 949-419-7634 <1-949-419-7634> | F 949-269-0449 / 949-232-1410 | jprangi@didforsale.com www.cebod.com | www.didforsale.com |3200 Bristol St Suite 615, Costa Mesa, CA 92626 |
On Wed, Feb 1, 2017 at 7:39 AM, Michael Jerris <mike@jerris.com> wrote:
2017-01-31 21:23:37.116117 [WARNING] mod_voicemail.c:3268 Cannot locate domain company.phonesystemdomain.com
that's the issue
On Tue, Jan 31, 2017 at 11:42 PM Jai Rangi <jprangi@gmail.com> wrote:
> We are using Freeswitch for a multidomain setup and experiencing > problem in forwarding voice mail message to another extension in the same > domain. > > This is what I see in the logs > > 2017-01-31 21:23:37.116117 [WARNING] mod_voicemail.c:3268 Cannot > locate domain company.phonesystemdomain.com > <http://j2h.la.cebodtelecom.com/> > 30a4bcaa-cd5a-4be8-88bf-94e888f98a16 2017-01-31 21:23:37.116117 > [ERR] mod_voicemail.c:1768 Failed to forward message to 130 > 30a4bcaa-cd5a-4be8-88bf-94e888f98a16 2017-01-31 21:23:37.116117 > [DEBUG] switch_ivr_play_say.c:70 No language specified - Using [en] > 30a4bcaa-cd5a-4be8-88bf-94e888f98a16 2017-01-31 21:23:37.136121 > [DEBUG] switch_ivr_play_say.c:250 Handle play-file:[voicemail/vm-that_was_an_invalid_ext.wav] > (en:en) > > Anyone else experiencing this, any fix? Not sure if this is a bug. I > have experienced this in 1.4, 1.6.6, 1.6.9 and latest stable 1.6.13. > > Thank you, > Jai > > ____________________________________________________________ > _____________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.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/free > switch-users > http://www.freeswitch.org
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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/free switch-users http://www.freeswitch.org
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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