Multimple aliases for one user id
Hello! Is this possible to have multiple aliases (phone numbers) for one user id? For example, the user's primary id (and the phone number) is 1000 (internal number) and 73435230000 is an alias (external number). So may I use in directory something like: <user id="100" alias="73435230000"> </user> -- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
When you say "alias" what exactly do you mean? If it's just a matter of dialing 73435230000 and reaching user 100 then that can easily be handled in the dialplan. -MC On Fri, Nov 5, 2010 at 2:16 AM, Boris Kovalenko <boris@tagnet.ru> wrote:
Hello!
Is this possible to have multiple aliases (phone numbers) for one user id? For example, the user's primary id (and the phone number) is 1000 (internal number) and 73435230000 is an alias (external number). So may I use in directory something like: <user id="100" alias="73435230000"> </user>
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
Hello! Alias (for me) is additional phone number. Yes, I know that I may write extension to redirect. But this is nice when there is only one or two users. And what to do if there are 100 or even 1000 users with "number alias" feature? The one way I find for the time present is easyroute with custom query, but may be there already is a "good practice" solution. Can't belive that nobody uses at least two numbers short internal and full international.
When you say "alias" what exactly do you mean? If it's just a matter of dialing 73435230000 and reaching user 100 then that can easily be handled in the dialplan.
-MC
On Fri, Nov 5, 2010 at 2:16 AM, Boris Kovalenko <boris@tagnet.ru <mailto:boris@tagnet.ru>> wrote:
Hello!
Is this possible to have multiple aliases (phone numbers) for one user id? For example, the user's primary id (and the phone number) is 1000 (internal number) and 73435230000 is an alias (external number). So may I use in directory something like: <user id="100" alias="73435230000"> </user>
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
Use mod_xml_curl to dynamically generate the dialplan. You can then store your own number -> user id mappings and return an extension that bridges to the correct user id. -Steve On 5 November 2010 18:35, Boris Kovalenko <boris@tagnet.ru> wrote:
Hello!
Alias (for me) is additional phone number. Yes, I know that I may write extension to redirect. But this is nice when there is only one or two users. And what to do if there are 100 or even 1000 users with "number alias" feature? The one way I find for the time present is easyroute with custom query, but may be there already is a "good practice" solution. Can't belive that nobody uses at least two numbers short internal and full international.
When you say "alias" what exactly do you mean? If it's just a matter of dialing 73435230000 and reaching user 100 then that can easily be handled in the dialplan.
-MC
On Fri, Nov 5, 2010 at 2:16 AM, Boris Kovalenko <boris@tagnet.ru> wrote:
Hello!
Is this possible to have multiple aliases (phone numbers) for one user id? For example, the user's primary id (and the phone number) is 1000 (internal number) and 73435230000 is an alias (external number). So may I use in directory something like: <user id="100" alias="73435230000"> </user>
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
Hello! Yes, I have read about mod_xml_curl but still can't understand how it may help me, but thank You indeed! With your help I found how to make user directory with LUA and thinking this is ideal solution for me. For anyone who interested: http://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh#User_Directory_XML
Use mod_xml_curl to dynamically generate the dialplan. You can then store your own number -> user id mappings and return an extension that bridges to the correct user id.
-Steve
On 5 November 2010 18:35, Boris Kovalenko<boris@tagnet.ru> wrote:
Hello!
Alias (for me) is additional phone number. Yes, I know that I may write extension to redirect. But this is nice when there is only one or two users. And what to do if there are 100 or even 1000 users with "number alias" feature? The one way I find for the time present is easyroute with custom query, but may be there already is a "good practice" solution. Can't belive that nobody uses at least two numbers short internal and full international.
When you say "alias" what exactly do you mean? If it's just a matter of dialing 73435230000 and reaching user 100 then that can easily be handled in the dialplan.
-MC
On Fri, Nov 5, 2010 at 2:16 AM, Boris Kovalenko<boris@tagnet.ru> wrote:
Hello!
Is this possible to have multiple aliases (phone numbers) for one user id? For example, the user's primary id (and the phone number) is 1000 (internal number) and 73435230000 is an alias (external number). So may I use in directory something like: <user id="100" alias="73435230000"> </user>
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
When a call arrives it fires a HTTP request to your web server. That contains details such as the destination_number. Your script then dynamically generates a dialplan, which can be much shorter than a static one (just the extension(s) you want to execute). Every call generates its own dialplan. In this case your script would look up the destination number in a database to find the user id and generate an extension that bridges to that user. Or some other action is the number is unknown. mod_xml_curl can also generate a user directory, where a HTTP request is fired when a user tries to authenticate. The intelligence in your script then decides if they're a valid user, generates the password for FS to check against, and generates all the stuff you'd find in the user entry like variables. -Steve On 6 November 2010 06:38, Boris Kovalenko <boris@tagnet.ru> wrote:
Hello!
Yes, I have read about mod_xml_curl but still can't understand how it may help me, but thank You indeed! With your help I found how to make user directory with LUA and thinking this is ideal solution for me. For anyone who interested: http://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh#User_Directory_XML
Use mod_xml_curl to dynamically generate the dialplan. You can then store your own number -> user id mappings and return an extension that bridges to the correct user id.
-Steve
On 5 November 2010 18:35, Boris Kovalenko<boris@tagnet.ru> wrote:
Hello!
Alias (for me) is additional phone number. Yes, I know that I may write extension to redirect. But this is nice when there is only one or two users. And what to do if there are 100 or even 1000 users with "number alias" feature? The one way I find for the time present is easyroute with custom query, but may be there already is a "good practice" solution. Can't belive that nobody uses at least two numbers short internal and full international.
When you say "alias" what exactly do you mean? If it's just a matter of dialing 73435230000 and reaching user 100 then that can easily be handled in the dialplan.
-MC
On Fri, Nov 5, 2010 at 2:16 AM, Boris Kovalenko<boris@tagnet.ru> wrote:
Hello!
Is this possible to have multiple aliases (phone numbers) for one user id? For example, the user's primary id (and the phone number) is 1000 (internal number) and 73435230000 is an alias (external number). So may I use in directory something like: <user id="100" alias="73435230000"> </user>
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
Hello! Ough, thanks for explanation, Steve! I didn't understand that I may generate only a small portion of dialplan for each request.
When a call arrives it fires a HTTP request to your web server. That contains details such as the destination_number. Your script then dynamically generates a dialplan, which can be much shorter than a static one (just the extension(s) you want to execute). Every call generates its own dialplan.
In this case your script would look up the destination number in a database to find the user id and generate an extension that bridges to that user. Or some other action is the number is unknown.
mod_xml_curl can also generate a user directory, where a HTTP request is fired when a user tries to authenticate. The intelligence in your script then decides if they're a valid user, generates the password for FS to check against, and generates all the stuff you'd find in the user entry like variables.
-Steve
On 6 November 2010 06:38, Boris Kovalenko<boris@tagnet.ru> wrote:
Hello!
Yes, I have read about mod_xml_curl but still can't understand how it may help me, but thank You indeed! With your help I found how to make user directory with LUA and thinking this is ideal solution for me. For anyone who interested: http://wiki.freeswitch.org/wiki/Lua_freeswitch_dbh#User_Directory_XML
Use mod_xml_curl to dynamically generate the dialplan. You can then store your own number -> user id mappings and return an extension that bridges to the correct user id.
-Steve
On 5 November 2010 18:35, Boris Kovalenko<boris@tagnet.ru> wrote:
Hello!
Alias (for me) is additional phone number. Yes, I know that I may write extension to redirect. But this is nice when there is only one or two users. And what to do if there are 100 or even 1000 users with "number alias" feature? The one way I find for the time present is easyroute with custom query, but may be there already is a "good practice" solution. Can't belive that nobody uses at least two numbers short internal and full international.
When you say "alias" what exactly do you mean? If it's just a matter of dialing 73435230000 and reaching user 100 then that can easily be handled in the dialplan.
-MC
On Fri, Nov 5, 2010 at 2:16 AM, Boris Kovalenko<boris@tagnet.ru> wrote:
Hello!
Is this possible to have multiple aliases (phone numbers) for one user id? For example, the user's primary id (and the phone number) is 1000 (internal number) and 73435230000 is an alias (external number). So may I use in directory something like: <user id="100" alias="73435230000"> </user>
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
_______________________________________________ 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
_______________________________________________ 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
-- С уважением, Борис Коваленко ЗАО "Тагнет" (3435) 494991
participants (3)
-
Boris Kovalenko
-
Michael Collins
-
Steven Ayre