<HTML>
<HEAD>
<TITLE>Re: [SR-Users] Hi Daniel.</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I am no Daniel, but here is a stab at it ...<BR>
<BR>
The pseudo variable &#8220;oP&#8221; maybe something you can do a quick if/else on?<BR>
<BR>
Taken from <a href="http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:1.5.x">http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:1.5.x</a> :<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></FONT><FONT SIZE="4"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:13pt'><B>Transport protocol of SIP request original URI<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</B></SPAN></FONT></FONT><FONT FACE="Helvetica, Verdana, Arial"><B><FONT SIZE="2"><SPAN STYLE='font-size:10pt'>$oP</SPAN></FONT></B><FONT SIZE="2"><SPAN STYLE='font-size:10pt'> - reference to transport protocol of original R-URI<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
There is also dP and rP as well.<BR>
<BR>
Hope this helps,<BR>
<BR>
-graham<BR>
<BR>
On 3/16/12 12:11 PM, &quot;Andres Collazos&quot; &lt;<a href="anfecora@gmail.com">anfecora@gmail.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>thanks for all the support for all this years.<BR>
<BR>
Can you please help me to know  if there is any way to route sip calls based on transport protocol, for example a call incoming on tcp i will assign a route and if a call comes in udp i will assign a different route.<BR>
<BR>
my scenario is calls coming from different devices registering to kamailio and then kamailio send those calls to asterisk.<BR>
unfortunately i have to create a different peer set for each device. for this scenario i have two types of UAs and they need completely different configuration on the asterisk switch.<BR>
<BR>
i am planing on segregate the traffic and build a media server for each type of device means 2 asterisk, teh only way that i can identify those incoming registrations is by the use of the port one client connects trough udp the other trough tcp.<BR>
<BR>
I appreciated any input in this matter.<BR>
<BR>
and again thank a lot to all for the great support.<BR>
<BR>
Andres Collazos.<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_______________________________________________<BR>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<BR>
<a href="sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><BR>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>