Re: [SR-Users] Any modules with LRN dipping capacity?

2018-05-22 Thread KamDev Essa
By going http_query I could kill 2 birds with 1 stone. - dip LRN - dip db and get composed LCR string for my Contact header. Then Kamailio just update the contact header and replies 300 back and we are off to the races. Basically moving business logic off kamailio and keeping it lean

Re: [SR-Users] Any modules with LRN dipping capacity?

2018-05-22 Thread KamDev Essa
James, Thanks great example. I think I will go with  http_query(url, result) route because I am not as savvy @ python or lua as I am on C# over .NetCore. Yes I can see delays with the two resource hop. I am hoping its not too much.  KD       On Tuesday, May 22, 2018, 4:04:36 PM EDT, James

Re: [SR-Users] Best way to implement custom LCR

2018-05-22 Thread KamDev Essa
Perfect.  Thanks KD On Tuesday, May 22, 2018, 3:44:48 PM EDT, Alex Balashov wrote: It does not return a function, but it can set variables and manipulate message values within the API exposed into Python:

Re: [SR-Users] Any modules with LRN dipping capacity?

2018-05-22 Thread James Cloos
For reference, this is how my lrn provder replies to a dns query: ; <<>> DiG 9.11.2 <<>> @enum.AnEnumProvider.com -t naptr 3.2.6.4.2.6.5.5.7.7.1.lrn.e164.arpa ; (1 server found) ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7531 ;; flags: qr aa rd;

Re: [SR-Users] Best way to implement custom LCR

2018-05-22 Thread Alex Balashov
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/python_examples/handler.py In a larger sense, app_python implements the KEMI framework:

Re: [SR-Users] Best way to implement custom LCR

2018-05-22 Thread KamDev Essa
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 wrote:

Re: [SR-Users] Best way to implement custom LCR

2018-05-22 Thread Alex Balashov
On Tue, May 22, 2018 at 07:21:02PM +, 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

Re: [SR-Users] Best way to implement custom LCR

2018-05-22 Thread Alex Balashov
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 +, KamDev Essa wrote: > Awesome. Where can I get info on shelling

Re: [SR-Users] Best way to implement custom LCR

2018-05-22 Thread KamDev Essa
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 wrote:

Re: [SR-Users] Best way to implement custom LCR

2018-05-22 Thread Alex Balashov
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

Re: [SR-Users] Best way to implement custom LCR

2018-05-22 Thread Henning Westerholt
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

Re: [SR-Users] Best way to implement custom LCR

2018-05-22 Thread 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    On Tuesday,

Re: [SR-Users] Best way to implement custom LCR

2018-05-22 Thread Alex Balashov
On Tue, May 22, 2018 at 06:47:33PM +, 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/,

[SR-Users] Best way to implement custom LCR

2018-05-22 Thread KamDev Essa
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

Re: [SR-Users] Any modules with LRN dipping capacity?

2018-05-22 Thread Alex Balashov
Also, 'rn' sounds like the LRN attribute as described in RFC 4694. That would be a SIP redirect, not an ENUM query. Are you sure you're not confused about which query interface you're using? Moreover, it's possible your LNP provider provides both redirect and ENUM-based query interfaces; that's

Re: [SR-Users] Any modules with LRN dipping capacity?

2018-05-22 Thread Alex Balashov
Right, but that doesn't answer my question. On Tue, May 22, 2018 at 05:30:16PM +, KamDev Essa wrote: > I need the "rn" from the answer back so that I can use that in my LCR > processing in case the TN is LNPed. Today there is a high percentage of LNP > TNs out there. > KD > On

Re: [SR-Users] Any modules with LRN dipping capacity?

2018-05-22 Thread KamDev Essa
I need the "rn" from the answer back so that I can use that in my LCR processing in case the TN is LNPed. Today there is a high percentage of LNP TNs out there. KD On Tuesday, May 22, 2018, 1:21:42 PM EDT, Alex Balashov wrote: What is queried when you use

Re: [SR-Users] Any modules with LRN dipping capacity?

2018-05-22 Thread Alex Balashov
What is queried when you use enum_query() as you'd expect to? You might have to take a packet capture to determine that. On Tue, May 22, 2018 at 05:18:50PM +, KamDev Essa wrote: > Thats fine. I can always add a host file entry for an IP. But I still do not > get where I need to have the

Re: [SR-Users] Any modules with LRN dipping capacity?

2018-05-22 Thread KamDev Essa
Thats fine. I can always add a host file entry for an IP. But I still do not get where I need to have the domain name in the request. Basically, how would I construct my enum_query to go to 1.1.1.1 and query the E.164 formatted TN. Or is that not how things work in Kamailio? KDOn Tuesday,

Re: [SR-Users] Any modules with LRN dipping capacity?

2018-05-22 Thread Alex Balashov
On Tue, May 22, 2018 at 05:00:30PM +, KamDev Essa wrote: > In my CLI dig query I use > dig @ > What enum_query would I use for a similar query in Kamailio. The usual expectation would be that the ENUM result would be interrogated through the DNS hierarchy exposed by the DNS resolvers

Re: [SR-Users] Any modules with LRN dipping capacity?

2018-05-22 Thread KamDev Essa
In my CLI dig query I use dig @ What enum_query would I use for a similar query in Kamailio. KD On Tuesday, May 22, 2018, 12:42:42 PM EDT, KamDev Essa wrote: This is awesome. Thanks. However, in the link you sent I do not see how to send the enum request to the

Re: [SR-Users] 300 Multiple Choices response engine

2018-05-22 Thread KamDev Essa
Awesome. Thanks. Will make sure I use that term.  This thread was very informative.  Thanks again KD On Tuesday, May 22, 2018, 12:30:08 PM EDT, Alex Balashov wrote: On Tue, May 22, 2018 at 04:24:35PM +, KamDev Essa wrote: >  Pardon my ignorance. You are

Re: [SR-Users] Any modules with LRN dipping capacity?

2018-05-22 Thread KamDev Essa
This is awesome. Thanks. However, in the link you sent I do not see how to send the enum request to the IP of my provider.  KD On Tuesday, May 22, 2018, 12:31:33 PM EDT, Alex Balashov wrote: The answer, then, smiles out straightforwardly:

Re: [SR-Users] Any modules with LRN dipping capacity?

2018-05-22 Thread Alex Balashov
The answer, then, smiles out straightforwardly: https://kamailio.org/docs/modules/5.1.x/modules/enum.html But a SIP redirect/RFC 4694 interface would be easier to deal with and is more commonplace. Neither require a special module. Modules perform technical functions that otherwise require a

Re: [SR-Users] 300 Multiple Choices response engine

2018-05-22 Thread Alex Balashov
On Tue, May 22, 2018 at 04:24:35PM +, KamDev Essa wrote: > Pardon my ignorance. You are right. I need to get my terms correct > for sure.  In a the Contact header for example  what > do you call the abc123 part?  So what  was tryng to say was that in a > standalone 300

Re: [SR-Users] Any modules with LRN dipping capacity?

2018-05-22 Thread KamDev Essa
ENUM On Tuesday, May 22, 2018, 12:21:31 PM EDT, Alex Balashov wrote: What is the nature of the dip interface? On Tue, May 22, 2018 at 04:18:37PM +, KamDev Essa wrote: > Are there any modules with LRN dipping capacity?. If not, whats the best way > we

Re: [SR-Users] 300 Multiple Choices response engine

2018-05-22 Thread KamDev Essa
Pardon my ignorance. You are right. I need to get my terms correct for sure.  In a the Contact header for example  what do you call the abc123 part?  So what  was tryng to say was that in a standalone 300 Multiple Choices only LCR solution I would send back the abc123 for the

Re: [SR-Users] Any modules with LRN dipping capacity?

2018-05-22 Thread Alex Balashov
What is the nature of the dip interface? On Tue, May 22, 2018 at 04:18:37PM +, KamDev Essa wrote: > Are there any modules with LRN dipping capacity?. If not, whats the best way > we can implement it as a bolt on. > KD > ___ > Kamailio (SER) -

[SR-Users] Any modules with LRN dipping capacity?

2018-05-22 Thread KamDev Essa
Are there any modules with LRN dipping capacity?. If not, whats the best way we can implement it as a bolt on. KD___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] 300 Multiple Choices response engine

2018-05-22 Thread KamDev Essa
If its a simple LCR solution returning Multiple routes I will only use a single $rU in the URI. Correct. I know your example maybe for follow me where we have different destinations.  KD On Tuesday, May 22, 2018, 11:56:18 AM EDT, Alex Balashov wrote: I

Re: [SR-Users] 300 Multiple Choices response engine

2018-05-22 Thread Alex Balashov
I don't know your logic for pulling your contacts? On Tue, May 22, 2018 at 03:52:30PM +, KamDev Essa wrote: > Why do I need to change the $rU (abc123 and def456) will it not always be > abc123 based on the $rU I get? > KD > On Tuesday, May 22, 2018, 11:40:02 AM EDT, Alex Balashov >

Re: [SR-Users] 300 Multiple Choices response engine

2018-05-22 Thread KamDev Essa
Why do I need to change the $rU (abc123 and def456) will it not always be abc123 based on the $rU I get? KD On Tuesday, May 22, 2018, 11:40:02 AM EDT, Alex Balashov wrote: On Tue, May 22, 2018 at 03:34:23PM +, KamDev Essa wrote: >  So append 

Re: [SR-Users] 300 Multiple Choices response engine

2018-05-22 Thread Alex Balashov
On Tue, May 22, 2018 at 03:34:23PM +, KamDev Essa wrote: > So append \r\n\r\n\r\n\r\n as needed? No. Grammatically, your options are either: append_to_reply("Contact: ;q=0.1\r\n"): append_to_reply("Contact: ;q=0.2\r\n"): ... Or:

Re: [SR-Users] 300 Multiple Choices response engine

2018-05-22 Thread KamDev Essa
So append \r\n\r\n\r\n\r\n as needed? KD On Tuesday, May 22, 2018, 11:18:20 AM EDT, Alex Balashov wrote: What do you mean by "engine"? You want to build a redirect server?   append_to_reply("Contact: \r\n");   sl_send_reply("300", "Multiple Choices");  

Re: [SR-Users] 300 Multiple Choices response engine

2018-05-22 Thread Alex Balashov
What do you mean by "engine"? You want to build a redirect server? append_to_reply("Contact: \r\n"); sl_send_reply("300", "Multiple Choices"); exit; ? On Tue, May 22, 2018 at 03:09:56PM +, KamDev Essa wrote: > Whats the best route to implement a basic 300 Multiple Choices response

[SR-Users] 300 Multiple Choices response engine

2018-05-22 Thread KamDev Essa
Whats the best route to implement a basic 300 Multiple Choices response engine. INVITE in 300 Multiple Choices out with choices in the response. I have a logic to generate my list choices, so a basic process would be better.  H ___ Kamailio (SER) -

[SR-Users] 2 pull requests: issue #1168 and another small issue

2018-05-22 Thread Valentin Christoph
Hi all, Issued two pull requests. Any comment welcome, in particular, whether it will be taken for master branch.. https://github.com/kamailio/kamailio/pull/1538 https://github.com/kamailio/kamailio/pull/1539 Kr Christoph The information contained in this e-mail message is privileged

Re: [SR-Users] I think I found issue to Kamailio not forwarding ACK sent to it by Asterisk

2018-05-22 Thread Wilkins, Steve
Got it! Thank you Federico! From: sr-users [mailto:sr-users-boun...@lists.kamailio.org] On Behalf Of Federico Cabiddu Sent: Tuesday, May 22, 2018 8:09 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] I think I found issue to Kamailio not

Re: [SR-Users] rtpp_test() in kamailio log

2018-05-22 Thread Giovanni Tommasini - evosip
Hi Federico, thanks for the reply; now it is clearer. I've 25 childrens -- Giovanni Tommasini | evosip web: evosip.cloud 2018-05-22 12:50 GMT+02:00 Federico Cabiddu : > Hi, > how many Kamailio childrens do you have? > Each child, as far as I am aware, will have

Re: [SR-Users] I think I found issue to Kamailio not forwarding ACK sent to it by Asterisk

2018-05-22 Thread Federico Cabiddu
You have to listen on two different ports and advertise them according to you routing if you have only one interface (IP) where your Kamailio is listening to. Cheers, Federico On Tue, May 22, 2018 at 2:02 PM, Wilkins, Steve wrote: > Good morning and thank you for your

Re: [SR-Users] I think I found issue to Kamailio not forwarding ACK sent to it by Asterisk

2018-05-22 Thread Wilkins, Steve
Good morning and thank you for your response. I thought that advertise took care of listening on Public and Private IP Address. I did try - listen=udp:Private-IP-Address:5060 advertise 34.226.187.61:5060 listen=udp:Public-IP-Address:5060 but I got errors without changing the port, My Asterisk

Re: [SR-Users] Kamailio sends SIP messages to old websocket after reconnection during call

2018-05-22 Thread Idris AVCI
Hi Daniel, Yes we do lookup(location) for the BYE message. We traced down the way BYE message flows and tried all possible route blocks for lookup(location) but nothing changed. When we check the AOR for the user after websocket reconnection we see the new valid connection only but

[SR-Users] htable - unable to update entry when event_route[htable:expired:] is executed

2018-05-22 Thread David Heath
Hi, Looking for some help/ advice on updating the expiration timer/ values in a hash table when when [htable:expired:] occurs. On startup my script successfully reads in a set of entries from a DB; I also know from testing/ tracing that I can add new entries to the hash table in

Re: [SR-Users] rtpp_test() in kamailio log

2018-05-22 Thread Federico Cabiddu
Hi, how many Kamailio childrens do you have? Each child, as far as I am aware, will have its own check for rtpengine. Bests, Federico On Tue, May 22, 2018 at 12:34 PM, Giovanni Tommasini - evosip < giovanni.tommasini@evosip.cloud> wrote: > Hi guys, > > I've a question on using rtpengine with

Re: [SR-Users] JSON RPC Error: LUMP_RPL_BODY already added!

2018-05-22 Thread Asgaroth
Hi Daniel, Thsnk for the suggestion, I will load the debugger module in the comming days and come back to you with the information. Thanks On 18/05/18 13:52, Daniel-Constantin Mierla wrote: Hello, this sounds like the body for reply was already set. Can you enable cfgtrace in debugger

[SR-Users] rtpp_test() in kamailio log

2018-05-22 Thread Giovanni Tommasini - evosip
Hi guys, I've a question on using rtpengine with kamailio *scenario*: kamailio istance with rtpengine enabled and configured in localhost (but with a remote rtpengine is the same) modparam("rtpengine", "rtpengine_sock","udp:localhost:2") kamailio version 4.4.6 + rtpengine version 6.3.0.0

Re: [SR-Users] I think I found issue to Kamailio not forwarding ACK sent to it by Asterisk

2018-05-22 Thread Federico Cabiddu
Good morning, so, if I understand correctly Kamailio is listening on a single interface which is natted. You need two R-R, one with the public and one with the private IP. You also need to put Kamailio on listen on two different ports and use the listen directive along with its advertise