Hi! My users want to use usernames in their phones e-mail-type style. Like username@domain. With FS it works ok. The only problem I’ve faced - it’s when you route this call via proxy like OpenSIPS or Kamailio. Actual problem, when you bridge user@proxy, your URI becomes like username@domain@proxy. So, This RURI is dropped by proxy with reason «cannot be parsed» or so. Actually, they are right, Is there any way of avoid to use two @ in URI? FS 1.6.9 -- Best regards, Igor
You cant have 2 @ signs in a URI… that’s violating the specifications… In FreeSWITCH if you want to send it to a proxy see fs_path… example <action application=”bridge” data=”sofia/profile/someuser@somedom.com;fs_path=the.proxy <mailto:sofia/profile/someuser@somedom.com;fs_path=the.proxy> ”/> From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Igor Olhovskiy Sent: Thursday, August 18, 2016 6:44 AM To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: [Freeswitch-users] Username with @ in it Hi! My users want to use usernames in their phones e-mail-type style. Like username@domain. With FS it works ok. The only problem I’ve faced - it’s when you route this call via proxy like OpenSIPS or Kamailio. Actual problem, when you bridge user@proxy, your URI becomes like username@domain@proxy. So, This RURI is dropped by proxy with reason «cannot be parsed» or so. Actually, they are right, Is there any way of avoid to use two @ in URI? FS 1.6.9 -- Best regards, Igor
But what if my username is like user@domain? Like my username is JohnSmith@gmail.com and I’m registered at sipProvider.com domain? Would be my R-URI string correct like INVITE JohnSmith@gmail.com@sipProvider.com ? 2016-08-18 18:34 GMT+03:00 Ken Rice <krice@freeswitch.org>:
You cant have 2 @ signs in a URI… that’s violating the specifications…
In FreeSWITCH if you want to send it to a proxy see fs_path… example <action application=”bridge” data=”sofia/profile/someuser@ somedom.com;fs_path=the.proxy”/>
*From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Igor Olhovskiy *Sent:* Thursday, August 18, 2016 6:44 AM *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Subject:* [Freeswitch-users] Username with @ in it
Hi!
My users want to use usernames in their phones e-mail-type style. Like username@domain.
With FS it works ok. The only problem I’ve faced - it’s when you route this call via proxy like OpenSIPS or Kamailio. Actual problem, when you bridge user@proxy, your URI becomes like
username@domain@proxy.
So, This RURI is dropped by proxy with reason «cannot be parsed» or so. Actually, they are right,
Is there any way of avoid to use two @ in URI?
FS 1.6.9
--
Best regards,
Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
-- Best regards, Igor
No, as Ken said, you will never have 2 @’s in a ruri, in the same way that you would never have 2 @ in an email address. when you register you register as a uri. there are not two domains, only one. You could register at a uri, using a proxy that is a different address or domain, but thats still registering as the single domain.
On Aug 18, 2016, at 1:21 PM, Igor Olhovskiy <igorolhovskiy@gmail.com> wrote:
But what if my username is like user@domain? Like my username is JohnSmith@gmail.com <mailto:JohnSmith@gmail.com> and I’m registered at sipProvider.com domain? Would be my R-URI string correct like INVITE JohnSmith@gmail.com@sipProvider.com ?
2016-08-18 18:34 GMT+03:00 Ken Rice <krice@freeswitch.org <mailto:krice@freeswitch.org>>: You cant have 2 @ signs in a URI… that’s violating the specifications…
In FreeSWITCH if you want to send it to a proxy see fs_path… example <action application=”bridge” data=”sofia/profile/someuser@somedom.com;fs_path=the.proxy <mailto:sofia/profile/someuser@somedom.com;fs_path=the.proxy>”/>
From: freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org>] On Behalf Of Igor Olhovskiy Sent: Thursday, August 18, 2016 6:44 AM To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> Subject: [Freeswitch-users] Username with @ in it
Hi!
My users want to use usernames in their phones e-mail-type style. Like username@domain.
With FS it works ok. The only problem I’ve faced - it’s when you route this call via proxy like OpenSIPS or Kamailio. Actual problem, when you bridge user@proxy, your URI becomes like
username@domain@proxy.
So, This RURI is dropped by proxy with reason «cannot be parsed» or so. Actually, they are right,
Is there any way of avoid to use two @ in URI?
FS 1.6.9
--
Best regards,
Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com <http://www.freeswitchsolutions.com/>
Official FreeSWITCH Sites http://www.freeswitch.org <http://www.freeswitch.org/> http://confluence.freeswitch.org <http://confluence.freeswitch.org/> http://www.cluecon.com <http://www.cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> http://www.freeswitch.org <http://www.freeswitch.org/>
-- Best regards, Igor _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
You username is always user@domain … its not user@domain@somethingelse From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Igor Olhovskiy Sent: Thursday, August 18, 2016 12:22 PM To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] Username with @ in it But what if my username is like user@domain? Like my username is JohnSmith@gmail.com <mailto:JohnSmith@gmail.com> and I’m registered at sipProvider.com domain? Would be my R-URI string correct like INVITE JohnSmith@gmail.com@sipProvider.com <mailto:JohnSmith@gmail.com@sipProvider.com> ? 2016-08-18 18:34 GMT+03:00 Ken Rice <krice@freeswitch.org <mailto:krice@freeswitch.org> >: You cant have 2 @ signs in a URI… that’s violating the specifications… In FreeSWITCH if you want to send it to a proxy see fs_path… example <action application=”bridge” data=”sofia/profile/someuser@somedom.com;fs_path=the.proxy <mailto:sofia/profile/someuser@somedom.com;fs_path=the.proxy> ”/> From: freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> ] On Behalf Of Igor Olhovskiy Sent: Thursday, August 18, 2016 6:44 AM To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org> > Subject: [Freeswitch-users] Username with @ in it Hi! My users want to use usernames in their phones e-mail-type style. Like username@domain. With FS it works ok. The only problem I’ve faced - it’s when you route this call via proxy like OpenSIPS or Kamailio. Actual problem, when you bridge user@proxy, your URI becomes like username@domain@proxy. So, This RURI is dropped by proxy with reason «cannot be parsed» or so. Actually, they are right, Is there any way of avoid to use two @ in URI? FS 1.6.9 -- Best regards, Igor _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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 -- Best regards, Igor
I may think he is not explaining himself. He might want a multi tenant system, where users can use their email. In this example, its clear he doesn't own Gmail.com. PBX should have Gmail.com tenant, and inside it johnsmith user. Your endpoint should split user and domain, and you should hard code your PBX ip as a proxy. Le 18 août 2016 1:33 PM, "Ken Rice" <krice@freeswitch.org> a écrit :
You username is always user@domain … its not user@domain@somethingelse
*From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Igor Olhovskiy *Sent:* Thursday, August 18, 2016 12:22 PM *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Subject:* Re: [Freeswitch-users] Username with @ in it
But what if my username is like user@domain?
Like my username is JohnSmith@gmail.com and I’m registered at sipProvider.com domain?
Would be my R-URI string correct like
INVITE JohnSmith@gmail.com@sipProvider.com
?
2016-08-18 18:34 GMT+03:00 Ken Rice <krice@freeswitch.org>:
You cant have 2 @ signs in a URI… that’s violating the specifications…
In FreeSWITCH if you want to send it to a proxy see fs_path… example <action application=”bridge” data=”sofia/profile/someuser@ somedom.com;fs_path=the.proxy”/>
*From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Igor Olhovskiy *Sent:* Thursday, August 18, 2016 6:44 AM *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Subject:* [Freeswitch-users] Username with @ in it
Hi!
My users want to use usernames in their phones e-mail-type style. Like username@domain.
With FS it works ok. The only problem I’ve faced - it’s when you route this call via proxy like OpenSIPS or Kamailio. Actual problem, when you bridge user@proxy, your URI becomes like
username@domain@proxy.
So, This RURI is dropped by proxy with reason «cannot be parsed» or so. Actually, they are right,
Is there any way of avoid to use two @ in URI?
FS 1.6.9
--
Best regards,
Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
--
Best regards,
Igor
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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 nothing new in FreeSWITCH…. The directory has always been multi-tenant by default… the domain/realm has always been used for breaking these things down so that bob@domainA.com <mailto:bob@domainA.com> != bob@domainB.com <mailto:bob@domainB.com> in the example configs we actually had to disable this because people just couldn’t wrap their head around it and there is a setting for forcing the domain on the sofia profiles… the user directory in FreeSWITCH has supported this from day one. All you have to do is create the proper domains in the Directory (and proper domain handling in your dialplan) and it works just like any other URI based routing service be it email xmpp sip or whatever. From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Luis Daniel Lucio Quiroz Sent: Thursday, August 18, 2016 12:41 PM To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] Username with @ in it I may think he is not explaining himself. He might want a multi tenant system, where users can use their email. In this example, its clear he doesn't own Gmail.com. PBX should have Gmail.com tenant, and inside it johnsmith user. Your endpoint should split user and domain, and you should hard code your PBX ip as a proxy. Le 18 août 2016 1:33 PM, "Ken Rice" <krice@freeswitch.org <mailto:krice@freeswitch.org> > a écrit : You username is always user@domain … its not user@domain@somethingelse From: freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> ] On Behalf Of Igor Olhovskiy Sent: Thursday, August 18, 2016 12:22 PM To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org> > Subject: Re: [Freeswitch-users] Username with @ in it But what if my username is like user@domain? Like my username is JohnSmith@gmail.com <mailto:JohnSmith@gmail.com> and I’m registered at sipProvider.com domain? Would be my R-URI string correct like INVITE JohnSmith@gmail.com@sipProvider.com <mailto:JohnSmith@gmail.com@sipProvider.com> ? 2016-08-18 18:34 GMT+03:00 Ken Rice <krice@freeswitch.org <mailto:krice@freeswitch.org> >: You cant have 2 @ signs in a URI… that’s violating the specifications… In FreeSWITCH if you want to send it to a proxy see fs_path… example <action application=”bridge” data=”sofia/profile/someuser@somedom.com;fs_path=the.proxy <mailto:sofia/profile/someuser@somedom.com;fs_path=the.proxy> ”/> From: freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> ] On Behalf Of Igor Olhovskiy Sent: Thursday, August 18, 2016 6:44 AM To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org> > Subject: [Freeswitch-users] Username with @ in it Hi! My users want to use usernames in their phones e-mail-type style. Like username@domain. With FS it works ok. The only problem I’ve faced - it’s when you route this call via proxy like OpenSIPS or Kamailio. Actual problem, when you bridge user@proxy, your URI becomes like username@domain@proxy. So, This RURI is dropped by proxy with reason «cannot be parsed» or so. Actually, they are right, Is there any way of avoid to use two @ in URI? FS 1.6.9 -- Best regards, Igor _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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 -- Best regards, Igor _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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 (4)
-
Igor Olhovskiy
-
Ken Rice
-
Luis Daniel Lucio Quiroz
-
Michael Jerris