I apologize for asking unit questions today and decided to just present the big picture and address what I am trying to get @ holistically. I want to implement a custom LCR only solution on kamailio. INVITE in 300 out. Nothing else. I expect awesome cps stats that makes we lean towards kamailio rather than throwing up a home grown SIP server and worrying about performance. I have the guts of the LCR logic down pat, but todays its manual. In my process I do the following : - Check LRN of the requested user. I use dig doing a ENUM call. - Use the requesting user and LRN of requested user to mediate call type. Local or Interstate using LRN check via ENUM call (above) and LCAD data lookup. I use sql query. - Mediate call type Intrastate or International if not Local or Interstate using LERG lookup. SQL query too. - dip into database with requesting user and call type and get N lists by costs ascending. SQL query. - Construct Contact info in db or kamailio. - Send 300 reply will contact having the various routes. I can automate 2 through 6 using Kamailio. Basically xquery with supplied data and deal with the Contact header with data received. 404 or default route if no data received.
I cannot handle the ENUM in kamailio or mysql. The provider does not provide SIP redirect. What are my options, besides changing LRN providers? KD
On Tue, May 22, 2018 at 06:47:33PM +0000, KamDev Essa wrote:
I cannot handle the ENUM in kamailio or mysql.
How did you draw that conclusion?
In the LRN request via ENUM using dig I provide an IP of my LRN dip provide and a E.164 formatted TN of the requested user. I get a text dump from which I extract the rn value if present. I dont not know how to automate those steps or other steps to get the same solution. KD On Tuesday, May 22, 2018, 2:53:53 PM EDT, Alex Balashov abalashov@evaristesys.com wrote:
On Tue, May 22, 2018 at 06:47:33PM +0000, KamDev Essa wrote:
I cannot handle the ENUM in kamailio or mysql.
How did you draw that conclusion?
Am Dienstag, 22. Mai 2018, 21:00:47 CEST schrieb KamDev Essa:
In the LRN request via ENUM using dig I provide an IP of my LRN dip provide and a E.164 formatted TN of the requested user. I get a text dump from which I extract the rn value if present. I dont not know how to automate those steps or other steps to get the same solution. KD [..]
Hello,
if the enum module somehow does not work for you, maybe you could think of adding some python or lua code. You could exec with python_exec e.g. a DNS query and put the result in a pseudo-variable. Just an idea, not tested obviously.
Henning
Awesome. Where can I get info on shelling out to run a lua or python script and getting data. That could very well be a quick and dirty option if its not to bad on performance stats. KD On Tuesday, May 22, 2018, 3:05:08 PM EDT, Henning Westerholt hw@kamailio.org wrote:
#yiv3106319993 p, #yiv3106319993 li {white-space:pre-wrap;} Am Dienstag, 22. Mai 2018, 21:00:47 CEST schrieb KamDev Essa:
In the LRN request via ENUM using dig I provide an IP of my LRN dip provide
and a E.164 formatted TN of the requested user. I get a text dump from
which I extract the rn value if present. I dont not know how to automate
those steps or other steps to get the same solution. KD
[..]
Hello,
if the enum module somehow does not work for you, maybe you could think of adding some python or lua code. You could exec with python_exec e.g. a DNS query and put the result in a pseudo-variable. Just an idea, not tested obviously.
Henning
https://kamailio.org/docs/modules/5.1.x/modules/app_python.html
Or, if you absolutely must — though I don't recommend it:
https://kamailio.org/docs/modules/5.1.x/modules/exec.html
-- Alex
On Tue, May 22, 2018 at 07:14:32PM +0000, KamDev Essa wrote:
Awesome. Where can I get info on shelling out to run a lua or python script and getting data. That could very well be a quick and dirty option if its not to bad on performance stats. KD On Tuesday, May 22, 2018, 3:05:08 PM EDT, Henning Westerholt hw@kamailio.org wrote:
#yiv3106319993 p, #yiv3106319993 li {white-space:pre-wrap;} Am Dienstag, 22. Mai 2018, 21:00:47 CEST schrieb KamDev Essa:
In the LRN request via ENUM using dig I provide an IP of my LRN dip provide
and a E.164 formatted TN of the requested user. I get a text dump from
which I extract the rn value if present. I dont not know how to automate
those steps or other steps to get the same solution. KD
[..]
Hello,
if the enum module somehow does not work for you, maybe you could think of adding some python or lua code. You could exec with python_exec e.g. a DNS query and put the result in a pseudo-variable. Just an idea, not tested obviously.
Henning
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
On the app_python. How do I get the value of rn back to to kamailio. does the function return a value? likern = python_exec("my_python_function", "$rU");and evaluate rn later in teh script? KD
On Tuesday, May 22, 2018, 3:18:01 PM EDT, Alex Balashov abalashov@evaristesys.com wrote:
https://kamailio.org/docs/modules/5.1.x/modules/app_python.html
Or, if you absolutely must — though I don't recommend it:
https://kamailio.org/docs/modules/5.1.x/modules/exec.html
-- Alex
On Tue, May 22, 2018 at 07:14:32PM +0000, KamDev Essa wrote:
Awesome. Where can I get info on shelling out to run a lua or python script and getting data. That could very well be a quick and dirty option if its not to bad on performance stats. KD On Tuesday, May 22, 2018, 3:05:08 PM EDT, Henning Westerholt hw@kamailio.org wrote: #yiv3106319993 p, #yiv3106319993 li {white-space:pre-wrap;} Am Dienstag, 22. Mai 2018, 21:00:47 CEST schrieb KamDev Essa:
In the LRN request via ENUM using dig I provide an IP of my LRN dip provide
and a E.164 formatted TN of the requested user. I get a text dump from
which I extract the rn value if present. I dont not know how to automate
those steps or other steps to get the same solution. KD
[..]
Hello,
if the enum module somehow does not work for you, maybe you could think of adding some python or lua code. You could exec with python_exec e.g. a DNS query and put the result in a pseudo-variable. Just an idea, not tested obviously.
Henning
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
It does not return a function, but it can set variables and manipulate message values within the API exposed into Python:
https://github.com/kamailio/kamailio/blob/master/src/modules/app_python/pyth...
In a larger sense, app_python implements the KEMI framework:
https://kamailio.org/docs/tutorials/devel/kamailio-kemi-framework/kemi/
-- Alex
On Tue, May 22, 2018 at 07:32:35PM +0000, KamDev Essa wrote:
On the app_python. How do I get the value of rn back to to kamailio. does the function return a value? likern = python_exec("my_python_function", "$rU");and evaluate rn later in teh script? KD
On Tuesday, May 22, 2018, 3:18:01 PM EDT, Alex Balashov <abalashov@evaristesys.com> wrote:
https://kamailio.org/docs/modules/5.1.x/modules/app_python.html
Or, if you absolutely must — though I don't recommend it:
https://kamailio.org/docs/modules/5.1.x/modules/exec.html
-- Alex
On Tue, May 22, 2018 at 07:14:32PM +0000, KamDev Essa wrote:
Awesome. Where can I get info on shelling out to run a lua or python script and getting data. That could very well be a quick and dirty option if its not to bad on performance stats. KD On Tuesday, May 22, 2018, 3:05:08 PM EDT, Henning Westerholt hw@kamailio.org wrote: #yiv3106319993 p, #yiv3106319993 li {white-space:pre-wrap;} Am Dienstag, 22. Mai 2018, 21:00:47 CEST schrieb KamDev Essa:
In the LRN request via ENUM using dig I provide an IP of my LRN dip provide
and a E.164 formatted TN of the requested user. I get a text dump from
which I extract the rn value if present. I dont not know how to automate
those steps or other steps to get the same solution. KD
[..]
Hello,
if the enum module somehow does not work for you, maybe you could think of adding some python or lua code. You could exec with python_exec e.g. a DNS query and put the result in a pseudo-variable. Just an idea, not tested obviously.
Henning
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Perfect. Thanks KD On Tuesday, May 22, 2018, 3:44:48 PM EDT, Alex Balashov abalashov@evaristesys.com wrote:
It does not return a function, but it can set variables and manipulate message values within the API exposed into Python:
https://github.com/kamailio/kamailio/blob/master/src/modules/app_python/pyth...
In a larger sense, app_python implements the KEMI framework:
https://kamailio.org/docs/tutorials/devel/kamailio-kemi-framework/kemi/
-- Alex
On Tue, May 22, 2018 at 07:32:35PM +0000, KamDev Essa wrote:
On the app_python. How do I get the value of rn back to to kamailio. does the function return a value? likern = python_exec("my_python_function", "$rU");and evaluate rn later in teh script? KD
On Tuesday, May 22, 2018, 3:18:01 PM EDT, Alex Balashov abalashov@evaristesys.com wrote: https://kamailio.org/docs/modules/5.1.x/modules/app_python.html
Or, if you absolutely must — though I don't recommend it:
https://kamailio.org/docs/modules/5.1.x/modules/exec.html
-- Alex
On Tue, May 22, 2018 at 07:14:32PM +0000, KamDev Essa wrote:
Awesome. Where can I get info on shelling out to run a lua or python script and getting data. That could very well be a quick and dirty option if its not to bad on performance stats. KD On Tuesday, May 22, 2018, 3:05:08 PM EDT, Henning Westerholt hw@kamailio.org wrote: #yiv3106319993 p, #yiv3106319993 li {white-space:pre-wrap;} Am Dienstag, 22. Mai 2018, 21:00:47 CEST schrieb KamDev Essa:
In the LRN request via ENUM using dig I provide an IP of my LRN dip provide
and a E.164 formatted TN of the requested user. I get a text dump from
which I extract the rn value if present. I dont not know how to automate
those steps or other steps to get the same solution. KD
[..]
Hello,
if the enum module somehow does not work for you, maybe you could think of adding some python or lua code. You could exec with python_exec e.g. a DNS query and put the result in a pseudo-variable. Just an idea, not tested obviously.
Henning
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Again: DNS-based resolution mechanisms make use of a global DNS hierarchy, so you need to figure out how to expose your LRN provider's e164.arpa. zone into your local DNS resolver.
Shouldn't be too hard. You can configure most DNS caches like PowerDNS to source a particular zone from a static upstream.
On Tue, May 22, 2018 at 07:00:47PM +0000, KamDev Essa wrote:
In the LRN request via ENUM using dig I provide an IP of my LRN dip provide and a E.164 formatted TN of the requested user. I get a text dump from which I extract the rn value if present. I dont not know how to automate those steps or other steps to get the same solution. KD On Tuesday, May 22, 2018, 2:53:53 PM EDT, Alex Balashov abalashov@evaristesys.com wrote:
On Tue, May 22, 2018 at 06:47:33PM +0000, KamDev Essa wrote:
I cannot handle the ENUM in kamailio or mysql.
How did you draw that conclusion?
-- Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
@ the risk of sounding ignorant, I have configured DNS in the IT world for a while. Its either in DHCP, static or host file. I have never had reason to configure DNS to source a particular zone from a static upstream. But I would like to learn. Is there an info on the net to do this. KD
On Tuesday, May 22, 2018, 3:07:59 PM EDT, Alex Balashov abalashov@evaristesys.com wrote:
Again: DNS-based resolution mechanisms make use of a global DNS hierarchy, so you need to figure out how to expose your LRN provider's e164.arpa. zone into your local DNS resolver.
Shouldn't be too hard. You can configure most DNS caches like PowerDNS to source a particular zone from a static upstream.
On Tue, May 22, 2018 at 07:00:47PM +0000, KamDev Essa wrote:
In the LRN request via ENUM using dig I provide an IP of my LRN dip provide and a E.164 formatted TN of the requested user. I get a text dump from which I extract the rn value if present. I dont not know how to automate those steps or other steps to get the same solution. KD On Tuesday, May 22, 2018, 2:53:53 PM EDT, Alex Balashov abalashov@evaristesys.com wrote: On Tue, May 22, 2018 at 06:47:33PM +0000, KamDev Essa wrote:
I cannot handle the ENUM in kamailio or mysql.
How did you draw that conclusion?
-- Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
On Tue, May 22, 2018 at 07:21:02PM +0000, KamDev Essa wrote:
@ the risk of sounding ignorant, I have configured DNS in the IT world for a while. Its either in DHCP, static or host file. I have never had reason to configure DNS to source a particular zone from a static upstream. But I would like to learn. Is there an info on the net to do this.
There doubtless is. Google "dns conditional forwarding".