is it possible to have FS forcilby unregiter a registered UA
is it possible to have FS forcilby unregiter a registered UA, for example, user/1001? to go one step further, how can i do the unregister upon receiving another register request? i checked event list of the event socket but cannot find any register event, can anyone shed any light on this?
is it possible to have FS forcilby unregiter a registered UA, for example, user/1001?
Yes, try the following: sofia profile default flush_inbound_reg user@domain Found this using: 'sofia help' in the freeswitch console. So you can find all specific commands using this help (it's not documented in http://wiki.freeswitch.org/wiki/Sofia-SIP).
to go one step further, how can i do the unregister upon receiving another register request?
I'm not sure what you're trying to achieve, but the wiki on sofia-sip gives some documentation.
i checked event list of the event socket but cannot find any register event, can anyone shed any light on this?
In my console (logging into it with fs_cli -n) it's shows register events and I believe this is the standard configuration: [WARNING] sofia_reg.c:1533 SIP auth challenge (REGISTER) on sofia profile 'internal' for [xxxx@xxxxxx] from ip XXXXXXXX. -- EL
to go one step further, how can i do the unregister upon receiving another register request?
From the same user? By default the user can only be registered at one location.
Bear in mind registrations are timeout based, and refreshed by sending further REGISTER packets periodically. That means if you have 2 phones using the same user details the 2nd will register and replace the 1st, then the 1st reregister and replace the 2nd, then the 2nd reregister and replace the 1st... You can't stop them reregistering. Probably wouldn't want to either, or you'll stop blocking legitimate reregistrations, such as when a phone moves location. Not something you can do much about. You shouldn't use the same account in multiple places. Or allow them to register from multiple locations at once ( http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files#multiple-registrat...) but bear in mind that'll affect anything that expects them in only one place. -Steve On 23 August 2013 11:52, Vincent Xia <gmangudai@gmail.com> wrote:
is it possible to have FS forcilby unregiter a registered UA, for example, user/1001?
to go one step further, how can i do the unregister upon receiving another register request? i checked event list of the event socket but cannot find any register event, can anyone shed any light on this?
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
yes from the same user, but i have 2 profiles, 1 for LAN and 1 for INTERNET, and i don't want 1 user to register both in LAN and INTERNET, so im considering to kill the previous registration once i got register request from the same user but a different profile. 2013/8/24 Steven Ayre <steveayre@gmail.com>
to go one step further, how can i do the unregister upon receiving another
register request?
From the same user? By default the user can only be registered at one location.
Bear in mind registrations are timeout based, and refreshed by sending further REGISTER packets periodically.
That means if you have 2 phones using the same user details the 2nd will register and replace the 1st, then the 1st reregister and replace the 2nd, then the 2nd reregister and replace the 1st...
You can't stop them reregistering. Probably wouldn't want to either, or you'll stop blocking legitimate reregistrations, such as when a phone moves location.
Not something you can do much about. You shouldn't use the same account in multiple places. Or allow them to register from multiple locations at once ( http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files#multiple-registrat...) but bear in mind that'll affect anything that expects them in only one place.
-Steve
On 23 August 2013 11:52, Vincent Xia <gmangudai@gmail.com> wrote:
is it possible to have FS forcilby unregiter a registered UA, for example, user/1001?
to go one step further, how can i do the unregister upon receiving another register request? i checked event list of the event socket but cannot find any register event, can anyone shed any light on this?
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
this is what i see from http://wiki.freeswitch.org/wiki/Sofia-SIP#Flushing_and_rebooting_registered_... sofia profile <profile_name> flush_inbound_reg [<call_id>|<user@host>] [reboot] but, what indeed is call_id??? to unregister the default user 1006, i tried sofia profile internal flush_inbound_reg 1006 sofia profile internal flush_inbound_reg 1006@xxx.xxx.xxx.xxx sofia profile internal flush_inbound_reg user/1006 but seems nothing is working, the reg is still there. sofia profile internal flush_inbound_reg will do but all endpoints get unreged. 2013/8/26 Vincent Xia <gmangudai@gmail.com>
yes from the same user, but i have 2 profiles, 1 for LAN and 1 for INTERNET, and i don't want 1 user to register both in LAN and INTERNET, so im considering to kill the previous registration once i got register request from the same user but a different profile.
2013/8/24 Steven Ayre <steveayre@gmail.com>
to go one step further, how can i do the unregister upon receiving
another register request?
From the same user? By default the user can only be registered at one location.
Bear in mind registrations are timeout based, and refreshed by sending further REGISTER packets periodically.
That means if you have 2 phones using the same user details the 2nd will register and replace the 1st, then the 1st reregister and replace the 2nd, then the 2nd reregister and replace the 1st...
You can't stop them reregistering. Probably wouldn't want to either, or you'll stop blocking legitimate reregistrations, such as when a phone moves location.
Not something you can do much about. You shouldn't use the same account in multiple places. Or allow them to register from multiple locations at once ( http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files#multiple-registrat...) but bear in mind that'll affect anything that expects them in only one place.
-Steve
On 23 August 2013 11:52, Vincent Xia <gmangudai@gmail.com> wrote:
is it possible to have FS forcilby unregiter a registered UA, for example, user/1001?
to go one step further, how can i do the unregister upon receiving another register request? i checked event list of the event socket but cannot find any register event, can anyone shed any light on this?
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
Like I said: sofia profile default flush_inbound_reg 1002@domain
but, what indeed is call_id??? to unregister the default user 1006....
See: sofia status profile internal reg and you will see registrations and the relevant fields. -- EL
yes from the same user, but i have 2 profiles, 1 for LAN and 1 for INTERNET, and i don't want 1 user to register both in LAN and INTERNET, so im considering to kill the previous registration once i got register request from the same user but a different profile.
I guess the 'internet' side would be for your mobile phone (while both are the same user)? I think it's better to implement a vpn. Or do you really want to allow the internetside (public profile) to make calls through your box? Anyway, there is a security warning for this; see section 'External' here: https://wiki.freeswitch.org/wiki/Getting_Started_Guide#What_SIP_Profiles_Do -- EL
it now works 1006@xxx.xxx.xxx.xxx, but i remember i've tried this option before, maybe i had typo out there, anyway many thanks! 2013/8/26 EL <fs.user@fordior.net>
yes from the same user, but i have 2 profiles, 1 for LAN and 1 for INTERNET, and i don't want 1 user to register both in LAN and INTERNET, so im considering to kill the previous registration once i got register request from the same user but a different profile.
I guess the 'internet' side would be for your mobile phone (while both are the same user)? I think it's better to implement a vpn. Or do you really want to allow the internetside (public profile) to make calls through your box?
Anyway, there is a security warning for this; see section 'External' here: https://wiki.freeswitch.org/wiki/Getting_Started_Guide#What_SIP_Profiles_Do
-- EL
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
i checked event list of the event socket but cannot find any register event, can anyone shed any light on this?
Did you see these? http://wiki.freeswitch.org/wiki/Sofia#Custom_Events On 23 August 2013 11:52, Vincent Xia <gmangudai@gmail.com> wrote:
is it possible to have FS forcilby unregiter a registered UA, for example, user/1001?
to go one step further, how can i do the unregister upon receiving another register request? i checked event list of the event socket but cannot find any register event, can anyone shed any light on this?
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
participants (3)
-
EL
-
Steven Ayre
-
Vincent Xia