Re: [SR-Users] Kamailio Jabberd Integration

2010-09-16 Thread shoks
On Fri, Sep 17, 2010 at 10:10 AM, Alex Balashov wrote: > It would be helpful if you could expound in additional on what exactly you > tried and what did not work for you. First off, the Kamailio and Jabberd servers are on the same machine. I managed to separately make them work. Call setup betwe

Re: [SR-Users] Kamailio Jabberd Integration

2010-09-16 Thread Alex Balashov
It would be helpful if you could expound in additional on what exactly you tried and what did not work for you. On 09/16/2010 09:58 PM, shoks wrote: Hi, Has anyone managed to integrate Kamailio and Jabberd to support presence and messaging functions (XMPP). I've tried to setup based on notes

[SR-Users] Kamailio Jabberd Integration

2010-09-16 Thread shoks
Hi, Has anyone managed to integrate Kamailio and Jabberd to support presence and messaging functions (XMPP). I've tried to setup based on notes and emails that I found online, but still could'nt make it work. I appreciate if someone can share their configuration or give me a link. Thanks, sho ___

Re: [SR-Users] Stripping variable amount of digits

2010-09-16 Thread Iñaki Baz Castillo
2010/9/16 Daniel-Constantin Mierla : >  Hi Inaki, > > that works with string transformations: > - in older versions, use s.substr Opsss, I didn't read "offset and length can be PV as well" :) Thanks a lot. -- Iñaki Baz Castillo ___ SIP Express Rout

Re: [SR-Users] Stripping variable amount of digits

2010-09-16 Thread Daniel-Constantin Mierla
Hi Inaki, that works with string transformations: - in older versions, use s.substr - in last one there is s.strip Cheers, Daniel On 9/16/10 8:28 PM, Iñaki Baz Castillo wrote: 2010/9/16 Iñaki Baz Castillo: Hi, I get a prefix string from a database and store it in $var(prefix). Such prefix ca

Re: [SR-Users] Stripping variable amount of digits

2010-09-16 Thread Iñaki Baz Castillo
2010/9/16 Iñaki Baz Castillo : > Hi, I get a prefix string from a database and store it in > $var(prefix). Such prefix can contain any number of digits (no fixed > length). > Now I must to check if the RURI username begins with that prefix and > in that case strip it. > > I can get the first step (

[SR-Users] Stripping variable amount of digits

2010-09-16 Thread Iñaki Baz Castillo
Hi, I get a prefix string from a database and store it in $var(prefix). Such prefix can contain any number of digits (no fixed length). Now I must to check if the RURI username begins with that prefix and in that case strip it. I can get the first step (detect it) using pcre_match function: if

Re: [SR-Users] strange acc behavior?

2010-09-16 Thread Klaus Darilion
Am 16.09.2010 10:31, schrieb Daniel-Constantin Mierla: Hi Klaus, if you print the value of this avp before and after t_relay(), do you get different values? t_relay does not even return for ACK: if (is_method("INVITE")) { $avp(revdir) = 11; } if (is_method("ACK")) { $avp(re

Re: [SR-Users] Doubd about Dialplan module

2010-09-16 Thread Daniel-Constantin Mierla
On 9/8/10 11:14 AM, Raúl Alexis Betancor Santana wrote: On Miércoles 08 Septiembre 2010 10:02:14 Raúl Alexis Betancor Santana escribió: On Lunes 06 Septiembre 2010 17:06:41 Andrew Pogrebennyk escribió: On 06.09.2010 13:46, r...@dimension-virtual.com wrote: dpid priority matchop matchex match

Re: [SR-Users] strange acc behavior?

2010-09-16 Thread Daniel-Constantin Mierla
Hi Klaus, if you print the value of this avp before and after t_relay(), do you get different values? Cheers, Daniel On 9/8/10 1:58 PM, Klaus Darilion wrote: Hi! I use acc module with extra accounting. modparam("acc", "db_extra", "direction=$avp(direction)") I set $avp(direction) during

Re: [SR-Users] Kamailio 1.5.4 - Pike module ignoring remove_latancy parameter

2010-09-16 Thread Daniel-Constantin Mierla
Hello, can you get a verbose debug log (debug=4)? Thanks, Daniel On 9/10/10 1:58 PM, Miguel Baptista wrote: Hi All, I'm running kamailio-1.5.4-tls and I want to enable pike module in it. I did some test but it isn't working properly. I mean it isn't acting according to the /remove_latancy/

Re: [SR-Users] string manipulation from db

2010-09-16 Thread Daniel-Constantin Mierla
Hello, not sure if was worked in case you reported in the past. Please register a tracker issue every time you report a problem, otherwise may be lost: http://sip-router.org/tracker/ Thanks, Daniel On 9/12/10 11:24 PM, Grzegorz Stanislawski wrote: W dniu 2010-09-10 11:45, anthony thomas pi

Re: [SR-Users] 500 command not activated

2010-09-16 Thread Daniel-Constantin Mierla
Hello, have you configured domain module in caching mode? Cheers, Daniel On 9/15/10 10:44 PM, dotnetdub wrote: Hi All, Kamailio 3.0.3 kamctl domain show 500 command not activated however I can run kamctl domain showdb which dumps out the domains from the database. What am I missing? Tha

Re: [SR-Users] About avp's, var's, null, 0 and empty string

2010-09-16 Thread Daniel-Constantin Mierla
Hello, On 9/15/10 5:44 PM, Iñaki Baz Castillo wrote: 2010/9/15 Juha Heinanen: Iñaki Baz Castillo writes: I retrieve the value of an integer column in a MySQL table. In this case the value is NULL. I store the result in a $var: $var(client_max_calls) = $dbr(client=>[0,0]); But the stored

Re: [SR-Users] About avp's, var's, null, 0 and empty string

2010-09-16 Thread Iñaki Baz Castillo
2010/9/15 Iñaki Baz Castillo : > Conclusions: > > - $var cannot store null value. If so it converts it to 0. However this is not the case with sqlops module: I retrieve the value of an integer column in a MySQL table. In this case the value is NULL. I store the result in a $var: $var(client_ma

[SR-Users] About avp's, var's, null, 0 and empty string

2010-09-16 Thread Iñaki Baz Castillo
Hi, I would like to summarize how $avp's and $var's handle the null value, 0 and empty string. For this I've writen the following test I've checked in Kamailio 1.5.4: -- $var(null) = null; $avp(s:null) = null; $var(empty) = ""; $avp(s:empty) = ""; xlog(