danial,<br><br>it worked !!!<br><br>thanks a lot man.<br><br><br><br><div class="gmail_quote">On Thu, Nov 5, 2009 at 3:38 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><br>
<br>
On 05.11.2009 10:04 Uhr, GEMINORIUM crux wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
danial,<br>
<br>
i need to use database and also i have to convert protocol<br>
<br>
Just give me some answer :<br>
<br>
1. is there any other way to convert protocol like :<br>
$dP = "udp"; //it also give syntex<br>
in that case i can use t_relay();<br>
<br>
2. why t_relay_to_udp($var(test))/t_relay_to_udp($rd,$rp); is giving syntax error ?<br>
OR<br>
Is t_relay_to_udp($var(test))/t_relay_to_udp($rd,$rp) can take input other than static string ?<br>
<br>
<br>
any suggestion is appreciated.<br>
</blockquote></div>
you have to build the $du with the transport parameter:<br>
<br>
$du = "sip:" + __username__ + "@" + __domain__ + ":" + __port__ + ";transport=" + __transportvalue__;<br>
<br>
Replace __xyz__ with appropriate values/variables;<br>
<br>
Cheers,<br>
Daniel<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
thanks<div class="im"><br>
<br>
<br>
<br>
On Thu, Nov 5, 2009 at 1:35 PM, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>>> wrote:<br>
<br>
don't forget -- always cc the mailing list.<br>
<br>
<br>
<br>
On 05.11.2009 5:39 Uhr, GEMINORIUM crux wrote:<br>
<br>
Daniel,<br>
i am transferring tls protocol to udp protocol,<br>
sorry, i don't mention it.<br>
<br>
client <---tls----> kamilio <----udp---> asterisk<br>
<br>
thanks for your reply.<br>
<br>
<br>
On Wed, Nov 4, 2009 at 7:38 PM, Daniel-Constantin Mierla<br>
<<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>><br></div><div class="im">
<mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a> <mailto:<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>>>> wrote:<br>
<br>
Hello,<br>
<br>
<br>
On 04.11.2009 14:34 Uhr, GEMINORIUM crux wrote:<br>
<br>
hi,<br>
i am new to kamailio,<br>
<br>
getting syntax error:<br>
$var(test) = "udp:"+$rd+":"+$rp;<br>
t_relay_to_udp($var(test));<br>
<br>
t_relay_to_udp($rd,$rp);<br>
<br>
working with string.<br>
<br>
is there any reason ? how to resolve it ?<br>
i have to use database so i need to use variable.<br>
<br>
any suggestion is appreciated.<br>
<br>
you have to do:<br>
<br>
$du = "sip:"+$rd+":"+$rp;<br>
t_relay();<br>
<br>
Cheers,<br>
Daniel<br>
<br>
-- Daniel-Constantin Mierla<br>
* <a href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a><br>
<br>
<br>
<br>
-- Daniel-Constantin Mierla<br>
* <a href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a><br>
<br>
<br></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Kamailio (OpenSER) - Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org" target="_blank">Users@lists.kamailio.org</a><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
<a href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote><div><div></div><div class="h5">
<br>
-- <br>
Daniel-Constantin Mierla<br>
* <a href="http://www.asipto.com/" target="_blank">http://www.asipto.com/</a><br>
<br>
</div></div></blockquote></div><br>