Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] E-mail as user id and bridging


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
brian at freeswitch.org
Guest





PostPosted: Fri Nov 14, 2008 10:47 am    Post subject: [Freeswitch-users] E-mail as user id and bridging Reply with quote

You can't have two @'s in a uri. You do know its already domain based.. you have domains that have users inside them? so you can dial user/brian@domain.com ([email]user/brian@domain.com[/email]) already without any extra thought? You can have multiple domains in the directory... with users in each domain.

/b

On Nov 14, 2008, at 2:20 AM, Jan Kubr wrote:
Quote:
Hi guys,
I'd like to have e-mail addresses as user ids in the directory, something like:

<user id="brian@domain.com (brian@domain.com)" mailbox="9999" >

Now is there any way I can bridge a call to this user?
This:

<action application="bridge" data="user/brian@domain.com ([email]user/brian@domain.com[/email])@$${domain}" />

doesn't work because of the two @ signs. I tried putting the id in a
variable, replace @ with @, but neither helped.

Thanks,
Jan Kubr
Back to top
jan.kubr at gmail.com
Guest





PostPosted: Fri Nov 14, 2008 11:00 am    Post subject: [Freeswitch-users] E-mail as user id and bridging Reply with quote

Hi guys,
I'd like to have e-mail addresses as user ids in the directory, something like:

<user id="brian@domain.com" mailbox="9999" >

Now is there any way I can bridge a call to this user?
This:

<action application="bridge" data="user/brian@domain.com@$${domain}" />

doesn't work because of the two @ signs. I tried putting the id in a
variable, replace @ with @, but neither helped.

Thanks,
Jan Kubr

_______________________________________________
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
Back to top
jan.kubr at gmail.com
Guest





PostPosted: Sun Nov 16, 2008 12:26 pm    Post subject: [Freeswitch-users] E-mail as user id and bridging Reply with quote

Quote:
You can't have two @'s in a uri. You do know its already domain
based.. you have domains that have users inside them? so you can dial user/brian@domain.com
already without any extra thought? You can have multiple domains in
the directory... with users in each domain.

These domains don't point to the Freeswitch box though. They are
complete random from people from the Internet.
So the e-mail might be james@yahoo.com while obviously yahoo.com
doesn't point to my Freeswitch box.

<domain name="yahoo.com">
<user id="jan.kubr">

won't work then because the user can't log in.

Basically I want the user to use his e-mail to login with her SIP
phone. This works fine when the user id is james@yahoo.com (in a
domain that is the IP of the FS box), but then it is not possible to
bridge a call that user.

Jan

_______________________________________________
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
Back to top
anthony.minessale at g...
Guest





PostPosted: Sun Nov 16, 2008 12:54 pm    Post subject: [Freeswitch-users] E-mail as user id and bridging Reply with quote

That sort of non standard requirement falls outside our scope of expertise.
Maybe you can convince gmail to let you login with yahoo addresses.


On Sun, Nov 16, 2008 at 11:25 AM, Jan Kubr <jan.kubr@gmail.com (jan.kubr@gmail.com)> wrote:
Quote:
> You can't have two @'s in a uri. You do know its already domain
Quote:
based.. you have domains that have users inside them? so you can dial user/brian@domain.com (brian@domain.com)
already without any extra thought? You can have multiple domains in
the directory... with users in each domain.


These domains don't point to the Freeswitch box though. They are
complete random from people from the Internet.
So the e-mail might be james@yahoo.com (james@yahoo.com) while obviously yahoo.com
doesn't point to my Freeswitch box.

<domain name="yahoo.com">
<user id="jan.kubr">

won't work then because the user can't log in.

Basically I want the user to use his e-mail to login with her SIP
phone. This works fine when the user id is james@yahoo.com (james@yahoo.com) (in a
domain that is the IP of the FS box), but then it is not possible to
bridge a call that user.

Jan


_______________________________________________
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
http://www.freeswitch.org





--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
ibc at aliax.net
Guest





PostPosted: Sun Nov 16, 2008 1:03 pm    Post subject: [Freeswitch-users] E-mail as user id and bridging Reply with quote

El Domingo, 16 de Noviembre de 2008, Jan Kubr escribió:
Quote:
Basically I want the user to use his e-mail to login with her SIP
phone. This works fine when the user id is james@yahoo.com (in a
domain that is the IP of the FS box), but then it is not possible to
bridge a call that user.

An username part if a SIP or MAILTO URI can't contain @ symbol, it's illegal
as it's, in fact, the separator of the userpart and domain part.

What you can do is escaping "@" in hexadecimal before creating the SIP URI (I
don't know the code for "@", but "a" == "%61"), so:

sip:alice@domain.com == sip:%lice@domain.com

So supposing an user has an email:
carol@gmail.com
and supposing that the hexadecimal conversion of "@" is "%88" then you can
create a SIP URI like:
sip:carol%88gmail.com@your_fs_domain


--
Iñaki Baz Castillo

_______________________________________________
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
Back to top
jan.kubr at gmail.com
Guest





PostPosted: Sun Nov 16, 2008 5:22 pm    Post subject: [Freeswitch-users] E-mail as user id and bridging Reply with quote

Quote:
El Domingo, 16 de Noviembre de 2008, Jan Kubr escribi?:
Quote:
Basically I want the user to use his e-mail to login with her SIP
phone. This works fine when the user id is james@yahoo.com (in a
domain that is the IP of the FS box), but then it is not possible to
bridge a call that user.

An username part if a SIP or MAILTO URI can't contain @ symbol, it's illegal
as it's, in fact, the separator of the userpart and domain part.

What you can do is escaping "@" in hexadecimal before creating the SIP URI (I
don't know the code for "@", but "a" == "%61"), so:

sip:alice@domain.com == sip:%lice@domain.com

OK I see now. I didn't realize I'm using a SIP URI here (since I'm
only calling the user "locally") whose userinfo part can't contain the
at-sign (as found here:
http://tools.ietf.org/html/rfc3261#section-25.1).
The escaping doesn't do quite what I wanted, but thanks a lot for the effort.

I'll stick to what I'm doing now which is that I replace the at-sign
with a dot and take that as a username.
Sorry for the newbie question and thanks all for the answers.

Jan

_______________________________________________
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
Back to top
brian at freeswitch.org
Guest





PostPosted: Sun Nov 16, 2008 5:54 pm    Post subject: [Freeswitch-users] E-mail as user id and bridging Reply with quote

Its better to use a dash... a dot is valid in the username part of an
email address... so what dot do you split on?

Example

brian.west@domain.com
brian@west.domain.com

Even worse

brian.k.west@domain.com

Lets go even worse... brian.k.west@sub.domain.com

So which do you split on Smile Not very clear is it?

/b

On Nov 16, 2008, at 4:13 PM, Jan Kubr wrote:

Quote:
I'll stick to what I'm doing now which is that I replace the at-sign
with a dot and take that as a username.
Sorry for the newbie question and thanks all for the answers.

Jan


_______________________________________________
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
Back to top
jan.kubr at gmail.com
Guest





PostPosted: Mon Nov 17, 2008 5:10 am    Post subject: [Freeswitch-users] E-mail as user id and bridging Reply with quote

Quote:
I'll stick to what I'm doing now which is that I replace the at-sign
with a dot and take that as a username.
Sorry for the newbie question and thanks all for the answers.

Quote:
Its better to use a dash... a dot is valid in the username part of an
email address... so what dot do you split on?

Example

brian.west@domain.com
brian@west.domain.com

So which do you split on Smile Not very clear is it?

It is not, but I don't need to do that. I don't need to guess the
user's e-mail from their SIP name; I put their ID in the directory
entry as a call variable:

<variable name="user_id" value="4"/>

This ID is from the users database where I can access all the info
about the user, including her e-mail address.

My motivation was making it as simply as possible for the end users to
connect to Freeswitch with their SIP phones. Since they already use
their e-mails to log in to other systems, it would be consistent to
use it as their SIP name, too. You showed me it is not possible, so
I'll just tell them the username is their e-mail with @ replaced with
a dot. For now that is good enough.

(BTW dashes are allowed in the username part of e-mails as well, see
atext definition in RFC822)

Jan

PS: How do I not start a new thread on each reply? I'm getting only
the digest e-mail and need to start a new message when I want to
reply.

_______________________________________________
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services