Re: [SR-Users] Get value from header and check value type

2019-10-18 Thread Karsten Horsmann
Hi Joel, Thanks for your quick response. Okay then I went this way and convert it to int and do then the checking. The mailing list is a good source for best practices questions. I had some concerns about the core error warnings if the value is alphanumeric or something else not numeric. Cheers

Re: [SR-Users] Get value from header and check value type

2019-10-18 Thread Joel Serrano
Hey Karsten, I had a similar doubt and following Daniel's recommendation I went with the same route you did (using {s.int} to convert to integer). Quote from another thread: *"you can also convert the header value to integer using the transformation {s.int }, that's safer if you ne

[SR-Users] Get value from header and check value type

2019-10-18 Thread Karsten Horsmann
Hi List, I use Kamailio 5.2.x and I want to fetch an value from an X Header and do some checks like "is not empty" and "should be an integer". AFAIK per default all values are strings with the hdr function. What are the best way for some validations within Kamailio script language? if(is_prese

Re: [SR-Users] How to get the dispatcher value dynamically

2019-10-18 Thread David Villasmil
+1 Regards, David Villasmil email: david.villasmil.w...@gmail.com phone: +34669448337 On Fri, Oct 18, 2019 at 4:51 PM Karsten Horsmann wrote: > Hi, > > If you want to loadbalance the stuff dynamic to a group of target servers > you can use the dispatcher module. > > They are many HowTos for th

Re: [SR-Users] How to get the dispatcher value dynamically

2019-10-18 Thread Karsten Horsmann
Hi, If you want to loadbalance the stuff dynamic to a group of target servers you can use the dispatcher module. They are many HowTos for that and the module documentation is also the best way to get it working. Cheers Karsten Narayan P schrieb am Fr., 18. Okt. 2019, 14:02: > Hello, > > We a

Re: [SR-Users] need different Contact with the UAC modul.

2019-10-18 Thread Hans-Jürgen Brand
Hello Daniel,   Kamailio use only one socket. I will try the event_route[tm:local-request] and sent you an update.     Gesendet: Freitag, 18. Oktober 2019 um 08:43 Uhr Von: "Daniel-Constantin Mierla" An: "Kamailio (SER) - Users Mailing List" , "Hans-Jürgen Brand" Betreff: Re: [SR-Users] nee

[SR-Users] How to get the dispatcher value dynamically

2019-10-18 Thread Narayan P
Hello, We are using kamailio for load balancing as stateless proxy as mentioned below. {$du = "sip:192.168.130.XXX;transport=udp"; forward();} We have set $du to the correct media server value in the dispatcher module.Can you please tell me how to get the correct dispatcher value(Media server

[SR-Users] Cancel / OK handling

2019-10-18 Thread Oz Mortimer
Hi, I have an issue where a client is sending cancel after the call has been answered but before the client received the 200OK, I know they should then respond with a BYE based on the 200 final result, but they don’t (Meaning the call / billing stays up).. Is there a way I can timeout a call i

Re: [SR-Users] need different Contact with the UAC modul.

2019-10-18 Thread Henning Westerholt
Hello Daniel, Adding a new column would be another option indeed. Using the existing socket is also a valid approach, or as I mentioned yesterday, the existing local domain column. The socket usually contains an IP address, the domain usually a DNS name. Most people will probably have the l_do

Re: [SR-Users] Changing $fU or $fn in branch_route

2019-10-18 Thread Jurijs Ivolga
Hi Daniel, Now it is clear. :) Jurijs On Fri, Oct 18, 2019 at 12:08 AM Daniel-Constantin Mierla wrote: > Hello, > > changing content in SIP headers is practically done as two operations: > > - delete old value > - insert the new value where the old value started > > By doing two changes t

Re: [SR-Users] do MOD_ keywords exist?

2019-10-18 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Yes, you can add it there. Done. Juha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] Failed AKAv1-MD5 authentication with Boghe

2019-10-18 Thread Daniel-Constantin Mierla
Hello, try to set debug=3 in kamailio config files, restart, reproduce and see if you get any hints about why it fails via the syslog debug messages. Cheers, Daniel On 09.10.19 22:48, Bao, Yin wrote: > >   > > I have a Boghe (v2.0.153.836) working fine with Kamailio with MD5 > algorithm however

Re: [SR-Users] IMC through HTTP

2019-10-18 Thread Péter Barabás
Thanks. Peter From: Daniel-Constantin Mierla Reply to: "mico...@gmail.com" Date: 2019. October 18., Friday 9:20 To: "Kamailio (SER) - Users Mailing List" , Péter Barabás Subject: Re: [SR-Users] IMC through HTTP Hello, the module was developed with sip traffic in mind, so right now the comm

Re: [SR-Users] do MOD_ keywords exist?

2019-10-18 Thread Daniel-Constantin Mierla
On 18.10.19 09:13, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > >> Yes, MOD_xxx is defined automatically when module xxx is loaded. > Good. Would core cookbook define section be a place to document this? Yes, you can add it there. Cheers, Daniel -- Daniel-Constantin Mierla -- ww

Re: [SR-Users] IMC through HTTP

2019-10-18 Thread Daniel-Constantin Mierla
Hello, the module was developed with sip traffic in mind, so right now the commands to create rooms or add members to the room are taken from SIP message body. There are only a few commands that can be sent via RPC (which can be jsonrpc over http):   - https://www.kamailio.org/docs/modules/devel

Re: [SR-Users] do MOD_ keywords exist?

2019-10-18 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Yes, MOD_xxx is defined automatically when module xxx is loaded. Good. Would core cookbook define section be a place to document this? -- Juha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org http

Re: [SR-Users] do MOD_ keywords exist?

2019-10-18 Thread Daniel-Constantin Mierla
Yes, MOD_xxx is defined automatically when module xxx is loaded. In addition, for kamailio version x.y.z, the following defines are added automatically:     KAMAILIO_x     KAMAILIO_x_y     KAMAILIO_x_y_z For example, with kamailio v5.4.0:     KAMAILIO_5     KAMAILIO_5_4     KAMAILIO_5_4_0 You