<p>there is a function  set_send_socket instead of  force_send_socket  that supports p-variables.</p>
<p><a href="https://kamailio.org/docs/modules/devel/modules/corex.html#corex.f.set_send_socket" rel="nofollow">https://kamailio.org/docs/modules/devel/modules/corex.html#corex.f.set_send_socket</a></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/2145?email_source=notifications&email_token=ABO7UZOKXCXAHXHZY2AYIO3QVN23ZA5CNFSM4JQ3QQD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFBLY2A#issuecomment-558021736">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZLYKNCWAHFGCMJS4F3QVN23ZANCNFSM4JQ3QQDQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZNPTU7X5MSZKOM5H3DQVN23ZA5CNFSM4JQ3QQD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFBLY2A.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/2145?email_source=notifications\u0026email_token=ABO7UZOKXCXAHXHZY2AYIO3QVN23ZA5CNFSM4JQ3QQD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFBLY2A#issuecomment-558021736",
"url": "https://github.com/kamailio/kamailio/issues/2145?email_source=notifications\u0026email_token=ABO7UZOKXCXAHXHZY2AYIO3QVN23ZA5CNFSM4JQ3QQD2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFBLY2A#issuecomment-558021736",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>