Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] Alias user mapping


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





PostPosted: Tue Sep 29, 2009 8:55 am    Post subject: [Freeswitch-users] Alias user mapping Reply with quote

Hi everybody,

I have a problem with "Alphanumeric to numeric user mapping"


I have done like it's written here :




Alphanumeric to numeric user mapping
Say you want a user's id to be alphanumeric (like an email username), such as johnsmith@pbx.example.com (johnsmith@pbx.example.com). These users have alphanumeric usernames in their sip phone config, but you want to map them from their sip username to a numeric extension, and vice versa.
As of version 1.0.4, Freeswitch makes this trivial to accomplish. A user's ID can be any alphanumeric string, and this can be simply tied to an extension number using the 'number-alias' property. This property creates an aliased directory entry that points to the alphanumeric user entry.
NOTE: When using this attribute, you must be careful not to create a directory collision by having another user whose ID is the same as another user's alias
Here is an example from the user directory:
Quote:

<user id="johnsmith" number-alias="1001">
<!-- Insert the usual user configuration variables and params here,
including user password, voicemail password, caller ID info, etc -->
</user>

So when a user dials extension number 1001, your dialplan can use the 'user_data' function to look up the ID attribute associated with that number alias. In the default dialplan, the 'Local Extension' section can be made to work with a small change to the 'bridge' line:
Quote:

<action application="bridge" data="user/${user_data(${dialed_extension}@${domain_name} attr id)}@${domain_name}"/>

NOTE: Using this user_data function in combination with mod_xml_curl will generate an additional request each time the user_data function is called. Note that it is already called once in the Local Extension section to determine the callgroup. Beware of performance implications of this with high-volume systems.




But when I want to call my alias-number, FS says "No Route, Abording"


My version of FreeSWITCH is the 1.0.4pre9.


Do you have any ideas ? Did I forget something to do?


Thanks 



--
Jonathan BAROU
SQLI LYON - CRCI
jbarou@sqli.com (jbarou@sqli.com)
lyon.crci@sqli.com (lyon.crci@sqli.com)
Back to top
mike at jerris.com
Guest





PostPosted: Tue Sep 29, 2009 9:16 am    Post subject: [Freeswitch-users] Alias user mapping Reply with quote

Could you test this in svn trunk please.

Mike

On Sep 29, 2009, at 9:33 AM, Jonathan Barou wrote:
Quote:
Hi everybody,

I have a problem with "Alphanumeric to numeric user mapping"


I have done like it's written here :


...
But when I want to call my alias-number, FS says "No Route, Abording"


My version of FreeSWITCH is the 1.0.4pre9.


Do you have any ideas ? Did I forget something to do?


Thanks



--
Jonathan BAROU
SQLI LYON - CRCI
jbarou@sqli.com (jbarou@sqli.com)
lyon.crci@sqli.com (lyon.crci@sqli.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
http://www.freeswitch.org
Back to top
jbarou at sqli.com
Guest





PostPosted: Tue Sep 29, 2009 9:37 am    Post subject: [Freeswitch-users] Alias user mapping Reply with quote

I'm sorry but I'm new in the freeswitch communauty, what I have to do to test this in svn trunk ?

Thanks

2009/9/29 Michael Jerris <mike@jerris.com (mike@jerris.com)>
Quote:
Could you test this in svn trunk please.

Mike

On Sep 29, 2009, at 9:33 AM, Jonathan Barou wrote:


Quote:
Hi everybody,

I have a problem with "Alphanumeric to numeric user mapping"


I have done like it's written here :



...
But when I want to call my alias-number, FS says "No Route, Abording"


My version of FreeSWITCH is the 1.0.4pre9.


Do you have any ideas ? Did I forget something to do?


Thanks 



--
Jonathan BAROU
SQLI LYON - CRCI
jbarou@sqli.com (jbarou@sqli.com)
lyon.crci@sqli.com (lyon.crci@sqli.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
http://www.freeswitch.org





_______________________________________________
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




--
Jonathan BAROU
SQLI LYON - CRCI
jbarou@sqli.com (jbarou@sqli.com)
lyon.crci@sqli.com (lyon.crci@sqli.com)
Back to top
mike at jerris.com
Guest





PostPosted: Tue Sep 29, 2009 10:01 am    Post subject: [Freeswitch-users] Alias user mapping Reply with quote

http://wiki.freeswitch.org/wiki/Installation_Guide#Obtaining_the_Source_Code
http://wiki.freeswitch.org/wiki/Installation_Guide#Compiling_the_Source_Code

On Sep 29, 2009, at 10:19 AM, Jonathan Barou wrote:

Quote:
I'm sorry but I'm new in the freeswitch communauty, what I have to
do to test this in svn trunk ?



_______________________________________________
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
msc at freeswitch.org
Guest





PostPosted: Tue Sep 29, 2009 12:49 pm    Post subject: [Freeswitch-users] Alias user mapping Reply with quote

On Tue, Sep 29, 2009 at 7:19 AM, Jonathan Barou <jbarou@sqli.com (jbarou@sqli.com)> wrote:
Quote:
I'm sorry but I'm new in the freeswitch communauty, what I have to do to test this in svn trunk ?

Thanks


FYI,

If you're running in Linux then this is a handy way to build from scratch using a somewhat automated process:
http://wiki.freeswitch.org/wiki/Quick_and_Dirty_Install

What's nice about being on latest SVN trunk is that you can do "make current" and it will update your build for you.
-MC
Back to top
Peter.Hinman at Parcel...
Guest





PostPosted: Tue Sep 29, 2009 6:00 pm    Post subject: [Freeswitch-users] Alias user mapping Reply with quote

I've noticed that when using an alphanumeric ID, case sensitivity causes issues. It doesn't seem to matter what case the userID is in the XML directory. What does seem to matter is how the user registered their phone. If the user registered in all upper case (JOHN_SMITH), then dialing John_Smith will not work.

My work around for this is to tell all users to register their phones in lower case, and then my dial plan uses LUA to force all dialed extensions to lowercase.

Peter


Jonathan Barou wrote:
Quote:
Hi everybody,

I have a problem with "Alphanumeric to numeric user mapping"


I have done like it's written here :




Alphanumeric to numeric user mapping
Say you want a user's id to be alphanumeric (like an email username), such as johnsmith@pbx.example.com (johnsmith@pbx.example.com). These users have alphanumeric usernames in their sip phone config, but you want to map them from their sip username to a numeric extension, and vice versa.
As of version 1.0.4, Freeswitch makes this trivial to accomplish. A user's ID can be any alphanumeric string, and this can be simply tied to an extension number using the 'number-alias' property. This property creates an aliased directory entry that points to the alphanumeric user entry.
NOTE: When using this attribute, you must be careful not to create a directory collision by having another user whose ID is the same as another user's alias
Here is an example from the user directory:
Quote:
<user id="johnsmith" number-alias="1001"> <!-- Insert the usual user configuration variables and params here, including user password, voicemail password, caller ID info, etc --> </user>

So when a user dials extension number 1001, your dialplan can use the 'user_data' function to look up the ID attribute associated with that number alias. In the default dialplan, the 'Local Extension' section can be made to work with a small change to the 'bridge' line:
Quote:
<action application="bridge" data="user/${user_data(${dialed_extension}@${domain_name} attr id)}@${domain_name}"/>

NOTE: Using this user_data function in combination with mod_xml_curl will generate an additional request each time the user_data function is called. Note that it is already called once in the Local Extension section to determine the callgroup. Beware of performance implications of this with high-volume systems.




But when I want to call my alias-number, FS says "No Route, Abording"


My version of FreeSWITCH is the 1.0.4pre9.


Do you have any ideas ? Did I forget something to do?


Thanks



--
Jonathan BAROU
SQLI LYON - CRCI
jbarou@sqli.com (jbarou@sqli.com)
lyon.crci@sqli.com (lyon.crci@sqli.com)


Quote:


_______________________________________________
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
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