Re: [SR-Users] MESSAGE forking bug(?)

2014-07-23 Thread Allen Zhang
After a second thought: This shouldn't be a problem since the cleanup_uac_timers( t ); function call should clear the timer on all branches and the local 408 shouldn't be generated at all. So the problem now is why the local 408 were generated. Allen From: Allen Zhang Sent: Thursda

Re: [SR-Users] MESSAGE forking bug(?)

2014-07-23 Thread Allen Zhang
est a solution, please? In the meantime, I'll try to patch it myself. Cheers, Allen From: Allen Zhang Sent: Thursday, 24 July 2014 9:23 a.m. To: 'mico...@gmail.com'; Kamailio (SER) - Users Mailing List Subject: RE: [SR-Users] MESSAGE forking bug(?) Hi, I have a tcpdump captur

Re: [SR-Users] MESSAGE forking bug(?)

2014-07-23 Thread Allen Zhang
Constantin Mierla Sent: Wednesday, 23 July 2014 10:41 p.m. To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] MESSAGE forking bug(?) Hello, can you get the sip traffic with ngrep on kamailio server? It can be taken with: ngrep -d any -qt -W byline port 5060 Cheers, Daniel On 23/07/14 03

[SR-Users] MESSAGE forking bug(?)

2014-07-22 Thread Allen Zhang
Hi, I believe there is a bug on MESSAGE forking. Test scenario: User A has two records in the location table, with different instance ids: 111 and 222. One of user A's instance is killed, hence 222 is not reachable. User B send a MESSAGE to user A. Kamailio forked the MESSAGE. Kamailio got a

Re: [SR-Users] Really need help on kamailio-snmpstats module

2014-07-16 Thread Allen Zhang
Hi, We cloned the kamailio 4.0.0 repository and the spec file was in the source directory: ~/kamailio-4.0.0/pkg/kamailio/centos/6/kamailio.spec Cheers, Allen From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Sent: Thursday, 17 July 2014 7:57 a.m. To: Allen Zhang; Kamailio (SER

Re: [SR-Users] Really need help on kamailio-snmpstats module

2014-07-10 Thread Allen Zhang
-agent-libs %else Requires: net-snmp-libs The spec file from the build service is correct. So I guess it doesn’t matter to most people. Cheers, Allen From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Allen Zhang Sent: Friday, 11 July 2014

Re: [SR-Users] Really need help on kamailio-snmpstats module

2014-07-10 Thread Allen Zhang
p.m. To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Really need help on kamailio-snmpstats module Hello, which kamailio.spec are you using? Try to edit it to have the dependency named as the package available on your system. Cheers, Daniel On 09/07/14 07:21, Allen Zhang wrote: Hi

Re: [SR-Users] Fwd: Need help with Routing presence NOTIFY messages

2014-07-09 Thread Allen Zhang
... ignore and discard exit; } } sl_send_reply("404","Not here"); } exit; } } On Tue, Jul 8, 2014 at 10:18 PM, Allen Zhang ma

[SR-Users] Really need help on kamailio-snmpstats module

2014-07-08 Thread Allen Zhang
Hi This is a re-post. I'm desperate. What I'm trying to do: Use rpmbuild to build kamailio rpms from source code. We made a lot of changes in the kamailio code. I can't use the rpms from the build service. The plan is to push these changes to kamailio but that's not done, yet. The problem is w

Re: [SR-Users] Fwd: Need help with Routing presence NOTIFY messages

2014-07-08 Thread Allen Zhang
od("INVITE|SUBSCRIBE")) record_route(); also while processing subscribe if(is_method("SUBSCRIBE")) { record_route(); handle_subscribe(); t_release(); On Tue, Jul 8, 2014 at 9:18 PM

Re: [SR-Users] Fwd: Need help with Routing presence NOTIFY messages

2014-07-08 Thread Allen Zhang
Hi, Other please correct me if I’m wrong. NOTIFY should use record-route header. Make sure your kamailio servers set the record-route header for SUBSCRIBE requests. Regards, Allen From: sr-users-boun...@lists.sip-router.org [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Veerabhara

Re: [SR-Users] need help on kamailio-snmpstats module

2014-07-07 Thread Allen Zhang
creation would have failed. Are you using the rpms from opensuse build service? Cheers, Daniel On 03/07/14 01:56, Allen Zhang wrote: Hi, I’m having trouble on installing kamailio-snmpstats module. I’m using kamailio 4.0. I want to install kamailio’s snmpstats module from RPM. I compiled net-snmp

[SR-Users] need help on kamailio-snmpstats module

2014-07-02 Thread Allen Zhang
Hi, I'm having trouble on installing kamailio-snmpstats module. I'm using kamailio 4.0. I want to install kamailio's snmpstats module from RPM. I compiled net-snmp 5.4 from source and built some RPMS from it. I've installed net-snmp 5.4 from RPM on the target machine. And when I run 'yum install

[SR-Users] Server generated 408 time out goes to onreply route?

2014-07-01 Thread Allen Zhang
Hi, Does local server generated 408 time out reply go to onreply_route? If so, can I change the status code to a 200 class code by doing: $rs = "202"? If I can change it, does it still go to failure_route? (It's not a 400 class response anymore.) The scenario I want to test it's easy to produce

Re: [SR-Users] How to stop kamailio from send 408?

2014-06-26 Thread Allen Zhang
-- in that way you are sure it doesn't get overwritten in case you execute other functions before you interpret it. Cheers, Daniel On 26/06/14 06:31, Allen Zhang wrote: Hi, when t_relay() times out, calling sl_reply_error() will send 408 to the client. But if I don’t want to send 408, ho

Re: [SR-Users] How to find whether or not certain header exists?

2014-06-26 Thread Allen Zhang
t just walks through the list of headers, not parsing the header body and not returning its value. Cheers, Daniel On 26/06/14 06:35, Allen Zhang wrote: Hi, If I normally receive a INVITE that has a header ‘aaa’ with value ‘bbb’, but it’s possible that some INVITEs don’t have this header. How d

[SR-Users] How to find whether or not certain header exists?

2014-06-25 Thread Allen Zhang
Hi, If I normally receive a INVITE that has a header 'aaa' with value 'bbb', but it's possible that some INVITEs don't have this header. How do I determine in the config file if the header exists? To check the value of the header I do if($hdr(aaa) == "bbb"). But what if the header doesn't exist?

[SR-Users] How to stop kamailio from send 408?

2014-06-25 Thread Allen Zhang
Hi, when t_relay() times out, calling sl_reply_error() will send 408 to the client. But if I don't want to send 408, how do I interpret the error code t_relay() set? Regards, Allen ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailin

Re: [SR-Users] kamailio not sending 202 after 408 is sent

2014-06-23 Thread Allen Zhang
Hi Daniel, In failure route, I used t_reply(). Shall I try send_reply()? What’s the difference? Cheers, Allen From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Sent: Monday, 23 June 2014 8:31 p.m. To: Allen Zhang; Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] kamailio

Re: [SR-Users] kamailio not sending 202 after 408 is sent

2014-06-22 Thread Allen Zhang
37 p.m. To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] kamailio not sending 202 after 408 is sent Hello, why is R sending the 408? You should catch it there in a failure route, or where do you execute m_store() inside R config? Cheers, Daniel On 20/06/14 07:20, Allen Zhang wrote:

[SR-Users] kamailio not sending 202 after 408 is sent

2014-06-19 Thread Allen Zhang
Hi all, I have an edge proxy (E) and a registrar (R) behind it. In R, if a MESSAGE failed to deliver for any reason, R stores the MESSAGE in msilo. If the MESSAGE timed out, R sends a 408 time out first and then send a 202 Accepted after the MESSAGE is stored. The problem is, E happily forwards

Re: [SR-Users] MySQL query result pagination

2014-06-04 Thread Allen Zhang
June 2014 3:58 p.m. To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] MySQL query result pagination On 06/04/2014 11:56 PM, Allen Zhang wrote: > Not ideal because I have many TCP children. And each of them consumes > private memory. Yes, but I would think it the superior method to try

Re: [SR-Users] MySQL query result pagination

2014-06-04 Thread Allen Zhang
-router.org Subject: Re: [SR-Users] MySQL query result pagination Allen, Perhaps your best bet is simply to increase the amount of allocated private memory? -- Alex On 06/04/2014 08:18 PM, Allen Zhang wrote: > Hi, > > When an user does a REGISTER and has a large number of msilo messages

Re: [SR-Users] MySQL query result pagination

2014-06-04 Thread Allen Zhang
I found this: SELECT column FROM table LIMIT N OFFSET offset Increment offset by index*N in the loop to fetch N records at a time. But the remaining question is how do I do this using kamailio's MySQL driver? Raw query? Allen From: Allen Zhang Sent: Thursday, 5 June 2014 12:19 p.m. To

[SR-Users] MySQL query result pagination

2014-06-04 Thread Allen Zhang
t easy to build a complex query like this: Select * from silo where ...(the matching algorithm) AND id > lower_limit AND id < higher_limit, ordered by id. Is there a way to do this? Or maybe I'm on the wrong track and there is already a solution to

Re: [SR-Users] Child process exited by a signal 11

2014-03-19 Thread Allen Zhang
-users@lists.sip-router.org Subject: Re: [SR-Users] Child process exited by a signal 11 On 03/19/2014 07:10 PM, Allen Zhang wrote: > Yes this makes sense. But higher debug level = more writing. Then > increasing the debug level should causes more problem - because more > buffering an

Re: [SR-Users] Child process exited by a signal 11

2014-03-19 Thread Allen Zhang
PM, Allen Zhang wrote: > Shouldn't the debug level only have an impact on the amount of > information written to the log? And that should only changes the delay > between operations? Well, from a programmatic point of view, not necessarily. Writing debug logs is an operation

Re: [SR-Users] Child process exited by a signal 11

2014-03-19 Thread Allen Zhang
g] On Behalf Of Alex Balashov Sent: Thursday, 20 March 2014 11:58 a.m. To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Child process exited by a signal 11 On 03/19/2014 06:50 PM, Allen Zhang wrote: > 1, I noticed that the main thread was 4097 and 4098 died. what is the > child proc

[SR-Users] Child process exited by a signal 11

2014-03-19 Thread Allen Zhang
Hi, Scenario: Our kamailio server normally has a debug level of 2. The server gets a segmentation fault and dies when we run a certain demo. The error message is: "[4097]: ALERT: [main.c:789]: child process 4098 exited by a signal 11" And we got a lot of these before it dies: "error reading: Con

Re: [SR-Users] Function to test DB connection in the cfg file?

2013-11-12 Thread Allen Zhang
ailio (SER) - Users Mailing List Subject: Re: [SR-Users] Function to test DB connection in the cfg file? 10 nov 2013 kl. 21:33 skrev Allen Zhang mailto:allen.zh...@imgtec.com>>: Hi all, This is a re-post. My email didn't seem to get on the list last time. Is there a function I can

[SR-Users] Function to test DB connection in the cfg file?

2013-11-10 Thread Allen Zhang
the health status of the database connection before sending a reply back. Note the OPTIONS request doesn't have a user part in the RURI. Hence, is_subscriber() and alias_db_lookup() don't work. Any suggestion? Regards, Allen Zhang ___ SIP

[SR-Users] Function to test DB connection from route[]?

2013-11-06 Thread Allen Zhang
e the OPTIONS request doesn't have a user part in the RURI. Hence, is_subscriber() and alias_db_lookup() don't work. Any suggestion? Regards, Allen Zhang ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-

Re: [SR-Users] how to make dispatcher module use more than one tcp connections to the destinations?

2013-07-11 Thread Allen Zhang
Allen From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Sent: Thursday, 11 July 2013 9:58 p.m. To: Kamailio (SER) - Users Mailing List; Allen Zhang Subject: Re: [SR-Users] how to make dispatcher module use more than one tcp connections to the destinations? Hello, have you seen the

[SR-Users] how to make dispatcher module use more than one tcp connections to the destinations?

2013-07-10 Thread Allen Zhang
Hi list, I have a loadbalancer before sipproxies. I call t_reley() on the dispatcher to forward requests to destinations. All goes well under low load. But when load goes up to 500 requests/s, the loadbalancer still sends requests via only one tcp connection. This maxes out the tcp write queue.

[SR-Users] how to make dispatcher module use more than one tcp connections to the destinations?

2013-07-09 Thread Allen Zhang
Hi list, I have a loadbalancer before sipproxies. I call t_reley() on the dispatcher to forward requests to destinations. All goes well under low load. But when load goes up to 500 requests/s, the loadbalancer still sends requests via only one tcp connection. This maxes out the tcp write queue.

[SR-Users] kamailio loadbalancer with TLS problem forwarding INVITE back to UA

2013-06-26 Thread Allen Zhang
Hi, Our set up: UA1 - -- Proxy1 \ / Loadbalancer (dispatcher module) /