[OpenSIPS-Users] crash after failover

2013-04-16 Thread microx
Hi all, In my environment, I use two active SIP proxy servers A and B that share one backend database for high performance and failover. When active proxy server A goes down, proxy server B will fetch the dialog information (originally processed by the proxy server A) from the database into its

Re: [OpenSIPS-Users] siptrace to mysql

2013-04-16 Thread Bogdan-Andrei Iancu
Hello Vic, SIP tracing may be add a significant load on the DB (and on opensips itself - as it is doing blocking DB ops) as for each message it has to do 2 insert queries - and for a minimal call you around 10 inserts. The idea is to minimize the traffic you trace (trace only what you need,

Re: [OpenSIPS-Users] Sending ACK from different port

2013-04-16 Thread Bogdan-Andrei Iancu
Hello Andrei, OpenSIPS preserves the interface when doing a relay (uses as outbound same interface as inbound) if not otherwise instructed by routing info (Route hdrs) or scripting. As ACK is a sequential request which is routed based on Route hdr, to see where the problem is, it is a must

Re: [OpenSIPS-Users] crash after failover

2013-04-16 Thread Bogdan-Andrei Iancu
Hi Chen-Che, OpenSIPS is not crashing at all, but I see the dialog module is generating some queries with bogus values (for updating the dialog info) - I see the queries are setting state 4 which means the dialog just received the ACK for a 200 OK - so this is not related to BYE handling,

[OpenSIPS-Users] Can OpenSIPS start when db is not ready?

2013-04-16 Thread microx
Hi all, I know that OpenSIPS can work without any db. However, in case of using a db, according to my experience, an OpenSIPS server must start when the db is on. I wonder whether it's possible to make OpenSIPS successfully run before the database is ready? If this can be achieved, the time for

Re: [OpenSIPS-Users] crash after failover

2013-04-16 Thread microx
Hi Bogdan-Andrei, Thanks for your comment. In my test, no ACK is sent to the OpenSIPS server during/after failover. Sometimes proxy server B goes down (but /var/run/opensips/opensips.pid exists) after the above query error occurs. If required, I can provide the core dump for your reference. Many

Re: [OpenSIPS-Users] crash after failover

2013-04-16 Thread Bogdan-Andrei Iancu
Hi Chen-Che. Well, the logs do not lie :) - a transition to state 4 means an ACK was received - so dialog was loaded from DB (during the db sync) in state 3 (200ok without ACK) and was switched to 4 in the B server (when ACK was received) - otherwise the logs does not match with what you are

Re: [OpenSIPS-Users] Can OpenSIPS start when db is not ready?

2013-04-16 Thread Bogdan-Andrei Iancu
Hi Chen-Che, Currently OpenSIPS does not start without DB (if a module is configured with db_url) - in some case starting with no DB (while DB was requested) may be a non sense - like for modules needing provisioning data (drouting, dialplan, permissions, etc) - these modules will not be able

[OpenSIPS-Users] RabbitMQ Issues

2013-04-16 Thread Brett Nemeroff
Hello All, I was wondering if anyone has had a chance to look at the memory leak issues posted on the tracker at: https://sourceforge.net/tracker/?func=detailaid=3610016group_id=232389atid=1086410 I'm having the same issues as the OP with the patch that's on the tracker. Thanks! -Brett

[OpenSIPS-Users] Rules

2013-04-16 Thread M.Khaled W Chehab
Dears , Is there a way to let the Rules (Dialplan) ex:9613 do not jump to another match (Rule)dialplan with shortest prefix ex: (961). I use to fill the attributes data field to use it in order to have dont jump flag by checking it before if ( use_next_gw() ) { but that cause a

Re: [OpenSIPS-Users] [RFC] Distributed User Location

2013-04-16 Thread Rudy
Bogdan, As David described, we use a similar memcached setup with script glue and I think these are becoming fairly common when working in larger scales. What would be great would be for the distributed location / registrar modules to do most if not all of this internally. Depending on what

Re: [OpenSIPS-Users] [RFC] Distributed User Location

2013-04-16 Thread Muhammad Shahzad
Just a correction for David, in my proposal SIP response 302 is returned by super node to base node to redirect base node to correct destination base node that has destination UA registered on it. This 302 response will not and should not be transmitted to endpoint UA (neither source nor

Re: [OpenSIPS-Users] b2b terminate_call!

2013-04-16 Thread Jorge Henrique Pinho
Hi Bogdan! Sure, it is in attachment. Kind regards! Jorge Pinho From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org] Sent: sexta-feira, 8 de Março de 2013 18:01 To: Jorge Henrique Pinho Cc: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] b2b terminate_call! Hi Jorge, Strange

Re: [OpenSIPS-Users] Can OpenSIPS start when db is not ready?

2013-04-16 Thread microx
Hi Bogdan-Andrei, Many thanks for your clear explanation:) Best wishes, Chen-Che -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Can-OpenSIPS-start-when-db-is-not-ready-tp7585850p7585864.html Sent from the OpenSIPS - Users mailing list archive at