Re: [SR-Users] Backing up htable to SQL table ...

2012-03-07 Thread Daniel-Constantin Mierla
Hello, you have to set dbmode=1 when defining the hash table: http://kamailio.org/docs/modules/stable/modules_k/htable.html#id2541457 Cheers, Daniel On Thu, Mar 8, 2012 at 4:48 AM, Krishna Kurapati wrote: > Any help on how to backup the htable content to database table? > > Thanks > > On Tue,

Re: [SR-Users] Backing up htable to SQL table ...

2012-03-07 Thread Krishna Kurapati
Any help on how to backup the htable content to database table? Thanks On Tue, Mar 6, 2012 at 5:28 PM, Krishna Kurapati wrote: > I did little more digging into htable source code. It looks like syncing > to database is happening when the module is being > destroyed. > > To see if this is workin

Re: [SR-Users] default IP to forward TCP request

2012-03-07 Thread Laurent Schweizer
Thanks. Laurent 2012/3/7 Klaus Darilion > http://www.kamailio.org/wiki/**cookbooks/3.2.x/core#tcp_** > source_ipv4_tcp_source_ipv6 > > On 07.03.2012 16:40, Laurent Schweizer wrote: > >> Hello all, >> >> I have a

Re: [SR-Users] Rewrite $tU

2012-03-07 Thread Lucas Alvarez
The whole thing is I'm making routing decisions adding prefixes to usernames, for example, suppose I have two boxes: box01 and box02. If I want to dial to an extension in box02 from and extension registered in box01 I was prefixing the box02 to the username. When the call hits kamailio I check if t

Re: [SR-Users] Rewrite $tU

2012-03-07 Thread Andrew Pogrebennyk
On 03/07/2012 07:37 PM, Lucas Alvarez wrote: > I want rewrite $tU but I'm not being able, I'm doing the following: > > remove_hf("To"); > insert_hf("To: sip:$rU@$rd\r\n", "From"); > > Then I'm printing $tU and it is still having the previous value, any > help will be appreciated. > Thanks in

Re: [SR-Users] Rewrite $tU

2012-03-07 Thread Dani Popa
well, you are right, kamailio doesn't have uac_replace_to . Dani On Wed, Mar 7, 2012 at 8:43 PM, Alex Balashov wrote: > On 03/07/2012 01:41 PM, Dani Popa wrote: > > I think you should use uac_replace_from/uac_replace_**to. >> > > http://www.kamailio.org/docs/**modules/3.2.x/modules_k/uac.**ht

Re: [SR-Users] Rewrite $tU

2012-03-07 Thread Alex Balashov
On 03/07/2012 01:41 PM, Dani Popa wrote: I think you should use uac_replace_from/uac_replace_to. http://www.kamailio.org/docs/modules/3.2.x/modules_k/uac.html Where do you see uac_replace_to()? :) -- Alex Balashov - Principal Evariste Systems LLC 260 Peachtree Street NW Suite 2200 Atlanta,

Re: [SR-Users] Rewrite $tU

2012-03-07 Thread Dani Popa
Hi, I think you should use uac_replace_from/uac_replace_to. Dani On Wed, Mar 7, 2012 at 8:37 PM, Lucas Alvarez wrote: > I want rewrite $tU but I'm not being able, I'm doing the following: > > remove_hf("To"); > insert_hf("To: sip:$rU@$rd\r\n", "From"); > > Then I'm printing $tU and it is s

[SR-Users] Rewrite $tU

2012-03-07 Thread Lucas Alvarez
I want rewrite $tU but I'm not being able, I'm doing the following: remove_hf("To"); insert_hf("To: sip:$rU@$rd\r\n", "From"); Then I'm printing $tU and it is still having the previous value, any help will be appreciated. Thanks in advance. Lucas Alvarez _

Re: [SR-Users] Rewrite $tU

2012-03-07 Thread Alex Balashov
Note that proxies shouldn't be doing that. On 03/07/2012 01:34 PM, Lucas Alvarez wrote: I want rewrite $tU but I'm not being able, I'm doing the following: remove_hf("To"); insert_hf("To: sip:$rU@$rd\r\n", "From"); ___ SIP Express Router (S

[SR-Users] Rewrite $tU

2012-03-07 Thread Lucas Alvarez
I want rewrite $tU but I'm not being able, I'm doing the following: remove_hf("To"); insert_hf("To: sip:$rU@$rd\r\n", "From"); ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip

Re: [SR-Users] Limiting registrations to known users without auth

2012-03-07 Thread Ovidiu Sas
db_text doesn't have sql capabilites (I think it should be mentioned in the documentation). Also, it should not crash too (this is a bug that needs to be addressed - please open a bug and provide a backtrace). If you don't want to use a "true"db, you can try to use sqlite: http://kamailio.org/docs

Re: [SR-Users] Limiting registrations to known users without auth

2012-03-07 Thread Pedro Antonio Vico Solano
Thanks for the clarification, Daniel. I've tried the 'sqlops' solution but there is something wrong. Is sqlops compatible with the db_text DB? I've tried: modparam("sqlops","sqlcon","ca=>text:///etc/kamailio/dbtext") ... sql_query("ca", "select * from uri", "ra"); xlog("rows: $dbr(ra=>rows) cols

Re: [SR-Users] default IP to forward TCP request

2012-03-07 Thread Klaus Darilion
http://www.kamailio.org/wiki/cookbooks/3.2.x/core#tcp_source_ipv4_tcp_source_ipv6 On 07.03.2012 16:40, Laurent Schweizer wrote: Hello all, I have a linux server with different IP. eth0 -> 10.2.2.4 eth0:1 -> 10.2.2.5 I have kamailio listening on IP: listen=udp:10.2.2.5:5060 listen=tcp:10.2.

[SR-Users] default IP to forward TCP request

2012-03-07 Thread Laurent Schweizer
Hello all, I have a linux server with different IP. eth0 -> 10.2.2.4 eth0:1 -> 10.2.2.5 I have kamailio listening on IP: listen=udp:10.2.2.5:5060 listen=tcp:10.2.2.5:5060 and in the script I do : rewritehostport("10.2.2.10:5060;transport=tcp"); if (!t_relay()) {

[SR-Users] Advice on placement of t_replicate (REGISTER)

2012-03-07 Thread Asgaroth
Hi Guru's, I'd just like some advice on t_replace and its placement in the routing script. A lot of examples show the following setup: save("location"); t_replicate("backup_server"); Would it not be wiser to have something like: if (save("location")) { t_replcate("backup_server"); } Woul

Re: [SR-Users] sr-users Digest, Vol 82, Issue 21

2012-03-07 Thread Javier Gallart
Hello this is what I normally use: if (defined $var(x)) {...} Regards Javi > -- > > Message: 4 > Date: Tue, 6 Mar 2012 20:05:32 -0600 > From: Krishna Kurapati > Subject: [SR-Users] Improving Kamailo configuration parser ... > To: kamailio users > Message-ID: >

Re: [SR-Users] siptrace and duplicate_uri - not forwarding the packets

2012-03-07 Thread Mino Haluz
Hm, the same settings works on testing 3.2.1. But this is not the solution - I have to get it working on 3.2.0... On Tue, Mar 6, 2012 at 5:16 PM, Mino Haluz wrote: > Hi, > > I have siptrace working but when I set duplicate_uri, no packet is sent to > the destination. Was there some bug fix or an