VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
gidoramothra at gmail.com Guest
|
Posted: Fri Jul 09, 2021 8:38 am Post subject: [Freeswitch-users] Multiple Registrations inconsistency |
|
|
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@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com |
|
Back to top |
|
|
social at bohboh.info Guest
|
Posted: Fri Jul 09, 2021 9:40 am Post subject: [Freeswitch-users] Multiple Registrations inconsistency |
|
|
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ó:
Quote: | 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@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@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@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com |
|
Back to top |
|
|
martin at pattersong.c... Guest
|
Posted: Fri Jul 09, 2021 11:17 am Post subject: [Freeswitch-users] Multiple Registrations inconsistency |
|
|
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@bohboh.info> wrote:
Quote: |
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ó:
Quote: | 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@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@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@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@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@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com |
|
Back to top |
|
|
gidoramothra at gmail.com Guest
|
Posted: Fri Jul 09, 2021 3:41 pm Post subject: [Freeswitch-users] Multiple Registrations inconsistency |
|
|
ok, thx will try as soon as possible. Perhaps I understood the docs wrong, I thought I could only ring all registered phones when I set multiple registrations to contacts, I'll try and mail the result.
__
s.
On Fri, Jul 9, 2021, 6:15 PM Martin Paterson <martin@pattersong.co.uk (martin@pattersong.co.uk)> wrote:
Quote: | 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@bohboh.info (social@bohboh.info)> wrote:
Quote: |
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ó:
Quote: | 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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@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@freeswitch.com (sales@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com |
|
|
Back to top |
|
|
gidoramothra at gmail.com Guest
|
Posted: Tue Jul 13, 2021 9:30 am Post subject: [Freeswitch-users] Multiple Registrations inconsistency |
|
|
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:
Quote: | 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@bohboh.info> wrote:
Quote: |
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ó:
Quote: | 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@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@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@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@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@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@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@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|