<p>Here is relevant page how to get source port for outbound connection.<br>
<a href="https://stackoverflow.com/questions/47095534/how-to-get-local-source-port-from-socket-connect-in-linux-kernel-space" rel="nofollow">https://stackoverflow.com/questions/47095534/how-to-get-local-source-port-from-socket-connect-in-linux-kernel-space</a></p>
<p>How to bind selected port for outbound connection.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="440310459" data-permission-text="Issue title is private" data-url="https://github.com/openssh/openssh-portable/issues/130" data-hovercard-type="pull_request" data-hovercard-url="/openssh/openssh-portable/pull/130/hovercard" href="https://github.com/openssh/openssh-portable/pull/130">openssh/openssh-portable#130</a></p>
<p>Daniel <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/miconda/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/miconda">@miconda</a> could you look this links.<br>
Think first allow resolve issue.<br>
Second link will allow send TCP outbound messages from kamailio <code>socket</code> port instead of random port.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2092?email_source=notifications&email_token=ABO7UZKE64QWYSR6D2424RTQ6P725A5CNFSM4I5KRX72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJKLHHA#issuecomment-575976348">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZIX7S6TY663GHTQZ4DQ6P725ANCNFSM4I5KRX7Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZIE72QLXNB5IM2RKFDQ6P725A5CNFSM4I5KRX72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJKLHHA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2092?email_source=notifications\u0026email_token=ABO7UZKE64QWYSR6D2424RTQ6P725A5CNFSM4I5KRX72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJKLHHA#issuecomment-575976348",
"url": "https://github.com/kamailio/kamailio/issues/2092?email_source=notifications\u0026email_token=ABO7UZKE64QWYSR6D2424RTQ6P725A5CNFSM4I5KRX72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJKLHHA#issuecomment-575976348",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>