<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
On 12/7/11 9:37 AM, Uri Shacked wrote:
<blockquote
cite="mid:CAMMbDhSAxc2h10PpQYLwWURz5sNKhiQbQXMxien42QcA2Q9fLg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Daniel hi,</div>
<div> </div>
<div>thanks for the reply.</div>
<div>i woke up this mornning and tried to change the destination
set on the dispatcher DB table.</div>
<div>it was <a class="moz-txt-link-rfc2396E" href="sip:user@host">"sip:user@host"</a>... i changed it to <a class="moz-txt-link-rfc2396E" href="sip:host">"sip:host"</a> and
used ds_select_domain.</div>
<div>worked great, the R-URI host changed as needed.</div>
<div> </div>
<div>regarding the t_relay(host,port) option. the problem with
that is that the t_relay does not accept $avp()....</div>
<div> </div>
<div>any ideas?<br>
</div>
</div>
</blockquote>
<br>
you can do:<br>
<br>
$du = $var(dst);<br>
t_relay();<br>
<br>
In $var(dst) you must have a valid sip URI address (can include
protocol, like: <a class="moz-txt-link-freetext" href="sip:127.0.0.1:5060;transport=tcp">sip:127.0.0.1:5060;transport=tcp</a>)<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote
cite="mid:CAMMbDhSAxc2h10PpQYLwWURz5sNKhiQbQXMxien42QcA2Q9fLg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div class="gmail_quote">On Wed, Dec 7, 2011 at 12:09 AM,
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com">miconda@gmail.com</a>></span>
wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px
0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div bgcolor="#FFFFFF" text="#000000">Hello,
<div class="im"><br>
<br>
On 12/6/11 7:08 PM, Uri Shacked wrote:
<blockquote type="cite">
<div dir="ltr">
<div>Hi,</div>
<div> </div>
<div>i am using the dispatcher module in order to
send the call to a LNP server.</div>
<div>after the 3xx reply from the LNP server, i
would like to send the invite back to the proxy
that initiate the call from the beginnig.</div>
<div>how do i do that? </div>
</div>
</blockquote>
</div>
one option: t_relay_to(...) with the parameter pointing to
the proxy where you want to send the request.
<div class="im"><br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div>it seems that kamailio dispatcher sets the host
domain in the Internet Protocol, and the sip
request line does not change</div>
</div>
</blockquote>
<br>
</div>
No, the dispatcher does not work at IP packet layer, it is
updating the request URI with ds_select_domain() or sets
internal outbound proxy address with ds_select_dst().
<div class="im"><br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div>so to be short.. two questions:</div>
<div>1. how do i "undo" the dispatcher?</div>
<div>2. how do i make the dispatcher change the
requst lineas well? (i am using ds_select_dst or
ds_select_domain and they do the same...)</div>
</div>
</blockquote>
</div>
Changing the request URI is via ds_select_domain(), I can
bet it is working fine as I use it in many places -- if it
does not do it for you, can you paste here the config file
used for doing dispatching along with the SIP trace
(ngrep) of such call?<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote type="cite">
<div class="im">
<div dir="ltr">
<div> </div>
<div>the carrierroute module, do it better, but i
need the dispatcher for the "keep alive" usage.</div>
<div> </div>
<div>ideas will be great :-)</div>
<div> </div>
<div>Uri </div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre>
<span class="HOEnZb"></span></blockquote>
<span class="HOEnZb"><font color="#888888"><br>
<pre cols="72">--
Daniel-Constantin Mierla -- <a moz-do-not-send="true" href="http://www.asipto.com/" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a moz-do-not-send="true" href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a></pre>
</font></span></div>
</blockquote>
</div>
<br>
</div>
<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 -- <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
</body>
</html>