[Freeswitch-users] Multiple Registrations inconsistency

Stefan gidoramothra at gmail.com
Tue Jul 13 09:19:12 UTC 2021


Ok, thx for the hints. I tried your suggestion and your comments on the
sql make sense to me. Unfortunately it still behaves somehow strange. Now I've
set (in my internal profile):

<param name="multiple-registrations" value="true"/>

And I tried to set:

<param name="inbound-use-callid-as-uuid" value="true"/>

The last setting doesn't  seem to have an effect at all, although I can
watch registrations through the event-socket and registrations from the
same user get same Core-UUIDs, but different call-ids.

But now it works at least: Having the same user registered multiple
times, I can ring all his phones. When one of his phones deregisteres,
all his regs seem to be gone: If I call 'show registrations' on fs_cli,
none of his registrations is shown. But I can still call him on the
remaining phone. Also, when the remaining phone deregisteres, the
eventsocket emits a correspondending deregister event.

Not sure what's going on here, but now it works for my purpose.

__
s.



On Fri, Jul 09, 2021 at 04:54:48PM +0100, Martin Paterson wrote:
> I think that will do it.
> 
> Several places FS code do something similar to:
> 
>             if (multi_reg_contact) {
>                 sql =
>                     switch_mprintf("delete from sip_registrations
> where sip_user='%q' and sip_host='%q' and contact='%q'", to_user,
> reg_host, contact_str);
>             } else {
>                 sql = switch_mprintf("delete from sip_registrations
> where call_id='%q'", call_id);
>             }
> 
> This bit is from where it handles receiving an unregister (a register
> with expires of zero). If your several user agents have the same
> contact, then they will all be unregistered at the same time.
> 
> The documentation
> (https://freeswitch.org/confluence/display/FREESWITCH/Sofia+Configuration+Files)
> says:
> Valid values for this parameter are "contact", "true", "false".
> value="true" is the most common use. Setting this value to "contact"
> will remove the old registration based on sip_user, sip_host and
> contact field as opposed to the call_id.
> 
> Martin.
> 
> Martin Paterson, Pattersong Music
> Reduced orchestrations of G&S
> 
> On Fri, 9 Jul 2021 at 15:08, Social Boh <social at bohboh.info> wrote:
> >
> > Hello
> >
> > can you change:
> >
> > <param name="multiple-registrations" value="contact"/>
> >
> > with
> >
> > <param name="multiple-registrations" value="true"/>
> >
> > make the same tests and then report...
> >
> > Regards
> >
> > ---
> > I'm SoCIaL, MayBe
> >
> > El 9/07/2021 a las 5:36 a. m., Stefan escribió:
> > > Hello, I've a problem with multiple registrations on freeswitch 1.10.6.
> > > My internal profile contains the following:
> > >
> > > <param name="multiple-registrations" value="contact"/>
> > >
> > > And in the dialplan I use the bridge like this:
> > >
> > > <action application="bridge" data="${sofia_contact(${dialed_extension})}"/>
> > >
> > > It works as expected, all registered endpoints ring when i call an
> > > extension which is registered multiple times. The problem starts when
> > > one of the registered endpoints unregisteres. Then freeswitch
> > > derigisteres all, and none is reachable anymore.
> > >
> > > To be clear: a client with extension Number 2000 is registered 2 times,
> > > one Registration is through Linphone, the other one through a polycom
> > > phone. All is fine: When I call the extension 2000 both, Linphone and
> > > polycom ring. But now the user chooses to close the Linphone, and
> > > Linphone deregisters. The effect of this on freeswitch is, that the user
> > > is completely deregistered, not just the Linphone Registration, but also
> > > the one from polycom. As a result, I can't reach him anymore.
> > >
> > > Even more astonishing: When the user now turns on his Linphone again, it
> > > will register, and on calling the extension 2000 again both, Linphone
> > > and polycom will ring.
> > >
> > > I tried to set:
> > >
> > > <param name="inbound-use-callid-as-uuid" value="true"/>
> > >
> > > in my internal profile. But it did not change the described behaviour.
> > >
> > > So my question is: how can I make freeswitch deregister multiple
> > > registrations of the same user individualy?
> > >
> > > __
> > > s.
> > >
> > >
> > > _________________________________________________________________________
> > >
> > > The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> > > Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
> > > Build your next product on our scalable cloud platform.
> > >
> > > Join our online community to chat in real time https://signalwire.community
> > >
> > > Professional FreeSWITCH Services
> > > sales at freeswitch.com
> > > https://freeswitch.com
> > >
> > > Official FreeSWITCH Sites
> > > https://freeswitch.com/oss
> > > https://freeswitch.org/confluence
> > > https://cluecon.com
> > >
> > > 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
> > > https://freeswitch.com
> >
> > _________________________________________________________________________
> >
> > The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> > Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
> > Build your next product on our scalable cloud platform.
> >
> > Join our online community to chat in real time https://signalwire.community
> >
> > Professional FreeSWITCH Services
> > sales at freeswitch.com
> > https://freeswitch.com
> >
> > Official FreeSWITCH Sites
> > https://freeswitch.com/oss
> > https://freeswitch.org/confluence
> > https://cluecon.com
> >
> > 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
> > https://freeswitch.com
> 
> _________________________________________________________________________
> 
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
> Build your next product on our scalable cloud platform.
> 
> Join our online community to chat in real time https://signalwire.community
> 
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
> 
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
> 
> 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
> https://freeswitch.com



More information about the FreeSWITCH-users mailing list