Are there any modules with LRN dipping capacity?. If not, whats the best way we can implement it as a bolt on. KD
What is the nature of the dip interface?
On Tue, May 22, 2018 at 04:18:37PM +0000, 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) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
ENUM On Tuesday, May 22, 2018, 12:21:31 PM EDT, Alex Balashov abalashov@evaristesys.com wrote:
What is the nature of the dip interface?
On Tue, May 22, 2018 at 04:18:37PM +0000, 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) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
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 lot of work in route script, or where functionality is required that may not be exposed in generic route script constructs.
An LNP query via ENUM or SIP redirect may serve a business-specific function, but it's still just an ENUM query or a SIP redirect.
On Tue, May 22, 2018 at 04:25:36PM +0000, KamDev Essa wrote:
ENUM On Tuesday, May 22, 2018, 12:21:31 PM EDT, Alex Balashov abalashov@evaristesys.com wrote:
What is the nature of the dip interface?
On Tue, May 22, 2018 at 04:18:37PM +0000, 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) - 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
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 abalashov@evaristesys.com wrote:
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 lot of work in route script, or where functionality is required that may not be exposed in generic route script constructs.
An LNP query via ENUM or SIP redirect may serve a business-specific function, but it's still just an ENUM query or a SIP redirect.
On Tue, May 22, 2018 at 04:25:36PM +0000, KamDev Essa wrote:
ENUM On Tuesday, May 22, 2018, 12:21:31 PM EDT, Alex Balashov abalashov@evaristesys.com wrote: What is the nature of the dip interface?
On Tue, May 22, 2018 at 04:18:37PM +0000, 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) - 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
In my CLI dig query I use dig @<IP of my provider> <E.164 formatted request with TN> 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 kamdevessa@yahoo.com wrote:
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 abalashov@evaristesys.com wrote:
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 lot of work in route script, or where functionality is required that may not be exposed in generic route script constructs.
An LNP query via ENUM or SIP redirect may serve a business-specific function, but it's still just an ENUM query or a SIP redirect.
On Tue, May 22, 2018 at 04:25:36PM +0000, KamDev Essa wrote:
ENUM On Tuesday, May 22, 2018, 12:21:31 PM EDT, Alex Balashov abalashov@evaristesys.com wrote: What is the nature of the dip interface?
On Tue, May 22, 2018 at 04:18:37PM +0000, 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) - 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
On Tue, May 22, 2018 at 05:00:30PM +0000, KamDev Essa wrote:
In my CLI dig query I use dig @<IP of my provider> <E.164 formatted request with TN> 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 configured on the system globally, AFAIK.
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? KD On Tuesday, May 22, 2018, 1:06:52 PM EDT, Alex Balashov abalashov@evaristesys.com wrote:
On Tue, May 22, 2018 at 05:00:30PM +0000, KamDev Essa wrote:
In my CLI dig query I use dig @<IP of my provider> <E.164 formatted request with TN> 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 configured on the system globally, AFAIK.
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 +0000, 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 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? KD On Tuesday, May 22, 2018, 1:06:52 PM EDT, Alex Balashov abalashov@evaristesys.com wrote:
On Tue, May 22, 2018 at 05:00:30PM +0000, KamDev Essa wrote:
In my CLI dig query I use dig @<IP of my provider> <E.164 formatted request with TN> 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 configured on the system globally, AFAIK.
-- 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
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 abalashov@evaristesys.com wrote:
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 +0000, 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 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? KD On Tuesday, May 22, 2018, 1:06:52 PM EDT, Alex Balashov abalashov@evaristesys.com wrote: On Tue, May 22, 2018 at 05:00:30PM +0000, KamDev Essa wrote:
In my CLI dig query I use dig @<IP of my provider> <E.164 formatted request with TN> 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 configured on the system globally, AFAIK.
-- 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
Right, but that doesn't answer my question.
On Tue, May 22, 2018 at 05:30:16PM +0000, 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 Tuesday, May 22, 2018, 1:21:42 PM EDT, Alex Balashov abalashov@evaristesys.com wrote:
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 +0000, 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 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? KD On Tuesday, May 22, 2018, 1:06:52 PM EDT, Alex Balashov abalashov@evaristesys.com wrote: On Tue, May 22, 2018 at 05:00:30PM +0000, KamDev Essa wrote:
In my CLI dig query I use dig @<IP of my provider> <E.164 formatted request with TN> 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 configured on the system globally, AFAIK.
-- 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
-- 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
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 common. If that's the case, go with the redirect.
On Tue, May 22, 2018 at 05:30:16PM +0000, 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 Tuesday, May 22, 2018, 1:21:42 PM EDT, Alex Balashov abalashov@evaristesys.com wrote:
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 +0000, 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 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? KD On Tuesday, May 22, 2018, 1:06:52 PM EDT, Alex Balashov abalashov@evaristesys.com wrote: On Tue, May 22, 2018 at 05:00:30PM +0000, KamDev Essa wrote:
In my CLI dig query I use dig @<IP of my provider> <E.164 formatted request with TN> 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 configured on the system globally, AFAIK.
-- 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
-- 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
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; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; WARNING: recursion requested but not available
;; QUESTION SECTION: ;3.2.6.4.2.6.5.5.7.7.1.lrn.e164.arpa. IN NAPTR
;; ANSWER SECTION: 3.2.6.4.2.6.5.5.7.7.1.lrn.e164.arpa. 30 IN NAPTR 10 10 "u" "E2U+pstn:tel" "!^.*$!tel:+17755624623;rn=+17753840044;npdi!" .
;; Query time: 79 msec ;; SERVER: 108.166.172.197#53(108.166.172.197) ;; WHEN: Tue May 22 16:02:15 EDT 2018 ;; MSG SIZE rcvd: 130
So he needs to send the naptr query to a specific host, and to grab and unpack the answer to get the rn.
To the OP, I suspect the only good way to do that with kamailio is to use one of the Turing complete modules (perl, lua, python or the like) to write the necessary code.
Or write your own kamailio module.
The answer is likely the same when using a web-based api to do the dips.
-JimC
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 Cloos cloos@jhcloos.com wrote:
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; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; WARNING: recursion requested but not available
;; QUESTION SECTION: ;3.2.6.4.2.6.5.5.7.7.1.lrn.e164.arpa. IN NAPTR
;; ANSWER SECTION: 3.2.6.4.2.6.5.5.7.7.1.lrn.e164.arpa. 30 IN NAPTR 10 10 "u" "E2U+pstn:tel" "!^.*$!tel:+17755624623;rn=+17753840044;npdi!" .
;; Query time: 79 msec ;; SERVER: 108.166.172.197#53(108.166.172.197) ;; WHEN: Tue May 22 16:02:15 EDT 2018 ;; MSG SIZE rcvd: 130
So he needs to send the naptr query to a specific host, and to grab and unpack the answer to get the rn.
To the OP, I suspect the only good way to do that with kamailio is to use one of the Turing complete modules (perl, lua, python or the like) to write the necessary code.
Or write your own kamailio module.
The answer is likely the same when using a web-based api to do the dips.
-JimC
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 and mean. KD
On Tuesday, May 22, 2018, 4:29:53 PM EDT, KamDev Essa kamdevessa@yahoo.com wrote:
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 Cloos cloos@jhcloos.com wrote:
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; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; WARNING: recursion requested but not available
;; QUESTION SECTION: ;3.2.6.4.2.6.5.5.7.7.1.lrn.e164.arpa. IN NAPTR
;; ANSWER SECTION: 3.2.6.4.2.6.5.5.7.7.1.lrn.e164.arpa. 30 IN NAPTR 10 10 "u" "E2U+pstn:tel" "!^.*$!tel:+17755624623;rn=+17753840044;npdi!" .
;; Query time: 79 msec ;; SERVER: 108.166.172.197#53(108.166.172.197) ;; WHEN: Tue May 22 16:02:15 EDT 2018 ;; MSG SIZE rcvd: 130
So he needs to send the naptr query to a specific host, and to grab and unpack the answer to get the rn.
To the OP, I suspect the only good way to do that with kamailio is to use one of the Turing complete modules (perl, lua, python or the like) to write the necessary code.
Or write your own kamailio module.
The answer is likely the same when using a web-based api to do the dips.
-JimC