<p>See the end of quoted log. It tries to resolve <code><sip:s7t25aae@r2r3d4o15av3.invalid;transport=ws></code> as traditional SIP URI, and fails. Need support of WS and WSS URIs.</p>

<pre><code>Feb 13 19:57:18 vmwrtc /usr/local/sbin/kamailio[12467]: DEBUG: cnxcc [cnxcc_check.c:87]: check_calls_by_money(): CID [kqBcNZPwNa], start_timestamp [1423857429], seconds alive [9], consumed credit [10.000000]
Feb 13 19:57:18 vmwrtc /usr/local/sbin/kamailio[12467]: INFO: cnxcc [cnxcc_check.c:96]: check_calls_by_money(): ec=0.000000, ca=10.000000, ca2=9.000000
Feb 13 19:57:18 vmwrtc /usr/local/sbin/kamailio[12467]: DEBUG: cnxcc [cnxcc_check.c:109]: check_calls_by_money(): Client [customer_name] | Ended-Calls-Credit-Spent: 0.000000  TotalCredit/MaxCredit: 10.000000/10.000000
Feb 13 19:57:18 vmwrtc /usr/local/sbin/kamailio[12467]: DEBUG: cnxcc [cnxcc_mod.c:894]: terminate_all_calls(): Killing call with CID [kqBcNZPwNa]
Feb 13 19:57:18 vmwrtc /usr/local/sbin/kamailio[12467]: DEBUG: cnxcc [cnxcc_mod.c:967]: terminate_call(): Got kill signal for call [kqBcNZPwNa] client [customer_name] h_id [4713] h_entry [335]. Dropping it now
Feb 13 19:57:18 vmwrtc /usr/local/sbin/kamailio[12467]: DEBUG: dialog [dlg_req_within.c:492]: mi_terminate_dlg(): h_entry 335 h_id 4713
Feb 13 19:57:18 vmwrtc /usr/local/sbin/kamailio[12467]: DEBUG: dialog [dlg_hash.c:633]: dlg_lookup(): ref dlg 0x7ff48c38bde8 with 1 -> 3
Feb 13 19:57:18 vmwrtc /usr/local/sbin/kamailio[12467]: DEBUG: dialog [dlg_hash.c:635]: dlg_lookup(): dialog id=4713 found on entry 335
Feb 13 19:57:18 vmwrtc /usr/local/sbin/kamailio[12467]: DEBUG: dialog [dlg_req_within.c:347]: send_bye(): sending BYE to caller
Feb 13 19:57:18 vmwrtc /usr/local/sbin/kamailio[12467]: DEBUG: tm [uac.c:249]: t_uac_prepare(): DEBUG:tm:t_uac: next_hop=<sip:1000@195.138.73.151:1904>
Feb 13 19:57:18 vmwrtc /usr/local/sbin/kamailio[12467]: DEBUG: tm [uac.c:150]: dlg2hash(): DEBUG: dlg2hash: 61830
Feb 13 19:57:18 vmwrtc /usr/local/sbin/kamailio[12467]: DEBUG: dialog [dlg_req_within.c:380]: send_bye(): BYE sent to caller
Feb 13 19:57:18 vmwrtc /usr/local/sbin/kamailio[12467]: DEBUG: dialog [dlg_req_within.c:347]: send_bye(): sending BYE to callee
Feb 13 19:57:18 vmwrtc /usr/local/sbin/kamailio[12467]: DEBUG: tm [uac.c:249]: t_uac_prepare(): DEBUG:tm:t_uac: next_hop=<sip:s7t25aae@r2r3d4o15av3.invalid;transport=ws>
Feb 13 19:57:18 vmwrtc /usr/local/sbin/kamailio[12467]: ERROR: <core> [resolve.c:1693]: sip_hostport2su(): could not resolve hostname: "r2r3d4o15av3.invalid"
Feb 13 19:57:18 vmwrtc /usr/local/sbin/kamailio[12467]: ERROR: tm [ut.h:319]: uri2dst2(): failed to resolve "r2r3d4o15av3.invalid"
Feb 13 19:57:18 vmwrtc /usr/local/sbin/kamailio[12467]: ERROR: tm [uac.c:272]: t_uac_prepare(): t_uac: no socket found
Feb 13 19:57:18 vmwrtc /usr/local/sbin/kamailio[12467]: ERROR: dialog [dlg_req_within.c:374]: send_bye(): failed to send the BYE request
Feb 13 19:57:18 vmwrtc /usr/local/sbin/kamailio[12467]: DEBUG: dialog [dlg_hash.c:851]: dlg_unref(): unref dlg 0x7ff48c38bde8 with 1 -> 2
Feb 13 19:57:18 vmwrtc /usr/local/sbin/kamailio[12467]: ERROR: cnxcc [cnxcc_mod.c:1013]: terminate_call(): Error executing dlg_end_dlg command. Return code was [500]
</code></pre>

<p>I'm trying to fix this in code by myself, but any guidance and help is appreciated, as I'm not experienced in Kamailio internals.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/85">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZTqu_Y7m3kDjzo0LyY8zWhE-bUQNks5nrlEJgaJpZM4DgUFj.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/85"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>