Re: [SR-Users] Random number generation kamailio

2016-03-21 Thread Alex Balashov
Cibin, Yes, that is what $RANDOM is for. It returns a 32-bit signed integer (‎range 0 - 2^31), so you can divide it by the appropriate value to get something in the length range you're after. ‎ -- Alex Balashov | Principal | Evariste Systems LLC 1447 Peachtree Street NE, Suite 700 Atlanta, GA 30

[SR-Users] Random number generation kamailio

2016-03-21 Thread Cibin Paul
Hi, How can I generate a random number say of length 10-14 in Kamailio. Can I use cfgutils for this. Please advise Regards Cibin ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.s

[SR-Users] Database engine not found

2016-03-21 Thread Shiv Patidar
when i run this command kamctl fifo debug 6 then i got WARNING: database engine not found tried 'MYSQL' ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/

[SR-Users] Kamailio 4.3.x kamailio-redis RPM

2016-03-21 Thread Jay Patel
Is there any trusted yum repo which builds redis module RPM for EL6/CentOS? Seems like default make file does not build redis and it'snot published on rpm.kamailio.org. cnxcc will be added bonus. Thanks in advance. Regards, Jay ___ SIP Express Router

Re: [SR-Users] Kamailio 5.0 - B2BUA

2016-03-21 Thread Alex Balashov
Daniel, I'd be curious to know if you have any thoughts on this, although it is of course a very controversial idea. My personal philosophical position is very much against it. It's just not what Kamailio is. However, I see demand for it _everywhere_. -- Alex Balashov | Principal | Evariste

Re: [SR-Users] Kamailio 5.0 - Better way of dealing with stateless CANCELs

2016-03-21 Thread Alex Balashov
On 03/15/2016 05:29 AM, Daniel-Constantin Mierla wrote: Tracking only some routing info for invite to help with cancels can eventually done easier as suggested previously, even now. After considering what you have had to say on the complexities in TM, I agree. So, let's drop this item. -- A

Re: [SR-Users] Missing pipelimit values in data returned by JSONRPC-S

2016-03-21 Thread Daniel-Constantin Mierla
OK -- so all works, I backported to 4.4, will consider it for 4.3 with the next backports in that branch. Cheers, Daniel On 21/03/16 16:42, Brooks Bridges wrote: > Ergh... never mind, stupid typo on my part. It appears to be working. > > [root@dev-server ~]# curl -s --header 'Content-Type: appli

Re: [SR-Users] Kamailio 4.3.4: receive_msg(): no via found in reply

2016-03-21 Thread Daniel-Constantin Mierla
Hello, the forward() doesn't take variables as parameter, you have to set $ru or $du to the address where you want to send and then just use forward(). Also, rewrite*() functions do not work with variables. In assignments, inside the strings of expressions, the vars are not evaluated, you need t

Re: [SR-Users] Removing Via and Record-Route headers

2016-03-21 Thread Alex Balashov
I grant that the necessary statekeeping is technically possible with enough spiritual commitment, yes, but would repeat my entreatment to ask whether it should be done just because it can be done. Nothing to do with "RFC purity", just a question of best-practical solution with fewest failure m

Re: [SR-Users] Missing pipelimit values in data returned by JSONRPC-S

2016-03-21 Thread Brooks Bridges
Ergh... never mind, stupid typo on my part. It appears to be working. [root@dev-server ~]# curl -s --header 'Content-Type: application/json' --data-binary '{"jsonrpc": "2.0", "method": "pl.stats"}' http://1.2.3.4:5060/jsonrpc {"jsonrpc":"2.0","result":["PIPE: id=user_1 load=0 counter=0","PIPE:

Re: [SR-Users] Missing pipelimit values in data returned by JSONRPC-S

2016-03-21 Thread Brooks Bridges
Seems to have broken something. The CLI is returning as expected, but jsonrpc-s is throwing an error now. [root@dev-server pipelimit]# kamcmd pl.stats PIPE: id=user_1 load=0 counter=0 PIPE: id=user_2 load=0 counter=0 [root@dev-server pipelimit]# curl -s --header 'Content-Type: appli

[SR-Users] Kamailio Bridge

2016-03-21 Thread Nelson Migliaro
Hello, I am trying to set up a Kamailio in Bridge Mode with two interfaces using rtpproxy. The problem I have is SDP information port and IP is not updated from outside to inside. But on the other hand the SDP is rewrited from inside to outside. In the rtpproxy log I am seeing this error: Mar 2

Re: [SR-Users] Kamailio 4.3.4: receive_msg(): no via found in reply

2016-03-21 Thread Grant Bagdasarian
Hi Daniel, I've tried with htable implementation, but I can't seem to use a variable as the argument for the forward function. I've tried multiple possibilities: forward($avp(s:cancel_dst)); forward("$avp(s:cancel_dst)"); forward($var(cancel_dst)); forward("$var(cancel_dst)"); forward($sht(can

Re: [SR-Users] TCP connection select problem

2016-03-21 Thread 张顺通
Have provided Callid, thanks. register callid 2bbadd72-d733-434e-bd06-45d9ddb5289b a7fa5d8f-1e46-4605-9a6e-08751bc75fee call 626fec11-684b-1234-d0b9-ecf4bbde9ef8 2016-03-21 16:45 GMT+08:00 Daniel-Constantin Mierla : > Quickly looked at the file and I see several calls there. All of them are > e

Re: [SR-Users] Kamailio 4.3.4: receive_msg(): no via found in reply

2016-03-21 Thread Grant Bagdasarian
Hello Daniel, Thank you for figuring this out and explaining it to me! This has helped me a lot! Regards, Grant From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Sent: Friday, March 18, 2016 4:33 PM To: Grant Bagdasarian ; Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] K

Re: [SR-Users] What to read after RFC 3261 to get started with

2016-03-21 Thread Oivvio Polite
On ons, mar 16, 2016 at 08:46:22 +0100, Giovanni Maruzzelli wrote: > There is also a most exquisite book, written by Daniel and Ramona for > Asipto, called "Sip Routing with Kamailio", that is just what you are > looking for. > > Check it out, and buy it here: > > https://www.asipto.com/sw/kamail

Re: [SR-Users] LCR prefix based

2016-03-21 Thread Daniel-Constantin Mierla
Hello, did you use t_relay() after all the lcr logic? Cheers, Daniel On 10/03/16 23:19, Roberto Innaimi wrote: > Hi to all, > > i want to use prefix based LCR routing, but for some reason, something > is not working as expected. > > Can anyone help me? > > This is the LCR configuration: > > >

Re: [SR-Users] Problem with Freeswitch with IP public and Kamailio behind NAT

2016-03-21 Thread Daniel-Constantin Mierla
Hello, On 11/03/16 05:17, Hai Bui Duc Ha wrote: > [] > View console log on Freeswitch, I see the ecallmgr response to FS3: > > 1. > bridge({outbound_redirect_fatal="false",call_timeout=20,originate_timeout=20,local_var_clobber="true"}[ecallmgr_Authorizing-ID="71310939684a2c8acc4e0e6dff1be6c2",ec

Re: [SR-Users] Kamailio behind NAT

2016-03-21 Thread Daniel-Constantin Mierla
Hello, do you have port 5060 forwarding from firewall to kamailio local IP address? Cheers, Daniel On 17/03/16 08:24, Safdar Khan wrote: > Hello > I have been running kamailio on local network including rtpengine and > freeswitch. > Now i am configuring kamailio with my public IP(trying with sto

Re: [SR-Users] TCP connection select problem

2016-03-21 Thread Daniel-Constantin Mierla
Quickly looked at the file and I see several calls there. All of them are exposing the issue? Or can you give the call-id of the call that didn't work fine? I don't want to lose time looking at all the calls, knowing one that is wrong is enough... Cheers, Daniel On 21/03/16 03:50, 张顺通 wrote: > I

Re: [SR-Users] Removing Via and Record-Route headers

2016-03-21 Thread Daniel-Constantin Mierla
Depending from case to case, the record-routing can be avoided, especially if you know the environment and only one server is used between two endpoints. At that moment you can store existing contact in htable and replace it with one having the server ip. You can eventually use uuid to generate the