<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
On 4/13/10 8:39 PM, Alex rsm wrote:
<blockquote cite="mid:SNT108-W138088C707DF483026119D9E110@phx.gbl"
 type="cite">
  <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>Hi,<br>
  <br>
My Kamailio server uses an external mysql database with perl script to
proxy traffic.<br>
When mysql server is unreachable, Kamailio do not respond with 100
Trying and instead responses with 484 (Address Incomplete) to the
INVITE message.<br>
Is this a normal behavior?<br>
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?<br>
</blockquote>
<br>
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.<br>
<br>
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.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote cite="mid:SNT108-W138088C707DF483026119D9E110@phx.gbl"
 type="cite"><br>
Thanks,<br>
  <br>
A R <br>
  <br>
  <hr>The New Busy is not the too busy. Combine all your e-mail
accounts with Hotmail. <a moz-do-not-send="true"
 href="http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&amp;ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4"
 target="_new">Get busy.</a>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
  </pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
Daniel-Constantin Mierla
* <a class="moz-txt-link-freetext" href="http://www.asipto.com/">http://www.asipto.com/</a> * <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a>
* <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/danielconstantinmierla">http://www.linkedin.com/in/danielconstantinmierla</a>
</div>
</body>
</html>