[SR-Users] Dispatcher - failure_route to specific node

2014-09-11 Thread Nicholas Gill
Hello sr-users, We're evaluating Kamailio to proxy to a number of FreeSWITCH backend servers with the dispatcher module. In some specific scenarios it matters to which node the request is sent. In these cases we've configured FS to respond to the invite with 302 and provide a custom header w

Re: [SR-Users] send_reply in app_java or app_mono?

2014-09-11 Thread Konstantin M.
Tom, please take a look to: git_root/modules/app_java/kamailio_java_folder/java-untested here you can see a part of code in Kamailio.java: // retval = KamExec("append_hf", "P-hint: VOICEMAIL\r\n"); so, you can execute kamailio command using KamExec(command, params) 2014-09-12 0:03 GMT+

Re: [SR-Users] app_java issue

2014-09-11 Thread Konstantin M.
Tom, could you please provide a chunk of java code with pure initialization? 2014-09-12 0:24 GMT+04:00 Daniel-Constantin Mierla : > I can't help more with configuring and using app_java, because I am not > using it. Maybe Konstantin can lead further. > > If you get a core dump, then you can sen

[SR-Users] New..... / kickoff point to learn Kamailio

2014-09-11 Thread Poekel
Hello, I am totally new/blank at kamailio and would like learn more but do not know where to start I would like to build a voicemail platform with kamailio and Asterisk. ( if i CAN use kamailio for this purpose) Someone creates a mailbox in Asterisk realtime for example through a w

Re: [SR-Users] kamctl alias add issue

2014-09-11 Thread Igor Potjevlesch
Hello Daniel, It works! Thank you. What went wrong ? Regards, Igor. De : sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] De la part de Daniel-Constantin Mierla Envoyé : jeudi 11 septembre 2014 22:52 À : Kamailio (SER) - Users Mailing List Objet

Re: [SR-Users] kamctl alias add issue

2014-09-11 Thread Daniel-Constantin Mierla
Hello, can you try setting: DEFAULT_Q="1.0" in your kamctlrc ? Cheers, Daniel On 11/09/14 22:38, Igor Potjevlesch wrote: Hello, Until the update to 4.1.5, when I send a command kamctl alias add like : kamctl alias add test@domain sip:test@domain, I got the following: 400 Too few or too

Re: [SR-Users] Kamailio 4.0.4 slow memory leak

2014-09-11 Thread Daniel-Constantin Mierla
I pushed a patch to master branch, hopefully fixing the leak: - http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7fb8c88c1d4aeb50d1e637697132ab0994dcdb28 Before backporting, I need to have it tested and be sure is not having side effects. For 4.0.x, if you installed from

[SR-Users] kamctl alias add issue

2014-09-11 Thread Igor Potjevlesch
Hello, Until the update to 4.1.5, when I send a command kamctl alias add like : kamctl alias add test@domain sip:test@domain, I got the following: 400 Too few or too many arguments Any idea of what can be the issue? Regards, Igor. ___ SI

Re: [SR-Users] send_reply in app_java or app_mono?

2014-09-11 Thread Daniel-Constantin Mierla
Again, I can't help on using app_java. As for app_mono, which I developed more as an experiment, not really using it, sending a reply from a mono script is not possible at this moment. I exported just a few functions to the mono module, sending replies are not among them. If someone wants to t

Re: [SR-Users] app_java issue

2014-09-11 Thread Daniel-Constantin Mierla
I can't help more with configuring and using app_java, because I am not using it. Maybe Konstantin can lead further. If you get a core dump, then you can send the backtrace taken with gdb to see where the crash happened. It is no longer the previous crash, which was a buffer overflow. Cheers

[SR-Users] send_reply in app_java or app_mono?

2014-09-11 Thread Tom Johnson
Is there a way to call the send_reply method of the route from either Java or csharp? As I have been having issues with the app_java, I have been looking at app_mono and it seems to have better access to the variables, etc. However, the SR.core.ModF only seems to take methods that do not tak

Re: [SR-Users] websocket:ws_current_connections vs. kamctl fifo ws.dump

2014-09-11 Thread Dunkley, Peter
websocket:ws_current_connections says how many WebSocket connections are currently open. It is perfectly possible for Kamailio to be doing SIP over both TCP and WebSockets, so counting the number of TCP connections may not tell you how many WebSocket connections are in use as the figure can inc

Re: [SR-Users] app_java issue

2014-09-11 Thread Tom Johnson
Sorry, did not see that it was actual a fix to the crash. Anyway, guess I’m having all sorts of issues with the app_java module. If the –Djava.class.path is not the first parameter, the classpath does not appear to be set. After switching to just one parameter, the “child_init” function appe

[SR-Users] Auto-response

2014-09-11 Thread Mick Stevens
Dear Sender, Thank you for your message. Unfortunately I am out of the office now, on vacation, until Monday 22nd September 2014.  If you wish to contact me during this period please send an SMS to +44 7967 594432. Rgds, Mick ___ SIP Express Router (

Re: [SR-Users] app_java issue

2014-09-11 Thread Konstantin M.
Hello, Please take a look to: Sep 11 12:48:12 MAIFREEPBX /usr/local/sbin/kamailio[870]: ERROR: app_java [java_support.c:174]: handle_exception(): Exception:#012Exception in thread "main" java.lang.NoClassDefFoundError: KamailioPlugin#012<>Exception in thread "main" java.lang.ClassNotFoundExcept

Re: [SR-Users] Kamailio 4.0.4 slow memory leak

2014-09-11 Thread Heenan, Timothy Steven
Thanks for your help Daniel! -Tim From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Sent: Thursday, September 11, 2014 9:59 AM To: Heenan, Timothy Steven; Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Kamailio 4.0.4 slow memory leak Short note to say that last log you sent

Re: [SR-Users] app_java issue

2014-09-11 Thread Daniel-Constantin Mierla
Can you try with the patch from next commit: - http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=commitdiff;h=a13e3b46dba4470deb748eec3b700386f453f6f9;hp=74f53b7d7f6ff00144152aff453e6b388447320c It has code indentation, as I needed to figure out the blocks there, effectively you hav

Re: [SR-Users] TLS Handshake failing with WSS

2014-09-11 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > > Are you sure you are using WSS with that config or just WS? > > The problem is I cant debug since I have no errors in regular log :( > > just seems a handshake issue > One thing I also noticed lately, if I am on https page and try to make a > ws (tcp) connec

Re: [SR-Users] Kamailio 4.0.4 slow memory leak

2014-09-11 Thread Daniel-Constantin Mierla
Short note to say that last log you sent had more leads, and apparently there is a leak at least in 4.0. I need a bit more time to look at it and check if still on master and 4.1 (hopefully event later today) - I will come back with an update about it soon. Daniel On 08/09/14 18:11, Daniel-

Re: [SR-Users] TLS Handshake failing with WSS

2014-09-11 Thread Daniel-Constantin Mierla
On 11/09/14 16:53, Manuel Camarg wrote: Daniel, websocket is not "downgradeable" under https, that's why I'm trying to make this work As I said in the first message here is the error log in the browser: In the Chrome console: /*__tsip_transport_ws_onerror */ /*__tsip_transport_ws_onclose */

Re: [SR-Users] TLS Handshake failing with WSS

2014-09-11 Thread Daniel-Constantin Mierla
Hello, On 10/09/14 23:15, Manuel Camarg wrote: Hello Juha They why you think i'm encountering this issue based on the beginning of this topic? http://lists.sip-router.org/pipermail/sr-users/2014-September/084699.html Daniel: > However, more recent versions of browsers don't work with that an

Re: [SR-Users] TLS Handshake failing with WSS

2014-09-11 Thread Manuel Camarg
Daniel, websocket is not "downgradeable" under https, that's why I'm trying to make this work As I said in the first message here is the error log in the browser: In the Chrome console: *__tsip_transport_ws_onerror * *__tsip_transport_ws_onclose * Regards, Manuel *Manuel Camargo* Teléfono: 6

Re: [SR-Users] TLS Handshake failing with WSS

2014-09-11 Thread Daniel-Constantin Mierla
On 11/09/14 16:30, Manuel Camarg wrote: I used jssip during testing. It doesn't differ much from sipml5 from regular operations, but it does not work with wss (at least with my current config, the mentioned before) Are you sure you are using WSS with that config or just WS? The problem is I c

Re: [SR-Users] TLS Handshake failing with WSS

2014-09-11 Thread Manuel Camarg
I used jssip during testing. It doesn't differ much from sipml5 from regular operations, but it does not work with wss (at least with my current config, the mentioned before) Are you sure you are using WSS with that config or just WS? The problem is I cant debug since I have no errors in regular l

Re: [SR-Users] How to increment dialog calee_cseq value when using t_uac_dlg via xmlrpc for generating INFO requests

2014-09-11 Thread Daniel-Constantin Mierla
Hello, good to hear you found a solution. You can create a wiki page on our project site if you want to share your experience, or if you write it in your own site/blog, you can list it in the wiki as a link. Cheers, Daniel On 11/09/14 13:06, Drazen Rep wrote: Hi, On Wed, Sep 10, 2014 a

Re: [SR-Users] websocket:ws_current_connections vs. kamctl fifo ws.dump

2014-09-11 Thread Daniel-Constantin Mierla
I was not checking so far the ws/wss connections, but you can probably rely on tcp stats, because ws/wss are on top of tcp layer. You can run the tcp-related rpc commands via kamcmd: - http://www.kamailio.org/docs/docbooks/4.1.x/rpc_list/rpc_list.html#core.tcp_info Cheers, Daniel On 10/09/1

Re: [SR-Users] How to increment dialog calee_cseq value when using t_uac_dlg via xmlrpc for generating INFO requests

2014-09-11 Thread Drazen Rep
Hi, On Wed, Sep 10, 2014 at 2:46 PM, Drazen Rep wrote: > > I am using Kamailio 4.1.1 and dlg_manage() function for processing SIP >> requests with dialog module. After call is established Kamailio is being >> used for generating in-dialog INFO request toward caller (using t_uac_dlg >> function v

Re: [SR-Users] Help to build a Kamailio SBC

2014-09-11 Thread Daniel-Constantin Mierla
Hello, understanding the config file is going to take some time, so it is unlikely many will have the spare time for it. You have to provide more specific details, like the sip trace (ngrep on kamailio server sip ports) for the issue, presenting what are the parties involved in sending and r

Re: [SR-Users] TLS Handshake failing with WSS

2014-09-11 Thread Daniel-Constantin Mierla
On 10/09/14 19:05, Juha Heinanen wrote: Daniel-Constantin Mierla writes: On the other hand, I remember that I tested with default example some time ago and worked. However, more recent versions of browsers don't work with that anymore. What browser (or wss client) are you using? i have used j

Re: [SR-Users] UAC module

2014-09-11 Thread Daniel-Constantin Mierla
Hello, On 11/09/14 10:03, Yuriy Gorlichenko wrote: Hello. I tried to use UAC module at my system for registration multiple providers, and call through it. When I implementing this at my cfg file I had some troubles: -- with Authentification at INVITE (using UAC_AUTH). IT does not send second

[SR-Users] Kamailio v4.2 - development frozen

2014-09-11 Thread Daniel-Constantin Mierla
Hello, development (master) branch of Kamailio enters now in pre-release phase for version 4.2.0. Therefore, no new feature should be pushed to master until we create a dedicated branch for 4.2 (expected to be in about 4 weeks or so). If in doubt to push or not a commit to master, push it fi

Re: [SR-Users] TLS Handshake failing with WSS

2014-09-11 Thread Waite, Hugh
Hi Manuel, If there is a websocket handshake error / incorrect port etc, then you will send an HTTP error and close the connection (otherwise non-websocket connections could use up resources). If the handshake is successful, then the connection is upgraded and no HTTP final response is ever se

[SR-Users] UAC module

2014-09-11 Thread Yuriy Gorlichenko
Hello. I tried to use UAC module at my system for registration multiple providers, and call through it. When I implementing this at my cfg file I had some troubles: -- with Authentification at INVITE (using UAC_AUTH). IT does not send second INVITE packet with www_auth header for some trunks (not