Re: [SR-Users] msilo

2016-11-26 Thread Slava Bendersky
Hello Daniel, I am trying more simple example of $dbr in REGISTER first. Insert into location temporary data. The problem is not looping though all entries in database only last one. Which compare same entry 100 times. if(is_method("REGISTER")) { add_path_received(); xlog("L_INFO", "MSILO:

Re: [SR-Users] msilo

2016-11-26 Thread Slava Bendersky
Ok lua works right now. I was need remove "" in the value. Slava From: "volga629" To: "sr-users" Sent: Sunday, 27 November, 2016 00:29:39 Subject: Re: [SR-Users] msilo Hello Everyone, I tried use sr.pv.sets, but not sure how to pass value to it. #!/usr/bin/lua math.randomseed(os.tim

Re: [SR-Users] msilo

2016-11-26 Thread Slava Bendersky
Hello Everyone, I tried use sr.pv.sets, but not sure how to pass value to it. #!/usr/bin/lua math.randomseed(os.time()) ruid = string.format("uloc-%08x-%03x-%x", math.random(0x), math.random(0xfff), math.random(0xf)) print(ruid) ---> Works sr.pv.sets("$var(ruid)", "ruid") ---> In ka

Re: [SR-Users] msilo

2016-11-26 Thread Slava Bendersky
Hello Everyone, Can't find how actually return actual value from lua script not 1. Because my setup is pass through REGISTER to B2BUA, I can't use registrar module. I though insert manually, but location table require ruid entry. I installed small lua script to generate it. Not sure if this goo

[SR-Users] Balancer with Dispacther Module

2016-11-26 Thread Rodrigo Moreira
I need help. I'm building a load balancer using the dispatcher. It does NAT with too many SIP Servers. But when the balancer receives an ACK from UAC, it immediately returns the message "404 Not Here" to UAC. Help me solve this, since this message (ACK) has to be forwarded to SIP Servers and fina