Re: [SR-Users] when mySQL is unreachable ...

2010-04-13 Thread Alex Balashov

So your name is both Alex and Robert?

On 04/13/2010 02:39 PM, Alex rsm wrote:


Hi,

My Kamailio server uses an external mysql database with perl script to
proxy traffic.
When mysql server is unreachable, Kamailio do not respond with 100
Trying and instead responses with 484 (Address Incomplete) to the INVITE
message.
Is this a normal behavior?
I need to response with 503 when mysql is unreachable. Can I do it in
kamailio.cfg or I need to implement it in the perl script?

Thanks,

A R


The New Busy is not the too busy. Combine all your e-mail accounts with
Hotmail. Get busy.




___
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/listinfo/sr-users



--
Alex Balashov - Principal
Evariste Systems LLC
1170 Peachtree Street
12th Floor, Suite 1200
Atlanta, GA 30309
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/

___
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/listinfo/sr-users


Re: [SR-Users] when mySQL is unreachable ...

2010-04-14 Thread Daniel-Constantin Mierla



On 4/13/10 8:39 PM, Alex rsm wrote:

Hi,

My Kamailio server uses an external mysql database with perl script to 
proxy traffic.
When mysql server is unreachable, Kamailio do not respond with 100 
Trying and instead responses with 484 (Address Incomplete) to the 
INVITE message.

Is this a normal behavior?
I need to response with 503 when mysql is unreachable. Can I do it in 
kamailio.cfg or I need to implement it in the perl script?


kamailio is replying automatically in very few cases. In case you use 
default confing, then 484 address incomplete is coming from the check 
for calls not having a username in r-uri.


100 trying is sent by t_relay(). You can send 503 from config as you 
need. mysql connectivity is hidden behind some modules, like 
authentication, which will return false and from config will be a new 
challenge (in this particular case). mysql module has support for 
auto-connect.


Cheers,
Daniel



Thanks,

A R


The New Busy is not the too busy. Combine all your e-mail accounts 
with Hotmail. Get busy. 
 




___
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/listinfo/sr-users
   


--
Daniel-Constantin Mierla * http://www.asipto.com/ * 
http://twitter.com/miconda * 
http://www.linkedin.com/in/danielconstantinmierla
___
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/listinfo/sr-users