<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
I just committed a patch that allow using send() without any
parameter:<br>
<br>
*
<a class="moz-txt-link-freetext" href="http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8e4db808bf9f94d3ccf0f14ed22e75586afd0f23">http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8e4db808bf9f94d3ccf0f14ed22e75586afd0f23</a><br>
<br>
The behaviour is to to forward based on $du (dst uri, aka outbound
proxy address) if it is set, otherwise based on $ru (r-uri).<br>
<br>
So what you would have to do after ds_select_dst() is to do
'send()'.<br>
<br>
The patch is in master branch, but is rather simple and should be
straightforward to apply it to older versions.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<br>
<br>
On 4/6/12 4:16 AM, Gustavo Vidovich wrote:
<blockquote
cite="mid:CAMN-_7KJkR7B1W8unvaA1SYhD40jTK9KDgexYRsuE7wgBA5AAw@mail.gmail.com"
type="cite">Hi everyone,<br>
<br>
We are using Kamailio as a dispatcher to other two Kamailio
servers and want it to stateless forward messages without adding a
VIA header. We try to use the send function, but you can not give
a pseudo variable as a parameter ($dd in this case as this
variable is set by the ds_select_dst() function).<br>
<br>
We attemp to add a rule for this function to accept pseudo
variables as an argument (in cfg.y file, pvar argument) but the
problem was that when starting Kami (our friendly name for the
Kamailio server), the pseudo variable is empty, then the program
attemp to do a dns lookup trying to solve the empty string and
obviously fail to start.<br>
<br>
We partially solve the issue by hard-coding the IP's to dispatch
(the only way to make the send() function to work was the sintaxis
"send(IP)").<br>
<br>
We want a little bit elegancy in configuration file, but can not
solve in another way.<br>
<br>
Any brighter ideas to make it work?<br>
<br>
Cheers from Uruguay, <br>
<br>
ODT<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany
<a class="moz-txt-link-freetext" href="http://www.asipto.com/index.php/kamailio-advanced-training/">http://www.asipto.com/index.php/kamailio-advanced-training/</a></pre>
</body>
</html>