Re: [SR-Users] XMLRPC problem

2014-08-15 Thread Kelvin Chua
forgot to give feedback on this issue, here's a patch. --- modules/htable/htable.c 2014-08-15 23:49:34.064455715 -0700 +++ modules/htable.c 2014-08-15 23:50:17.640626126 -0700 @@ -1105,7 +1105,7 @@ } rpc_export_t htable_rpc[] = { - {"htable.dump", htable_rpc_dump, htable_dump_doc, 0}, + {"htab

[SR-Users] event_route xhttp:request

2014-08-15 Thread Kamrul Khan
i am trying to connect to my kamailio through websocket. I added the below code in my config file: event_route[xhttp:request] { xlog("websocket connection request"); set_reply_close(); set_reply_no_connect(); if (ws_handle_handshake()) { exit;

[SR-Users] location of log file

2014-08-15 Thread Kamrul Khan
Hi, Im new to kamailio. Can someone tell me where to find the logs (from xlog() or log() ) ? thanks in advanced ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-route

[SR-Users] unknown command , missing loadmodule?

2014-08-15 Thread Satish Patel
What is this? I have acc.so module loaded but still getting this error. I am running opensip 1.11 root@sip:~# opensips -c -f /etc/opensips/opensips.cfg Aug 14 10:42:49 [7180] CRITICAL:core:yyerror: parse error in config file /etc/opensips/opensips.cfg, line 252, column 31-32: unknown command , mi

Re: [SR-Users] Text Operations on a Message

2014-08-15 Thread Alex Balashov
Sure thing. The main issue you were having is access to the information you want in the part of the message body where you want it. Assuming you can get that and that it's formatted in a way that the transformation functions in Kamailio can operate on it, i.e. split by delimiter versus regex

Re: [SR-Users] Text Operations on a Message

2014-08-15 Thread AliReza Khoshgoftar Monfared
Awesome, Thanks very much On Fri, Aug 15, 2014 at 2:56 PM, Alex Balashov wrote: > On 08/15/2014 02:54 PM, AliReza Khoshgoftar Monfared wrote: > > Awesome, and I assume to recover the integer value, I need sth like, as >> well: >> >> $var(param1) = $(var(param1){s.int }); >>

Re: [SR-Users] Text Operations on a Message

2014-08-15 Thread Alex Balashov
On 08/15/2014 02:54 PM, AliReza Khoshgoftar Monfared wrote: Awesome, and I assume to recover the integer value, I need sth like, as well: $var(param1) = $(var(param1){s.int }); Yep. In fact, you can chain transformations: $(hdr(X-AliReza-Custom-Header){s.select,0,;}{s.in

Re: [SR-Users] Text Operations on a Message

2014-08-15 Thread AliReza Khoshgoftar Monfared
Awesome, and I assume to recover the integer value, I need sth like, as well: $var(param1) = $(var(param1){s.int}); Thanks very much, Alireza On Fri, Aug 15, 2014 at 2:48 PM, Alex Balashov wrote: > On 08/15/2014 02:43 PM, AliReza Khoshgoftar Monfared wrote: > > Thanks very much Alex and H

Re: [SR-Users] Handling 407 reply

2014-08-15 Thread Yuriy Gorlichenko
Ok. I try to include uac_auth() at my routes ( I include modparam("uac","credential","username:domain:password") modparam("uac","auth_realm_avp","$avp(i:10)") modparam("uac","auth_username_avp","$avp(i:11)") modparam("uac","auth_password_avp","$avp(i:12)") ). As I read this function must be at

Re: [SR-Users] Text Operations on a Message

2014-08-15 Thread Alex Balashov
On 08/15/2014 02:43 PM, AliReza Khoshgoftar Monfared wrote: Thanks very much Alex and Hugh, I think what Hugh mentioned is the best way to process text in Kamailio without relying on an external tool and it's good to know it, and Alex's suggestion is great for transferring a single number. It

Re: [SR-Users] Rate Limiting with Kamailio

2014-08-15 Thread AliReza Khoshgoftar Monfared
Thanks Daniel and Alex, I will submit a request for it. It will definitely be a helpful addition as it helps people implement various overload control mechanism where many of them require tuning the rate. In the meantime I will do as Alex suggested to use my own counters to keep track of messages

Re: [SR-Users] Text Operations on a Message

2014-08-15 Thread AliReza Khoshgoftar Monfared
Thanks very much Alex and Hugh, I think what Hugh mentioned is the best way to process text in Kamailio without relying on an external tool and it's good to know it, and Alex's suggestion is great for transferring a single number. Cheers, Alireza On Fri, Aug 15, 2014 at 7:36 AM, Alex Balashov

[SR-Users] automatic string to int conversion for rtpengine flags failed

2014-08-15 Thread Olli Heiskanen
Hello, As outcome to my earlier sdp/rtp challenges I've upgraded my Asterisk version to 11.11.0 and still use a realtime integration with Kamailio. Now I face a somewhat different problem. With my setup I also changed from jssip client to a sip.js client in my websocket implementation. I cloned th

Re: [SR-Users] Kamamilio ignores RTP engine returned string

2014-08-15 Thread Olli Heiskanen
Hello, I don't know if this helps but I noticed you have a log entry: Unknown flag encountered: 'force' This is because rtpengine does not support this flag any more, it's mentioned in the rtpengine module documentation: http://kamailio.org/docs/modules/devel/modules/rtpengine.html#rtpengine.f.rt

Re: [SR-Users] Rate Limiting with Kamailio

2014-08-15 Thread Daniel-Constantin Mierla
Hello, On 14/08/14 18:49, AliReza Khoshgoftar Monfared wrote: Hi list, A quick question, What is the best way to limit the rate of the kamailio, Say I want it to process only 200 INVITEs per second I know this can be done using ratelimit module, but what if I want to change this rate dynamic

Re: [SR-Users] Handling 407 reply

2014-08-15 Thread Daniel-Constantin Mierla
Hello, On 15/08/14 00:24, Yuriy Gorlichenko wrote: Hello I use UAC module to register trunks to my providers. I've try to call to my provider. I send INVITE to my porvider and then It recieve me 407 reply "proxy authentication required". Offcourse I can handle this reply manualy (by adding head

Re: [SR-Users] can you define an array and loop in kamailio.cfg

2014-08-15 Thread Daniel-Constantin Mierla
Hello, you can use avp (or xavp) to simulate array: $avp(x) = 1; $avp(x) = 2; $var(i) = 0; while($(avp(x)[$var(i)])!=$null) { ... $var(i) = $var(i) + 1; } Important to know: - avps work as a stack, so the last added is first in the list/array and the first added is going to be the last

Re: [SR-Users] sipcapture and haproxy

2014-08-15 Thread Grant Bagdasarian
Awesome! Exactly what I was looking for! Thank you! Have a nice weekend, Grant -Original Message- From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Carsten Bock Sent: Friday, August 15, 2014 3:01 PM To: Kamailio (SER) - Users Mailin

Re: [SR-Users] sipcapture and haproxy

2014-08-15 Thread Carsten Bock
Hi Grant, check this: http://kamailio.org/docs/modules/devel/modules/db_cluster.html With this, you can write to several databases. Thanks, Carsten 2014-08-15 15:53 GMT+03:00 Grant Bagdasarian : > Hello, > > > > I just discovered HAproxy, and I was wondering if it is possible to use it > in com

Re: [SR-Users] sipcapture and haproxy

2014-08-15 Thread Carsten Bock
Hi Grant, Check this: 2014-08-15 15:53 GMT+03:00 Grant Bagdasarian : > Hello, > > > > I just discovered HAproxy, and I was wondering if it is possible to use it > in combination with the sipcapture module to store SIP messages on multiple > database servers? > > Has anyone done this before? > > >

[SR-Users] sipcapture and haproxy

2014-08-15 Thread Grant Bagdasarian
Hello, I just discovered HAproxy, and I was wondering if it is possible to use it in combination with the sipcapture module to store SIP messages on multiple database servers? Has anyone done this before? Regards, Grant ___ SIP Express Router (SER) a

[SR-Users] can you define an array and loop in kamailio.cfg

2014-08-15 Thread ANTHONY HESNAUX
hello all, Can you define an array and a loop in kamailio.cfg not work $var(i) = 0; tab[0]="192.168.0.2"; tab[1]="192.168.0.3 »; while($var(i)<2) { $var(rip) = $tab[$var(i)]; $uac_req(method)="REGISTER »; $uac_req(ruri)="sip:" + $var(rip) + ":" + $sel(cfg_get.a

Re: [SR-Users] New Kamailio module Obfuscate

2014-08-15 Thread Muhammad Shahzad
That's great. Again thank you so much for you help and cooperation. Thank you. On Fri, Aug 15, 2014 at 4:25 PM, Daniel-Constantin Mierla wrote: > OK, I've just pushed the patch to master branch -- thanks for this > contribution. > > Cheers, > Daniel > > > On 14/08/14 21:45, Muhammad Shahzad

Re: [SR-Users] what language is using in kamailio.cfg

2014-08-15 Thread Daniel Tryba
On Friday 15 August 2014 12:55:46 ANTHONY HESNAUX wrote: > hello every body, > I would like to know what language is using in Kamailio.cfg because I don’t > arrive to create a loop thank you On http://www.kamailio.org/wiki/cookbooks/4.1.x/core#script_statements you can see the following control st

Re: [SR-Users] Text Operations on a Message

2014-08-15 Thread Alex Balashov
Hello AliReza, On 08/15/2014 12:13 AM, AliReza Khoshgoftar Monfared wrote: Now a general question ( or request for a word of advice :) ): if you have ultimate flexibility and want to send an integer from one proxy to another. What functions ( modules ) are the best to append and recover it? ( i

Re: [SR-Users] what language is using in kamailio.cfg

2014-08-15 Thread Daniel-Constantin Mierla
Hello, it is a custom programming language (developed from scratch, started back in 2001, tailored for SIP routing needs). The only loop you can do for the moment is with 'while': - http://www.kamailio.org/wiki/cookbooks/4.1.x/core#while You can also simulate via recursive calling of sub-ro

Re: [SR-Users] New Kamailio module Obfuscate

2014-08-15 Thread Daniel-Constantin Mierla
OK, I've just pushed the patch to master branch -- thanks for this contribution. Cheers, Daniel On 14/08/14 21:45, Muhammad Shahzad wrote: Fixed as discussed, webrtc.voip-demos.com/0001-added-support-for-network-io-intercept.patch

[SR-Users] what language is using in kamailio.cfg

2014-08-15 Thread ANTHONY HESNAUX
hello every body, I would like to know what language is using in Kamailio.cfg because I don’t arrive to create a loop thank you anthony ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lis

Re: [SR-Users] Text Operations on a Message

2014-08-15 Thread Waite, Hugh
I think my keyboard battery is failing, it keeps dropping characters… Here’s a better example. $var(data) = $(rb{re.subst,/^rate is ([0-9]+).*$/\1/}); Regards, Hugh From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Waite, Hugh Sent: 15 Augu

[SR-Users] RPMs - yum repositories

2014-08-15 Thread Daniel-Constantin Mierla
Hello, courtesy lod.com (sponsoring the hardware and bandwidth) and Fred Posner helping with that, we got a server located in USA to use for the project. Main purpose for now is using it as a RPM repository, available as rpm.kamailio.org . The server takes the packages from open suse build

Re: [SR-Users] Text Operations on a Message

2014-08-15 Thread Waite, Hugh
Hi, The re.subst transformation can be used on variables to extract data. http://www.kamailio.org/wiki/cookbooks/devel/transformations#resubst_expression $rb is the variable that contains the request body, but you can use $var or $avp variables if doing multiple operations. $var

[SR-Users] create loop for REGISTER SEND in Kamailio.cfg

2014-08-15 Thread ANTHONY HESNAUX
hello everybody, I would like loop in kamailio.cfg because I want register soft phone on all asterisk system so I have this configuration but also if I want add another asterisk system my Kamailio.cfg #!define WITH_ASTERISK #!define WITH_CLUST_AST #!ifdef WITH_ASTERISK asterisk.bindip = "ast