[SR-Users] XMLRPC problem

2014-03-30 Thread Kelvin Chua
i am currently having problems on xmlrpc i am using node-xmlrpc and it fails when htable.dump returns more than 1 row. i raised this issue on the node-xmlrpc group and this is the explanation i got. Each node inside is supposed to only have one child node, so this looks like an invalid response.

Re: [SR-Users] Crash on REGISTER

2014-03-30 Thread Igor Potjevlesch
Hello Daniel, Looks that GDB works after all. Here is the result of a BT: #0 0x0030f2230f30 in escape_string_for_mysql () from /usr/lib64/mysql/libmysqlclient.so.16 #1 0x0030f22269c1 in mysql_real_escape_string () from /usr/lib64/mysql/libmysqlclient.so.16 #2 0x7f3eac7000

[SR-Users] XMLRPC problem

2014-03-30 Thread Juha Heinanen
Kelvin Chua writes: > i am currently having problems on xmlrpc > i am using node-xmlrpc and it fails when htable.dump returns more than 1 > row. > i raised this issue on the node-xmlrpc group and this is the explanation i > got. > > Each node inside is supposed to only have one child node, > so

Re: [SR-Users] kamailio db

2014-03-30 Thread info
Daniel: Following up. Thank you! On 03/28/2014 08:29 PM, i...@vintageelectronics.ca wrote: Daniel, Following up. Thanks ve On 03/27/2014 04:44 PM, i...@vintageelectronics.ca wrote: Daniel, I found your writeup at http://kb.asipto.com/kamailio:skype-like-service-in-less-than-one-hour and

Re: [SR-Users] XMLRPC problem

2014-03-30 Thread Kelvin Chua
thanks juha i was able to apply the RET_ARRAY fix to htable.dump in 4.0.5 however unable to share the patch as htable_rpc[] is nowhere to be found on trunk was there any changes from 4.0.x to trunk with regards to rpc? Kelvin Chua On Sun, Mar 30, 2014 at 8:37 AM, Juha Heinanen wrote: > Kelvin

Re: [SR-Users] kamailio db

2014-03-30 Thread Slava Bendersky
Hello Daniel, Doing more look up on config, but can't figure out where problem with call flow. I tried use debug to track down where conversation is breaks, but I see only INVITE and let it. Still come OK after first INVITE. This warning which show up logs. Mar 30 19:31:12 dsm01 /usr/sbin/k

Re: [SR-Users] message 484

2014-03-30 Thread Pedro Niño
I think this is the correct behavior, as asterisk server is complaining about the address/request not containing all the necesary data to process the message Can you please elaborate with a bit more of detail? Also can use tools like sngrep, tcpdump (or wireshark) to have a better view of the co

Re: [SR-Users] Dimension a kamailio server

2014-03-30 Thread Pedro Niño
As Alex said, I/O and calls per second (CPS) is Dependant on what type of design you are using. As a tip, mysql is good for small to medium sizes, but begin to choke at 1000 of concurrent connections. but in a scalable size like you are planning, I would recommend to make a design with resilience

Re: [SR-Users] message 484

2014-03-30 Thread Slava Bendersky
Hello Pedro, So test case is simple. asterisk is play voicemail role and kamailio is gateway. Asterisk peer is setup and working. I think message SIP/2.0 484 Address Incomplete is some from kamailio When Asterisk send reply back this message show up because is no $rU in header line. I don't

Re: [SR-Users] message 484

2014-03-30 Thread Pedro Niño
Ok, I wonder If this is a message you're seeing at the asterisk server, it may be related to the qualify=yes or qualify=Number parameter in the peer, at sip.conf. If it's right, then you can modify at 2 places: one, by disabling qualify. (qualify=no) at asterisk, or the other by configuring K

Re: [SR-Users] message 484

2014-03-30 Thread Pedro Niño
By the way, I'm attaching a excellent response from another people at this mailing list, about using qualify and modding Kamailio config to make it answer. Check it, may be your case On Monday 24 March 2014 15:23:31 Alexandr Usov wrote: > Peers (from Internet behind NAT) registered

Re: [SR-Users] message 484

2014-03-30 Thread Slava Bendersky
Hello Pedro, I set in main routing section and it I see 200 OK right now. Than you for help. # account only INVITEs if (is_method("INVITE")) { setflag(FLT_ACC); # do accounting } if (is_method("OPTIONS")) { sl_send_reply("200", "OK"); exit; } U 2014/03/30 22:32:47.139646 192.168.10

Re: [SR-Users] message 484

2014-03-30 Thread Pedro Niño
Just be aware, with this any options message from anybody will be answered with ok. I would prefer to make it specific, at least to be sure that only happens when the source is the asterisk server, and in the right case, because you could get strange behaviors. Keep testing, and be sure is the r

Re: [SR-Users] message 484

2014-03-30 Thread Slava Bendersky
Hello Pedro, I modified this section to if (is_method("OPTIONS") || allow_trusted("$si","$(proto)")) { sl_send_reply("200", "OK"); exit; } I am maintaining ACL so should be more tight. Slava. - Original Message - From: "Pedro Niño" To: "Kamailio (SER) - Users Mailing List"

Re: [SR-Users] kamailio db

2014-03-30 Thread Slava Bendersky
Hello Daniel, Here debug of first invite, but I can't see. what actually not right. 7(4161) INFO:

Re: [SR-Users] Patch to support symmetric UDP socket in mi_datagram

2014-03-30 Thread Muhammad Shahzad
You are right patch does not work for Async commands. I will try to fix it per your guidelines. Once again many thanks for your insight into the matter. Thank you. On Sat, Mar 29, 2014 at 3:53 AM, Muhammad Shahzad wrote: > humm, > > When datagram server is initialized in method "mi_init_datag