this is what i see from http://wiki.freeswitch.org/wiki/Sofia-SIP#Flushing_and_rebooting_registered_endpoints
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-registrations) 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