<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
diameter uses tcp and by design the source port of a tcp connection
cannot be ensured.<br>
<br>
One can try to bind local socket for opening a connection, but that
is not guaranteed to happen, the kernel can overwrite and select
another available port. TCP is connection oriented communication
with one-to-one stream relation between source and destination,
there cannot be two connections with same source ip/port and same
destination ip/port. IIRC, there was another discussion on this list
about similar topic with tcp connection, which got some references
to resources online. Not sure it can be spotted quickly in the
archive, but searching on the web should reveal appropriate
information on the topic.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 03/07/15 15:55, <a class="moz-txt-link-abbreviated" href="mailto:micunek@gmail.com">micunek@gmail.com</a>
wrote:<br>
</div>
<blockquote
cite="mid:CAMThJ85iLmZcvR1r78NFOs6RK8bLQAOLNDscgKqX2CQ_Mty2SA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi All,
<div><br>
</div>
<div>I am trying to use Cx (Diameter) interface via TCP towards
our HSS according to Carsten Bock example. </div>
<div><br>
</div>
<div>However kamailio client obtain TCP RST from HSS because a
kamailio source port is different than port where kamailio is
listen. I do not know if this is Diameter/Cx requirement or
not. I did not find it in specifications. Is there any way how
to ensure that kamailio use same port number for source and
destination (3869)?. </div>
<div><br>
</div>
<div><br>
</div>
<div>
<div><?xml version="1.0" encoding="UTF-8"?></div>
<div><DiameterPeer</div>
<div> FQDN="...<a moz-do-not-send="true"
href="http://3gppnetwork.org">3gppnetwork.org</a>"</div>
<div> Realm="...<a moz-do-not-send="true"
href="http://3gppnetwork.org">3gppnetwork.org</a>"</div>
<div> Vendor_Id="10415"</div>
<div> Product_Name="CDiameterPeer"</div>
<div> AcceptUnknownPeers="1"</div>
<div> DropUnknownOnDisconnect="1"</div>
<div> Tc="30"</div>
<div> Workers="4"</div>
<div> QueueLength="8"</div>
<div> TransactionTimeout="5"</div>
<div> SessionsHashSize="128"</div>
<div> DefaultAuthSessionTimeout="3600"</div>
<div> MaxAuthSessionTimeout="3600"</div>
<div>></div>
<div> <Peer FQDN="hss....<a moz-do-not-send="true"
href="http://3gppnetwork.org">3gppnetwork.org</a>"
Realm=".<a moz-do-not-send="true"
href="http://3gppnetwork.org">3gppnetwork.org</a>"
port="3868"/></div>
<div><br>
</div>
<div> <Acceptor port="3869" /></div>
<div><br>
</div>
<div> <Auth id="16777216" vendor="10415"/>
<!--3GPP CxDX --></div>
<div><br>
</div>
<div> <Realm name="....<a moz-do-not-send="true"
href="http://3gppnetwork.org">3gppnetwork.org</a>"></div>
<div> <Route FQDN="hss...<a
moz-do-not-send="true" href="http://3gppnetwork.org">3gppnetwork.org</a>"
metric="10"/></div>
<div> </Realm></div>
<div><br>
</div>
<div> <DefaultRoute FQDN="hss.....<a
moz-do-not-send="true" href="http://3gppnetwork.org">3gppnetwork.org</a>"
metric="10"/></div>
<div></DiameterPeer></div>
</div>
<div><br>
</div>
<div>Thanks</div>
<div>Peter</div>
</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://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
</body>
</html>