<font face="courier new,monospace"><font size="2">Hi Guys,<br><br>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 (</font></font><font face="courier new,monospace"><font size="2">sofia_presence.c:149) after that I've restarted sofia correctly.</font></font> After the background Lua tried to send message (<font face="courier new,monospace"><font size="2">mod_sofia.c:4629</font></font>), restarting sofia failed.<br>
<br>FreeSWITCH build from last GIT. <br>Should I open a ticket on JIRA?<br><br>BEST,<br>-- afshin <br><font face="courier new,monospace"><font size="2"><br><br>freeswitch@opxi2Server> <br>freeswitch@opxi2Server> 2011-05-14 09:34:25.471083 [ERR] sofia_presence.c:149 Can't find registered user noname2@fslab<br>
<br>freeswitch@opxi2Server> <br>freeswitch@opxi2Server> sofia status<br><br> Name Type Data State<br>=================================================================================================<br>
sipinterface_1 profile <a href="http://sip:mod_sofia@192.168.128.2:5060">sip:mod_sofia@192.168.128.2:5060</a> RUNNING (0)<br> voicemail_1 alias sipinterface_1 ALIASED<br>
sipinterface_3 profile <a href="http://sip:mod_sofia@192.168.128.2:5080">sip:mod_sofia@192.168.128.2:5080</a> RUNNING (0)<br> fslab alias sipinterface_1 ALIASED<br>
sipinterface_2 profile <a href="http://sip:mod_sofia@192.168.128.2:5070">sip:mod_sofia@192.168.128.2:5070</a> RUNNING (0)<br>=================================================================================================<br>
3 profiles 2 aliases<br><br>freeswitch@opxi2Server> sofia profile sipinterface_1 restart<br><br>Reload XML [Success]<br>restarting: sipinterface_1<br>2011-05-14 09:34:59.771082 [INFO] mod_enum.c:765 ENUM Reloaded<br>2011-05-14 09:34:59.771082 [INFO] switch_time.c:1020 Timezone reloaded 530 definitions<br>
freeswitch@opxi2Server> 2011-05-14 09:35:00.791085 [NOTICE] sofia.c:1677 Waiting for worker thread<br>2011-05-14 09:35:00.791085 [NOTICE] sofia.c:2274 Adding Alias [voicemail_1] for profile [sipinterface_1]<br>2011-05-14 09:35:00.791085 [NOTICE] sofia.c:2274 Adding Alias [fslab] for profile [sipinterface_1]<br>
2011-05-14 09:35:00.791085 [NOTICE] sofia.c:4018 Started Profile sipinterface_1 [sofia_reg_sipinterface_1]<br><br>freeswitch@opxi2Server> sofia status<br><br> Name Type Data State<br>
=================================================================================================<br> sipinterface_1 profile <a href="http://sip:mod_sofia@192.168.128.2:5060">sip:mod_sofia@192.168.128.2:5060</a> RUNNING (0)<br>
voicemail_1 alias sipinterface_1 ALIASED<br> sipinterface_3 profile <a href="http://sip:mod_sofia@192.168.128.2:5080">sip:mod_sofia@192.168.128.2:5080</a> RUNNING (0)<br>
fslab alias sipinterface_1 ALIASED<br> sipinterface_2 profile <a href="http://sip:mod_sofia@192.168.128.2:5070">sip:mod_sofia@192.168.128.2:5070</a> RUNNING (0)<br>
=================================================================================================<br>3 profiles 2 aliases<br><br>freeswitch@opxi2Server> 2011-05-14 09:35:39.171084 [ERR] mod_sofia.c:4629 Can't find registered user noname@fslab<br>
<br>freeswitch@opxi2Server> sofia status<br><br> Name Type Data State<br>=================================================================================================<br>
sipinterface_1 profile <a href="http://sip:mod_sofia@192.168.128.2:5060">sip:mod_sofia@192.168.128.2:5060</a> RUNNING (0)<br> voicemail_1 alias sipinterface_1 ALIASED<br>
sipinterface_3 profile <a href="http://sip:mod_sofia@192.168.128.2:5080">sip:mod_sofia@192.168.128.2:5080</a> RUNNING (0)<br> fslab alias sipinterface_1 ALIASED<br>
sipinterface_2 profile <a href="http://sip:mod_sofia@192.168.128.2:5070">sip:mod_sofia@192.168.128.2:5070</a> RUNNING (0)<br>=================================================================================================<br>
3 profiles 2 aliases<br><br>freeswitch@opxi2Server> sofia profile sipinterface_1 restart<br><br>Reload XML [Success]<br>restarting: sipinterface_1<br>2011-05-14 09:35:55.871085 [INFO] mod_enum.c:765 ENUM Reloaded<br>2011-05-14 09:35:55.871085 [INFO] switch_time.c:1020 Timezone reloaded 530 definitions<br>
freeswitch@opxi2Server> <br>freeswitch@opxi2Server> sofia status<br><br> Name Type Data State<br>=================================================================================================<br>
sipinterface_3 profile <a href="http://sip:mod_sofia@192.168.128.2:5080">sip:mod_sofia@192.168.128.2:5080</a> RUNNING (0)<br> sipinterface_2 profile <a href="http://sip:mod_sofia@192.168.128.2:5070">sip:mod_sofia@192.168.128.2:5070</a> RUNNING (0)<br>
=================================================================================================<br>2 profiles 0 aliases<br><br>freeswitch@opxi2Server> 2011-05-14 09:36:40.171083 [ERR] mod_sofia.c:4624 Can't find profile sipinterface_1<br>
</font></font>