[Freeswitch-users] Sending Message from background LUA script to an unregistered user prevents sofia profile to be restarted

Michael Collins msc at freeswitch.org
Tue May 17 00:06:53 MSD 2011


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.

-MC

On Sat, May 14, 2011 at 6:55 AM, afshin afzali <a.afzali2003 at gmail.com>wrote:

> 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 at opxi2Server>
> freeswitch at opxi2Server> 2011-05-14 09:34:25.471083 [ERR]
> sofia_presence.c:149 Can't find registered user noname2 at fslab
>
> freeswitch at opxi2Server>
> freeswitch at opxi2Server> sofia status
>
>                      Name
> Type                                       Data      State
>
> =================================================================================================
>            sipinterface_1       profile
> sip:mod_sofia at 192.168.128.2:5060      RUNNING (0)
>               voicemail_1         alias
> sipinterface_1      ALIASED
>            sipinterface_3       profile
> sip:mod_sofia at 192.168.128.2:5080      RUNNING (0)
>                     fslab         alias
> sipinterface_1      ALIASED
>            sipinterface_2       profile
> sip:mod_sofia at 192.168.128.2:5070      RUNNING (0)
>
> =================================================================================================
> 3 profiles 2 aliases
>
> freeswitch at 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 at 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 at opxi2Server> sofia status
>
>                      Name
> Type                                       Data      State
>
> =================================================================================================
>            sipinterface_1       profile
> sip:mod_sofia at 192.168.128.2:5060      RUNNING (0)
>               voicemail_1         alias
> sipinterface_1      ALIASED
>            sipinterface_3       profile
> sip:mod_sofia at 192.168.128.2:5080      RUNNING (0)
>                     fslab         alias
> sipinterface_1      ALIASED
>            sipinterface_2       profile
> sip:mod_sofia at 192.168.128.2:5070      RUNNING (0)
>
> =================================================================================================
> 3 profiles 2 aliases
>
> freeswitch at opxi2Server> 2011-05-14 09:35:39.171084 [ERR] mod_sofia.c:4629
> Can't find registered user noname at fslab
>
> freeswitch at opxi2Server> sofia status
>
>                      Name
> Type                                       Data      State
>
> =================================================================================================
>            sipinterface_1       profile
> sip:mod_sofia at 192.168.128.2:5060      RUNNING (0)
>               voicemail_1         alias
> sipinterface_1      ALIASED
>            sipinterface_3       profile
> sip:mod_sofia at 192.168.128.2:5080      RUNNING (0)
>                     fslab         alias
> sipinterface_1      ALIASED
>            sipinterface_2       profile
> sip:mod_sofia at 192.168.128.2:5070      RUNNING (0)
>
> =================================================================================================
> 3 profiles 2 aliases
>
> freeswitch at 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 at opxi2Server>
> freeswitch at opxi2Server> sofia status
>
>                      Name
> Type                                       Data      State
>
> =================================================================================================
>            sipinterface_3       profile
> sip:mod_sofia at 192.168.128.2:5080      RUNNING (0)
>            sipinterface_2       profile
> sip:mod_sofia at 192.168.128.2:5070      RUNNING (0)
>
> =================================================================================================
> 2 profiles 0 aliases
>
> freeswitch at 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 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110516/53ff6e39/attachment-0001.html 


More information about the FreeSWITCH-users mailing list