Definitely open a Jira and include all this information. Also, include a copy of your Lua script or at least a simple Lua script that can be used for testing this behavior.
Hi Guys,
I have a background Lua script which send messages to specified users.I have noticed that if the script sends a message to unregistered user then I'll not be able to restart sofia profile properly. To clarify the issue, I sent a message to unregistered user by a softphone instead of background script.In this case, the sofia profile can be restarted properly! In the following logs you see first I've tried to send message by a softphone (sofia_presence.c:149) after that I've restarted sofia correctly. After the background Lua tried to send message (mod_sofia.c:4629), restarting sofia failed.
FreeSWITCH build from last GIT.
Should I open a ticket on JIRA?
BEST,
-- afshin
freeswitch@opxi2Server>
freeswitch@opxi2Server> 2011-05-14 09:34:25.471083 [ERR] sofia_presence.c:149 Can't find registered user noname2@fslab
freeswitch@opxi2Server>
freeswitch@opxi2Server> sofia status
Name Type Data State
=================================================================================================
sipinterface_1 profile sip:mod_sofia@192.168.128.2:5060 RUNNING (0)
voicemail_1 alias sipinterface_1 ALIASED
sipinterface_3 profile sip:mod_sofia@192.168.128.2:5080 RUNNING (0)
fslab alias sipinterface_1 ALIASED
sipinterface_2 profile sip:mod_sofia@192.168.128.2:5070 RUNNING (0)
=================================================================================================
3 profiles 2 aliases
freeswitch@opxi2Server> sofia profile sipinterface_1 restart
Reload XML [Success]
restarting: sipinterface_1
2011-05-14 09:34:59.771082 [INFO] mod_enum.c:765 ENUM Reloaded
2011-05-14 09:34:59.771082 [INFO] switch_time.c:1020 Timezone reloaded 530 definitions
freeswitch@opxi2Server> 2011-05-14 09:35:00.791085 [NOTICE] sofia.c:1677 Waiting for worker thread
2011-05-14 09:35:00.791085 [NOTICE] sofia.c:2274 Adding Alias [voicemail_1] for profile [sipinterface_1]
2011-05-14 09:35:00.791085 [NOTICE] sofia.c:2274 Adding Alias [fslab] for profile [sipinterface_1]
2011-05-14 09:35:00.791085 [NOTICE] sofia.c:4018 Started Profile sipinterface_1 [sofia_reg_sipinterface_1]
freeswitch@opxi2Server> sofia status
Name Type Data State
=================================================================================================
sipinterface_1 profile sip:mod_sofia@192.168.128.2:5060 RUNNING (0)
voicemail_1 alias sipinterface_1 ALIASED
sipinterface_3 profile sip:mod_sofia@192.168.128.2:5080 RUNNING (0)
fslab alias sipinterface_1 ALIASED
sipinterface_2 profile sip:mod_sofia@192.168.128.2:5070 RUNNING (0)
=================================================================================================
3 profiles 2 aliases
freeswitch@opxi2Server> 2011-05-14 09:35:39.171084 [ERR] mod_sofia.c:4629 Can't find registered user noname@fslab
freeswitch@opxi2Server> sofia status
Name Type Data State
=================================================================================================
sipinterface_1 profile sip:mod_sofia@192.168.128.2:5060 RUNNING (0)
voicemail_1 alias sipinterface_1 ALIASED
sipinterface_3 profile sip:mod_sofia@192.168.128.2:5080 RUNNING (0)
fslab alias sipinterface_1 ALIASED
sipinterface_2 profile sip:mod_sofia@192.168.128.2:5070 RUNNING (0)
=================================================================================================
3 profiles 2 aliases
freeswitch@opxi2Server> sofia profile sipinterface_1 restart
Reload XML [Success]
restarting: sipinterface_1
2011-05-14 09:35:55.871085 [INFO] mod_enum.c:765 ENUM Reloaded
2011-05-14 09:35:55.871085 [INFO] switch_time.c:1020 Timezone reloaded 530 definitions
freeswitch@opxi2Server>
freeswitch@opxi2Server> sofia status
Name Type Data State
=================================================================================================
sipinterface_3 profile sip:mod_sofia@192.168.128.2:5080 RUNNING (0)
sipinterface_2 profile sip:mod_sofia@192.168.128.2:5070 RUNNING (0)
=================================================================================================
2 profiles 0 aliases
freeswitch@opxi2Server> 2011-05-14 09:36:40.171083 [ERR] mod_sofia.c:4624 Can't find profile sipinterface_1
_______________________________________________
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