Re: [SR-Users] Performance Testing Kamailio 5.1 as SIP300 LCR on AWS - Recommendation on Tools and Methods

2018-05-24 Thread KamDev Essa
I am assuming the function http_query in kamailio utils is async. Is it not?  KD On Thursday, May 24, 2018, 6:19:33 PM EDT, Alex Balashov <abalas...@evaristesys.com> wrote: On Thu, May 24, 2018 at 10:15:42PM +, KamDev Essa wrote: >    - Is http_query a bad choice for pe

[SR-Users] Performance Testing Kamailio 5.1 as SIP300 LCR on AWS - Recommendation on Tools and Methods

2018-05-24 Thread KamDev Essa
I am currently setup with Kamailio 5.1 on an AWS t2.micro as a SIP300 LCR solution with a http_query call to an external resource (c# .NetCore app for LRN dip and MySQL Route choices) to get the contacts string, tag it to the Contact header an send 300.  Its been a while since I have

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

2018-05-22 Thread KamDev Essa
and mean.   KD  On Tuesday, May 22, 2018, 4:29:53 PM EDT, KamDev Essa <kamdeve...@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 t

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
er/src/modules/app_python/python_examples/handler.py 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 +, KamDev Essa wrote: >  On the app_python. How do I get

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

2018-05-22 Thread KamDev Essa
@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 +, KamDev Essa wrote: >  Awesome. Whe

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

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

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

2018-05-22 Thread KamDev Essa
, May 22, 2018, 2:53:53 PM EDT, Alex Balashov <abalas...@evaristesys.com> wrote: 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 Te

[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 KamDev Essa
ied 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 doma

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

2018-05-22 Thread KamDev Essa
, May 22, 2018, 1:06:52 PM EDT, Alex Balashov <abalas...@evaristesys.com> wrote: 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

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 <kamdeve...@yahoo.com> wrote: This is awesome. Thanks. However, in the link you sent I do not see how to send the enum r

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 <abalas...@evaristesys.com> wrote: On Tue, May 22, 2018 at 04:24:35PM +, KamDev Essa wrote: >  Pardon my ignor

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

2018-05-22 Thread KamDev Essa
quired 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 +, KamDev Essa wrote: >  ENUM >    On Tuesday, May 22, 2018,

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 <abalas...@evaristesys.com> 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

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

2018-05-22 Thread KamDev Essa
><abalas...@evaristesys.com> wrote:  >  >  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

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

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 <abalas...@evaristesys.com> 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 KamDev Essa
0", "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 > engine. INVITE in 300 Multiple Choices out with choices in the response. I > have a logic to gener

[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) -

Re: [SR-Users] cfg script 101

2018-05-17 Thread KamDev Essa
kbooks/devel/transformations#ssubstr_offset_length http://www.kamailio.org/wiki/cookbooks/devel/transformations#sselect_index_separator 3. You can browse documentation here: http://www.kamailio.org/wiki/#cookbooks Regards, Ovidiu Sas On Wed, May 16, 2018 at 5:59 PM, KamDev Essa <kamdeve...@

[SR-Users] cfg script 101

2018-05-16 Thread KamDev Essa
I have decided to do Hunting DIY. I needed some help with the cfg script part and using a database dip.  Say I do the db dip  sql_xquery("ca", "call usp_GetHuntBranches( '$rU', '$rd');", "ra");that will return the uri/q pairs and I will add using append_branch dynamically.  How do I do the

Re: [SR-Users] t_load_contacts() and t_next_contacts() guts

2018-05-16 Thread KamDev Essa
or not.  On Wednesday, May 16, 2018, 2:11:23 PM EDT, Juha Heinanen <j...@tutpro.com> wrote: KamDev Essa writes: >  I want to implement hunting dynamically. Say I have one Inbound # > 12345678909 that needs to hunt 4 extensions. 201, 202, 203 and > 204. where do I store th

Re: [SR-Users] t_load_contacts() and t_next_contacts() guts

2018-05-16 Thread KamDev Essa
, Juha Heinanen <j...@tutpro.com> wrote: KamDev Essa writes: >  But lookup looks at urloc (location) table but that is dynamic. How >    do I say these extensions need to be in this hunt group. What >    static table do I place that info in.  Sorry, I don't under

Re: [SR-Users] t_load_contacts() and t_next_contacts() guts

2018-05-16 Thread KamDev Essa
But lookup looks at urloc (location) table but that is dynamic. How do I say these extensions need to be in this hunt group. What static table do I place that info in.  On Wednesday, May 16, 2018, 1:00:31 PM EDT, Juha Heinanen <j...@tutpro.com> wrote: KamDev Essa writes: &

[SR-Users] Hunting - Dynamic logistics

2018-05-16 Thread KamDev Essa
So I finally got to the docs on hunting under the TM Modules and there was an awesome write up and it is making a lot more sense now.  Basic logic is to append_branch with your extensions and and manage serial and/or parallel forking by setting the q values. The script is static. Is there a

Re: [SR-Users] Contact Header

2018-05-16 Thread KamDev Essa
Thanks. That worked. H On Tuesday, May 15, 2018, 1:08:47 PM EDT, Alex Balashov <abalas...@evaristesys.com> wrote: You just need to use Record-Route and all will work as intended. On Tue, May 15, 2018 at 05:06:02PM +, KamDev Essa wrote: > My scenario is  > UA <

[SR-Users] Contact Header

2018-05-15 Thread KamDev Essa
My scenario is  UA <> Kamailio <> Freeswitch  UA calls a number. Kam delivers to FS and FS plays a wav file.  My problem is that Kam relays the 200 OK from FS back to UA without change and UA ACKs back to FS because the FS IP is in the Contact Header.  - Why does Kam not change the

[SR-Users] Parallel Forking - 1 Ring on extension to notify that Call Forward is in place

2018-05-14 Thread KamDev Essa
I am trying to simulate a Broadsoft feature that blips the extension with a single ring that basically heralds the user that their extension has CF turned on. I know parallel forking can do that. But how do I set the fr timer on the call to the extension @ just 1 ring (5 seconds) and let the

Re: [SR-Users] Tagging a call with custom pseudo variables - cfg 101

2018-05-14 Thread KamDev Essa
ormant the query is. Most real-world call processing involves at least one database touch point on every call. Our product does about five or six complex stored procedure calls and we can still do about 1000 CPS on most commodity hardware. On May 14, 2018 5:52:59 PM GMT+02:00, KamDev Essa &l

Re: [SR-Users] Tagging a call with custom pseudo variables - cfg 101

2018-05-14 Thread KamDev Essa
    $avp(call_type) = 'voicemail';   } -- Alex On Mon, May 14, 2018 at 01:56:53PM +, KamDev Essa wrote: > Being spoiled by Freeswitch profiles and dialplans, the stock 1 piece > Kamailio cfg file is cool @ first to get certain call flows knocked out but > quite a maze when you get

[SR-Users] Tagging a call with custom pseudo variables - cfg 101

2018-05-14 Thread KamDev Essa
Being spoiled by Freeswitch profiles and dialplans, the stock 1 piece Kamailio cfg file is cool @ first to get certain call flows knocked out but quite a maze when you get in deeper.  Right now, using the 1 piece stock cfg file, I am faced with the fact that my carrier outbound calls started

Re: [SR-Users] "No Answer" time out after number of rings

2018-05-11 Thread KamDev Essa
cifics. On May 11, 2018 5:31:27 AM GMT+02:00, KamDev Essa <kamdeve...@yahoo.com> wrote: >I have tried both if these before this post. I set it to timeout in 5 >seconds and I see the script INVITE again. The scriot should go to >Voicemail. But it does not.  >KD    On Thursday, May 1

Re: [SR-Users] "No Answer" time out after number of rings

2018-05-10 Thread KamDev Essa
I have tried both if these before this post. I set it to timeout in 5 seconds and I see the script INVITE again. The scriot should go to Voicemail. But it does not.  KDOn Thursday, May 10, 2018, 10:55:11 PM EDT, Alex Balashov wrote: But of course!

[SR-Users] "No Answer" time out after number of rings

2018-05-10 Thread KamDev Essa
Does Kamailio have any way to control how long it tries to connect per call?  KD___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] "Sleeping Giant - No Snore" Kam?

2018-05-09 Thread KamDev Essa
ules/htable.html#idp49461924 Lots of options... -- Alex [1] https://kamailio.org/docs/modules/5.1.x/modules/dispatcher.html [2] https://kamailio.org/docs/modules/5.1.x/modules/dispatcher.html#dispatcher.f.ds_is_from_list On Wed, May 09, 2018 at 09:04:16PM +0000, KamDev Essa wrote: >  easy. No

Re: [SR-Users] Is Media Release (signaling only) possible in Kamailio?

2018-05-09 Thread KamDev Essa
Update : I piggy backed Freeswitch to Kamailio and have resolved the issue. No media touching us now. Pros and Cons for doing that I know. But we have it working. Thanks for the dialog.  KD On Wednesday, May 9, 2018, 8:57:49 PM EDT, KamDev Essa <kamdeve...@yahoo.com> wrote: Re

Re: [SR-Users] Is Media Release (signaling only) possible in Kamailio?

2018-05-09 Thread KamDev Essa
09:15:48PM +0000, KamDev Essa wrote: >  Well then why does Inbound (from carrier to NATed UA) call work. Kam is >doing something clever there. Why not when sending the call out.  > KD   >    On Wednesday, May 9, 2018, 4:34:55 PM EDT, Alex Balashov ><abalas...@evaristesys.com> wrote:

Re: [SR-Users] Is Media Release (signaling only) possible in Kamailio?

2018-05-09 Thread KamDev Essa
Well then why does Inbound (from carrier to NATed UA) call work. Kam is doing something clever there. Why not when sending the call out.  KD   On Wednesday, May 9, 2018, 4:34:55 PM EDT, Alex Balashov wrote: Oh, the UAs are NAT'd? Yeah, you're going to need

Re: [SR-Users] "Sleeping Giant - No Snore" Kam?

2018-05-09 Thread KamDev Essa
easy. Not one of my domains or source IPs. Unless hackers is ex user they would never know my list.  KD On Wednesday, May 9, 2018, 4:53:21 PM EDT, Alex Balashov wrote: How would you define "foes" in a programmatic sense? :) That will dictate the answer.

[SR-Users] "Sleeping Giant - No Snore" Kam?

2018-05-09 Thread KamDev Essa
We have noticed pesky SIP hackers already knocking on our POC servers. Kam is holding the fort by sending out the proverbial 401/407 (snore). I can SQLOPS to do a dip to check destination domain or Source IP and nix the snore for alien requests, but wanted to know if there was a native way to

Re: [SR-Users] Is Media Release (signaling only) possible in Kamailio?

2018-05-09 Thread KamDev Essa
Update. I just checked inbound calls using the "rtpproxy clean" cfg.  Inbound calls from Carrier to UA work fine with bidirectional RTP. Its the outbound calls from UA to carrier that have a NAT issue. I am so close :)  KD On Wednesday, May 9, 2018, 4:29:39 PM EDT, KamDev Essa

Re: [SR-Users] Is Media Release (signaling only) possible in Kamailio?

2018-05-09 Thread KamDev Essa
to not load the rtpproxy module, and lose any rtpproxy_*() calls in the actual script. On May 9, 2018 3:26:43 PM EDT, KamDev Essa <kamdeve...@yahoo.com> wrote: >If I comment out the modparam("rtpproxy", "rtpproxy_sock", >"udp:127.0.0.1:7722") as suggest

Re: [SR-Users] Is Media Release (signaling only) possible in Kamailio?

2018-05-09 Thread KamDev Essa
e its Kam RTPProxy or bust. KD On Wednesday, May 9, 2018, 2:38:08 PM EDT, Alex Balashov <abalas...@evaristesys.com> wrote: Correct. So remove all semblance of any RTP proxy and the resulting behaviour will be exactly what you expect. On May 9, 2018 2:13:22 PM EDT, KamDev Essa <

Re: [SR-Users] Is Media Release (signaling only) possible in Kamailio?

2018-05-09 Thread KamDev Essa
ts yet to prove it ) that Kam anchors RTP @ port 7722.  KD   On Wednesday, May 9, 2018, 2:02:14 PM EDT, Alex Balashov <abalas...@evaristesys.com> wrote: That depends. Start with a more basic question: why do you need RTP relay in the middle at all? On May 9, 2018 1:54:55 PM ED

Re: [SR-Users] Is Media Release (signaling only) possible in Kamailio?

2018-05-09 Thread KamDev Essa
com> wrote: Ironically, nothing. Kamailio doesn't touch the respective parties' SDP unless you invoke an RTP relay (or something else like fix_nated_sdp()). On May 9, 2018 1:03:19 PM EDT, KamDev Essa <kamdeve...@yahoo.com> wrote: >What cfg files changes do I need to make

[SR-Users] Is Media Release (signaling only) possible in Kamailio?

2018-05-09 Thread KamDev Essa
What cfg files changes do I need to make to get Kamailio to be a signally only server, yet manipulate the SDP part of the INVITE message to allow remote parties to send media to each other? In Freeswitch terms "bypassmedia". KD___ Kamailio (SER) -

[SR-Users] How to change Calling Line ID in cr_route

2018-05-07 Thread KamDev Essa
I have cr_route working well. Only problem is that the username is sent off to the carrier and the 3 or 4 digit username appears as the callerid. Is there a module or scripts that can replace the username with a db table defined callerid. Say 202 maps to a 10 digit TN. KD  

Re: [SR-Users] Server-side NAT traversal with Kamailio

2018-05-07 Thread KamDev Essa
Awesome.  Thanks KD On Monday, May 7, 2018, 7:27:37 AM EDT, Alex Balashov wrote: Recent repeated questions on this topic have inspired a blog post: http://blog.csrpswitch.com/server-side-nat-traversal-with-kamailio-the-definitive-guide/ This is a rough cut,

[SR-Users] Need help with NAT Traversal - Changing INVITE OK contact to IP port to Contact in Location

2018-05-06 Thread KamDev Essa
The stock cfg states definng WITH_NAT and alls good. I did exactly that. However boing with stock cfg and WITH_NAT, the Registration info in location table is perfect with the UAs external IP address and port. This is not the case with the OK that in response to an INVITE. In the Contact of the

Re: [SR-Users] Private IP in Contact Header of 200 OK back to Carrier, so no ACK - Call drop

2018-05-04 Thread KamDev Essa
On Fri, May 04, 2018 at 04:51:48PM +0000, KamDev Essa wrote: > What more is required to get Kamilio IP and port in 200K to Carrier? That's not what you want to do, and it would not result in working behaviour. The Contact URIs need to be of the respective user agents for in-dialog requests to

Re: [SR-Users] Carrier IP on softphone call history !!!

2018-05-04 Thread KamDev Essa
, and there is no shortage of edge cases and complications with unexpected behaviour. My personal advice, which may differ to that of some of my list colleagues, would be to shunt your calls through a signalling-only B2BUA to solve this problem. -- Alex On Fri, May 04, 2018 at 02:51:36PM +, K

[SR-Users] Private IP in Contact Header of 200 OK back to Carrier, so no ACK - Call drop

2018-05-04 Thread KamDev Essa
Scenario  Carrier ===> Kamailio ===> Ext on domainINVITE ===>               > 200 OK <==                <=== Repeated because carrier pcap shows private 192.168 IP in Contact header. cfg has WITH_NAT setup. I assumed that all I need to do.  What more is required to get Kamilio IP and port in

[SR-Users] Carrier IP on softphone call history !!!

2018-05-04 Thread KamDev Essa
I have a simple call flow for Inbound call going to an extendion carrier call ===> WITH_ALIASDB ===> extension (on Xlite)  Works perfectly getting the call. Issue : - On Xlite I see the call as @. I dont want my customers to know what carrier I use and also I want to be in the loop for CDR.

Re: [SR-Users] Where do I get rpc documentation for Kamailio

2018-05-04 Thread KamDev Essa
Maybe this is a question for the develop mail list.  On Thursday, May 3, 2018, 2:02:43 PM EDT, Alex Balashov <abalas...@evaristesys.com> wrote: RPC commands are listed on every module's documentation. On May 3, 2018 1:59:07 PM EDT, KamDev Essa <kamdeve...@yahoo.com> wro

[SR-Users] Kamilio Hunting 101

2018-05-04 Thread KamDev Essa
With alias behind me I want to tackle a simple sequential and simulring (parallel). I see docs on using lookup() for simul and t_load_contacts but I don't see the basics on what table needs to be populated to get this working. Test set is basic : 1. 1234567890 from carrier2. Hunt to

Re: [SR-Users] How does one populate the dbaliases table and how do we initiate a reload.

2018-05-04 Thread KamDev Essa
I fugured out the issue. "Alias" is the ext and not the other way around. Works perfectly now. Thanks for the help. KD On Thursday, May 3, 2018, 5:43:03 PM EDT, KamDev Essa <kamdeve...@yahoo.com> wrote: I added alias and user via SQL insert (actual data changed for

Re: [SR-Users] How does one populate the dbaliases table and how do we initiate a reload.

2018-05-03 Thread KamDev Essa
EDT, Alex Balashov <abalas...@evaristesys.com> wrote: You populate the table by... using SQL, I suppose. This module does no in-memory caching, so table changes have immediate effect and no reload is required. On May 3, 2018 1:56:11 PM EDT, KamDev Essa <kamdeve...@yahoo.com>

[SR-Users] Where do I get rpc documentation for Kamailio

2018-05-03 Thread KamDev Essa
I would like to perform subscriber and domain adds and reloads programmatically. Where can I find info on kamailio APIs I could use? KD  ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org

[SR-Users] How does one populate the dbaliases table and how do we initiate a reload.

2018-05-03 Thread KamDev Essa
How do I add entries into the dbaliases table and how do I reload without restating Kamailio. KD___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

[SR-Users] Routing 10 Digit Inbound call to Registered User or VM server

2018-05-02 Thread KamDev Essa
I have Kamailio 5.1 installed and running with 2 extensions, 201 and 202 registered. Both extensions can call each other perfectly. Next I am workin on inbound calls.  I have an inbound call from a carrier that arrives perfectly but ends up in this area of the cfg case -3:                       

[SR-Users] Routing inbound call from carrier to user or voice mail

2018-05-02 Thread KamDev Essa
I have Kamailio 5.1 installed and running with 2 extensions, 201 and 202 registered. Both extensions can call each other perfectly. I have an inbound call from a carrier that arrives perfectly but ends up in this area of the cfg case -3:                                send_reply("404", "Not