[SR-Users] How do I make subst_hf() use variables in search (not replacement)?

2014-08-08 Thread Alex Villací­s Lasso
Consider the following snippet: if (is_present_hf("Contact")) { xlog("L_ALERT", "= reply to SUBSCRIBE has Contact: $ct\n"); xlog("L_ALERT", "= want to replace with $td\n"); xlog("L_ALERT", "= regexp to use is /$sel(cfg_get.asterisk.bindip):$sel(cfg_get.asteris

Re: [SR-Users] Accessing Message Buffer in Kamailio

2014-08-08 Thread AliReza Khoshgoftar Monfared
Thanks very much Daniel, So, I assume that to look at the congestion of the messages there are two options: 1) surveying the socket buffer using netstat 2) counting processed messages of Kamailio inside the route block And I assume that Ratelimit does the latter, right? ie it maintains a counter

Re: [SR-Users] Dispatcher caches IP

2014-08-08 Thread Paul Belanger
On Fri, Aug 8, 2014 at 2:21 AM, Daniel-Constantin Mierla wrote: > There is no db-only for dispatcher, you have to do reload. > > If you don't need keepalive mechanism, perhaps you can try loading the > addresses from database with sqlops and do the dispatching algorithm via > config file only. > I

Re: [SR-Users] New Kamailio module Obfuscate

2014-08-08 Thread Muhammad Shahzad
humm, original function must have got lost while moving the code to corex. Anyways, lets just remove this. I send you new patch. Is there anything else need to be changed/removed etc.? Thank you. On Fri, Aug 8, 2014 at 4:31 PM, Daniel-Constantin Mierla wrote: > > Here is the new function you

Re: [SR-Users] New Kamailio module Obfuscate

2014-08-08 Thread Muhammad Shahzad
patched updated, as discussed. http://webrtc.voip-demos.com/0001-added-support-for-network-io-intercept.patch Thank you. On Fri, Aug 8, 2014 at 4:37 PM, Muhammad Shahzad wrote: > humm, original function must have got lost while moving the code to corex. > Anyways, lets just remove this. I s

Re: [SR-Users] [Kamailio-4.1.4]Make Install Error

2014-08-08 Thread Djamel Bahamid
Hi Daniel, I always have the same error, even with the version 4.1.5, I understand nothing more and nevertheless I followed all the steps indicated on your site. I could share my screen (https://webconf.inserm.fr /cafe ==> Entered as guess) so as to see exactly the results of the executed co

Re: [SR-Users] ERROR: [resolve.c:1733]: sip_hostport2su(): ERROR: sip_hostport2su: could not resolve hostname: "df7jal23ls0d.invalid"

2014-08-08 Thread Manuel Camarg
Ok, I have adapted the default for set_contact_alias and handle_ruri_alias (you meant ruri not uri, right? i cant find handle_uri_alias in the nathelper module) Now I've tried some new scenarios: Using JSSIP instead of SIPML5 Calling with a peer connected to Asterisk directly to WebRTC client wor

Re: [SR-Users] New Kamailio module Obfuscate

2014-08-08 Thread Muhammad Shahzad
patched updated, as discussed. http://webrtc.voip-demos.com/0001-added-support-for-network-io-intercept.patch Thank you. ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.or

Re: [SR-Users] xhttp Module Version 4.1

2014-08-08 Thread Jonathan Hunter
Hello Daniel, Thanks for that. Is the best way to manipulate the contents of $rb to use transformations to extract particular information? I just want to search or extract what I get in $rb and use it for subsequent routing. Jon Date: Fri, 8 Aug 2014 13:33:20 +0200 From: mico...@gmail.com To: sr

Re: [SR-Users] New Kamailio module Obfuscate

2014-08-08 Thread Daniel-Constantin Mierla
Here is the new function you added: +int pv_get_raw_msg(sip_msg_t *msg, pv_param_t *param, + pv_value_t *res) +{ +str sb; +if(msg==NULL || res==NULL) +return -1; +sb.s = msg->buf; +sb.len = msg->len; +return pv_get_strval(msg, param, res, &sb); +} And next is th

Re: [SR-Users] xhttp Module Version 4.1

2014-08-08 Thread Daniel-Constantin Mierla
Hello, yes, $rb is the way to get the body. If you have big bodies and you use it in other expressions, you may need to increase the value for pv_buffer_size global parameter. Cheers, Daniel On 08/08/14 12:56, Jonathan Hunter wrote: Hi Guys, I am able to do this using *$rb* , is this the b

Re: [SR-Users] xhttp Module Version 4.1

2014-08-08 Thread Jonathan Hunter
Hi Guys, I am able to do this using $rb , is this the best method for this if I want to capture the details and manipulate or store accordingly into variables? Thanks Jon From: hunter...@hotmail.com To: sr-users@lists.sip-router.org Date: Fri, 8 Aug 2014 10:31:44 + Subject: [SR-Users] xhttp M

[SR-Users] xhttp Module Version 4.1

2014-08-08 Thread Jonathan Hunter
Hi All, I am using the xhttp module to receive and respond to HTTP requests to my kamailio instance, and I am trying to extract the body of the HTTP post sent into kamailio, so that I can store it in variables. Is this possible? I can send 200ok responses with content, this is working well, I ju

Re: [SR-Users] New Kamailio module Obfuscate

2014-08-08 Thread Muhammad Shahzad
humm, it is suppose to contain the original message that was feed to event_route[network:msg], it would be same as $mb till this route changes the contents of it stores the new contents in $mb, then the $mb and $raw_msg would contain different contents (original vs modified), this may be useful in