Re: [Freeswitch-users] OpenSIPs + Freeswitch + Registrations
Aleks, Of course I share registrations on DB, but it seems unuseful. I mean a call for a phone registered on an FS box, must be always sent to that box. I don't have NAT issues, since all FS boxes and phones are on the same LAN. What I'd like to do is "sharing the knowledge" between boxes, so that if the Invite goes to a box where the called phone is not registered, call is forwarded to the phone anyway, because there's a shared registrations DB! Many experts on IRC guided me to use paths or scripts to redirect the call to the right box, based on entries on table registrations. But the question is: why freeswitch doesn't do it automatically? Is there any configuration trick to do it? Thank you ------------------------------ Message: 3 Date: Mon, 9 Sep 2013 16:34:43 +0100 (BST) From: "Chris B. Ware" <chrisbware@yahoo.it> Subject: [Freeswitch-users] OpenSIPs + Freeswitch + Registrations To: "freeswitch-users@lists.freeswitch.org" <freeswitch-users@lists.freeswitch.org> Message-ID: <1378740883.57558.YahooMailNeo@web171802.mail.ir2.yahoo.com> Content-Type: text/plain; charset="iso-8859-1" Hi, I'm a bit confused (as usual) on call flow between FS boxes behind an OpenSIPs balancer. All servers are on the same LAN, so the phones. Registrations are stored on common DB. PhoneA sends a register and Opensips balancer forward it to FS1. PhoneB sends a register and Opensips balancer forward it to FS2. PhoneA send an INVITE for PhoneB and OpenSIPs forward it to FS1. FS1 answers "Originate Failed. ?Cause: USER_NOT_REGISTERED" An IRC friend says to use path (RFC 3327).? Is there a config solution or should I follow the his advice? Thanks, Chris B. Message: 4 Date: Mon, 9 Sep 2013 18:56:05 +0300 From: Aleksandr Chusov <chusov.alexsandr@gmail.com> Subject: Re: [Freeswitch-users] OpenSIPs + Freeswitch + Registrations To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Message-ID: <CABn9qfqw3e-FDPp2_gKuDZQ-8868B-fWf4-0pJQiLLrAmXC05Q@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 2013/9/9 Chris B. Ware <chrisbware@yahoo.it>:
USER_NOT_REGISTERED
Hello, You need store the mod_sofia data in a shared database. Good Opensips configuration example: https://wiki.freeswitch.org/wiki/OpenSIPS_configuration_for_2_or_more_FreeSW...
In this moment I have two phones registered on FS2. "sofia status profile internal reg" works only on FS2 "show registrations" works on both FS boxes __________________________________________________________________________ Date: Wed, 11 Sep 2013 14:04:30 +0300 From: Aleksandr Chusov <chusov.alexsandr@gmail.com> Subject: Re: [Freeswitch-users] OpenSIPs + Freeswitch + Registrations To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Message-ID: <CABn9qfoJQZB3g=c1Lf3yMq5g23W__e9F9rkLn5sejQKLO51wmQ@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 2013/9/11 Chris B. Ware <chrisbware@yahoo.it>:
FS box Chris, Do you see registration on booth FS box "show registration" ?
________________________________ Da: Chris B. Ware <chrisbware@yahoo.it> A: "freeswitch-users@lists.freeswitch.org" <freeswitch-users@lists.freeswitch.org> Inviato: Mercoledì 11 Settembre 2013 12:29 Oggetto: Re: OpenSIPs + Freeswitch + Registrations Aleks, Of course I share registrations on DB, but it seems unuseful. I mean a call for a phone registered on an FS box, must be always sent to that box. I don't have NAT issues, since all FS boxes and phones are on the same LAN. What I'd like to do is "sharing the knowledge" between boxes, so that if the Invite goes to a box where the called phone is not registered, call is forwarded to the phone anyway, because there's a shared registrations DB! Many experts on IRC guided me to use paths or scripts to redirect the call to the right box, based on entries on table registrations. But the question is: why freeswitch doesn't do it automatically? Is there any configuration trick to do it? Thank you ------------------------------ Message: 3 Date: Mon, 9 Sep 2013 16:34:43 +0100 (BST) From: "Chris B. Ware" <chrisbware@yahoo.it> Subject: [Freeswitch-users] OpenSIPs + Freeswitch + Registrations To: "freeswitch-users@lists.freeswitch.org" <freeswitch-users@lists.freeswitch.org> Message-ID: <1378740883.57558.YahooMailNeo@web171802.mail.ir2.yahoo.com> Content-Type: text/plain; charset="iso-8859-1" Hi, I'm a bit confused (as usual) on call flow between FS boxes behind an OpenSIPs balancer. All servers are on the same LAN, so the phones. Registrations are stored on common DB. PhoneA sends a register and Opensips balancer forward it to FS1. PhoneB sends a register and Opensips balancer forward it to FS2. PhoneA send an INVITE for PhoneB and OpenSIPs forward it to FS1. FS1 answers "Originate Failed. ?Cause: USER_NOT_REGISTERED" An IRC friend says to use path (RFC 3327).? Is there a config solution or should I follow the his advice? Thanks, Chris B. Message: 4 Date: Mon, 9 Sep 2013 18:56:05 +0300 From: Aleksandr Chusov <chusov.alexsandr@gmail.com> Subject: Re: [Freeswitch-users] OpenSIPs + Freeswitch + Registrations To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Message-ID: <CABn9qfqw3e-FDPp2_gKuDZQ-8868B-fWf4-0pJQiLLrAmXC05Q@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 2013/9/9 Chris B. Ware <chrisbware@yahoo.it>:
USER_NOT_REGISTERED
Hello, You need store the mod_sofia data in a shared database. Good Opensips configuration example: https://wiki.freeswitch.org/wiki/OpenSIPS_configuration_for_2_or_more_FreeSW...
That suggests the core is using your shared db but the sofia profiles are not On Wednesday, September 11, 2013, Chris B. Ware wrote:
In this moment I have two phones registered on FS2.
"sofia status profile internal reg" works only on FS2
"show registrations" works on both FS boxes __________________________________________________________________________
Date: Wed, 11 Sep 2013 14:04:30 +0300 From: Aleksandr Chusov <chusov.alexsandr@gmail.com <javascript:_e({}, 'cvml', 'chusov.alexsandr@gmail.com');>> Subject: Re: [Freeswitch-users] OpenSIPs + Freeswitch + Registrations To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org<javascript:_e({}, 'cvml', 'freeswitch-users@lists.freeswitch.org');>
Message-ID: <CABn9qfoJQZB3g=c1Lf3yMq5g23W__e9F9rkLn5sejQKLO51wmQ@mail.gmail.com<javascript:_e({}, 'cvml', 'c1Lf3yMq5g23W__e9F9rkLn5sejQKLO51wmQ@mail.gmail.com');>> Content-Type: text/plain; charset=ISO-8859-1
2013/9/11 Chris B. Ware <chrisbware@yahoo.it <javascript:_e({}, 'cvml', 'chrisbware@yahoo.it');>>:
FS box Chris, Do you see registration on booth FS box "show registration" ?
Aleks,
Of course I share registrations on DB, but it seems unuseful.
I mean a call for a phone registered on an FS box, must be always sent to that box.
I don't have NAT issues, since all FS boxes and phones are on the same LAN.
What I'd like to do is "sharing the knowledge" between boxes, so that if the Invite goes to a box where the called phone is not registered, call is forwarded to the phone anyway, because there's a shared registrations DB!
Many experts on IRC guided me to use paths or scripts to redirect the call to the right box, based on entries on table registrations.
But the question is: why freeswitch doesn't do it automatically?
Is there any configuration trick to do it?
Thank you ------------------------------ Message: 3 Date: Mon, 9 Sep 2013 16:34:43 +0100 (BST) From: "Chris B. Ware" <
To clarify have you set the dsn to the shared DB in both switch.conf.xml and also in every sofia profile's <params> section? On 16 September 2013 15:50, Steven Ayre <steveayre@gmail.com> wrote:
That suggests the core is using your shared db but the sofia profiles are not
On Wednesday, September 11, 2013, Chris B. Ware wrote:
In this moment I have two phones registered on FS2.
"sofia status profile internal reg" works only on FS2
"show registrations" works on both FS boxes __________________________________________________________________________
Date: Wed, 11 Sep 2013 14:04:30 +0300 From: Aleksandr Chusov <chusov.alexsandr@gmail.com> Subject: Re: [Freeswitch-users] OpenSIPs + Freeswitch + Registrations To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Message-ID: <CABn9qfoJQZB3g=c1Lf3yMq5g23W__e9F9rkLn5sejQKLO51wmQ@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1
2013/9/11 Chris B. Ware <chrisbware@yahoo.it>:
FS box Chris, Do you see registration on booth FS box "show registration" ?
Aleks,
Of course I share registrations on DB, but it seems unuseful.
I mean a call for a phone registered on an FS box, must be always sent to that box.
I don't have NAT issues, since all FS boxes and phones are on the same LAN.
What I'd like to do is "sharing the knowledge" between boxes, so that if the Invite goes to a box where the called phone is not registered, call is forwarded to the phone anyway, because there's a shared registrations DB!
Many experts on IRC guided me to use paths or scripts to redirect the call to the right box, based on entries on table registrations.
But the question is: why freeswitch doesn't do it automatically?
Is there any configuration trick to do it?
Thank you ------------------------------ Message: 3 Date: Mon, 9 Sep 2013 16:34:43 +0100 (BST) From: "Chris B. Ware" <
participants (3)
-
Aleksandr Chusov
-
Chris B. Ware
-
Steven Ayre