<!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">
1. Don't cc specific people unless you have a question directed towards
that person specifically.<br>
2. Do yourself a favor and use the openser mailing list if you really
have an openser.cfg (this is SER, not openser)<br>
g-)<br>
<br>
Gomtesh Jain wrote:
<blockquote
cite="mid:a22146bc0712130407u561aaee4t3dfba00d8fd7eb36@mail.gmail.com"
type="cite">
<div>Hi All ,</div>
<div> I am trying to do parallel forking from SER.But when I call
then one user gets 2 calls and rest of the users get one call .</div>
<div> Please any one explain why it is happening.</div>
<div> Here I attach my openser.cfg file...</div>
<div> </div>
<div>
<p># main routing logic</p>
<p>route{<br>
<br>
# initial sanity checks -- messages with<br>
# max_forwards==0, or excessively long requests<br>
if (!mf_process_maxfwd_header("10")) {<br>
sl_send_reply("483","Too Many Hops");
<br>
exit;<br>
};</p>
<p> if (msg:len >= 2048 ) {<br>
sl_send_reply("513", "Message too big");<br>
exit;<br>
};</p>
<p> # we record-route all messages -- to make sure that<br>
# subsequent messages will go through our proxy; that's<br>
# particularly good if upstream and downstream entities<br>
# use different transport protocol
<br>
if (!method=="REGISTER")<br>
record_route();<br>
# subsequent messages withing a dialog should take the<br>
# path determined by record-routing<br>
if (loose_route()) {
<br>
# mark routing logic in request<br>
append_hf("P-hint: rr-enforced\r\n");<br>
route(1);<br>
};<br>
</p>
<p>if (!uri==myself) {<br>
# mark routing logic in request<br>
append_hf("P-hint: outbound\r\n");<br>
# if you have some interdomain connections via TLS<br>
#if(uri=~"@tls_domain1.net") {
<br>
# t_relay("tls:<a moz-do-not-send="true"
href="http://domain1.net">domain1.net</a>");<br>
# exit;<br>
#} else if(uri=~"@tls_domain2.net") {<br>
# t_relay("tls:
<a moz-do-not-send="true" href="http://domain2.net">domain2.net</a>");<br>
# exit;<br>
#}<br>
route(1);<br>
};</p>
<p> # if the request is for other domain use UsrLoc<br>
# (in case, it does not work, use the following command<br>
# with proper names and addresses in it)<br>
if (uri==myself) {</p>
<p> if (method=="REGISTER") {</p>
<p> # Uncomment this if you want to use digest
authentication<br>
#if (!www_authorize("<a moz-do-not-send="true"
href="http://192.168.3.15">192.168.3.15</a>", "subscriber")) {<br>
# www_challenge("<a moz-do-not-send="true"
href="http://192.168.3.15">192.168.3.15</a>", "0");<br>
# exit;<br>
#};</p>
<p> save("location");<br>
exit;<br>
};</p>
<p> lookup("aliases");<br>
log("I M IN lookup");<br>
if (!uri==myself) {<br>
append_hf("P-hint: outbound alias\r\n");<br>
route(1);
<br>
};</p>
<p><br>
# native SIP destinations are handled using our USRLOC
DB<br>
if (!lookup("location")) {<br>
sl_send_reply("404", "Not Found");<br>
exit;<br>
}<br>
else {<br>
append_branch();<br>
append_hf("P-hint: usrloc applied\r\n");<br>
t_relay();
<br>
}<br>
};<br>
route(1);<br>
}</p>
</div>
<div>
<p><br>
route[1] {</p>
<p> # send it out now; use stateful forwarding as it works
reliably<br>
# even for UDP2TCP<br>
#if (!t_relay()) {<br>
if (!forward()) {<br>
sl_reply_error();<br>
};<br>
exit;
<br>
}<br>
</p>
</div>
<div> </div>
<div>Gomtesh</div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Serusers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a>
<a class="moz-txt-link-freetext" href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a>
</pre>
</blockquote>
</body>
</html>