<div dir="ltr">hi,<div><br></div><div><br></div><div>i have UA > Kamailio > Freeswitch</div><div><br></div><div>UA is using sip for websockets and registers via kamailio to freeswitch.</div><div>When i try to originate a call from FS to the registered endpoint, the call fails. </div><div><br></div><div>
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">freeswitch@FS01></span>
bgapi originate {origination_caller_id_number=1002}sofia/internal/1001%mydomain &echo()</span>
<br></div><div><br></div><div>I think FS is trying to use transport from received parematar instead of path uri.</div><div><br></div><div>any advice how to handle this ?</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div>recv 964 bytes from udp/[192.168.50.60]:5060 at 22:18:57.909700:</div><div> ------------------------------------------------------------------------</div><div> REGISTER sip:192.168.50.60 SIP/2.0</div><div> Via: SIP/2.0/UDP 192.168.50.60;branch=z9hG4bKe929.b6aa43dd1eefa9e4756af7d31d65066e.0</div><div> Via: SIP/2.0/WSS 192.0.2.110;rport=61744;received=192.168.200.77;branch=z9hG4bK3179897</div><div> Max-Forwards: 69</div><div> To: <<a href="mailto:sip%3A1001@192.168.50.60">sip:1001@192.168.50.60</a>></div><div> From: <<a href="mailto:sip%3A1001@192.168.50.60">sip:1001@192.168.50.60</a>>;tag=vq30modpgd</div><div> Call-ID: dlnrna9o4ngn25fb9d1vi2</div><div> CSeq: 192 REGISTER</div><div> Authorization: Digest algorithm=MD5, username="1001", realm="192.168.50.60", nonce="22c52b4b-f795-4caa-bb9b-15bbd87564f7", uri="sip:192.168.50.60", response="a073277bc9c1fcd681de661cb418d838", qop=auth, cnonce="euqeokf2d1gr", nc=00000001</div><div> Contact: <<a href="mailto:sip%3A1001@192.0.2.110">sip:1001@192.0.2.110</a>;transport=ws>;reg-id=1;+sip.instance="<urn:uuid:587f4694-7e55-46dc-a858-579a82556a20>";expires=600</div><div> Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY,REFER</div><div> Supported: path, gruu, 100rel, outbound</div><div> User-Agent: SIP.js/0.7.0 BB</div><div> Content-Length: 0</div><div> Path: <sip:192.168.50.60;lr;received=sip:192.168.200.77:61744%3Btransport%3Dws></div><div> </div><div> ------------------------------------------------------------------------</div><div>send 738 bytes to udp/[192.168.50.60]:5060 at 22:18:57.950968:</div><div> ------------------------------------------------------------------------</div><div> SIP/2.0 200 OK</div><div> Via: SIP/2.0/UDP 192.168.50.60;branch=z9hG4bKe929.b6aa43dd1eefa9e4756af7d31d65066e.0</div><div> Via: SIP/2.0/WSS 192.0.2.110;rport=61744;received=192.168.200.77;branch=z9hG4bK3179897</div><div> From: <<a href="mailto:sip%3A1001@192.168.50.60">sip:1001@192.168.50.60</a>>;tag=vq30modpgd</div><div> To: <<a href="mailto:sip%3A1001@192.168.50.60">sip:1001@192.168.50.60</a>>;tag=eK8SmZmcU7UBr</div><div> Call-ID: dlnrna9o4ngn25fb9d1vi2</div><div> CSeq: 192 REGISTER</div><div> Contact: <<a href="mailto:sip%3A1001@192.0.2.110">sip:1001@192.0.2.110</a>;transport=ws>;expires=600</div><div> Date: Fri, 09 Feb 2018 21:18:57 GMT</div><div> User-Agent: FreeSWITCH-mod_sofia/1.6.19+git~20171120T163416Z~b1b21d0695~64bit</div><div> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY</div><div> Supported: timer, path, replaces</div><div> Path: <sip:192.168.50.60>;lr;received=sip:192.168.200.77:61744%3Btransport%3Dws</div><div> Content-Length: 0</div><div> </div><div> ------------------------------------------------------------------------</div></div><div><br></div><div><br></div><div><br></div><div>in freeswitch i the registration:</div><div><br></div><div><div>Call-ID: dlnrna9o4ngn25fb9d1vi2</div><div>User: 1001@mydomain</div><div>Contact: "" <<a href="mailto:sip%3A1001@192.0.2.110">sip:1001@192.0.2.110</a>;transport=ws;fs_nat=yes;fs_path=sip%3A192.168.50.60%3Blr%3Breceived%3Dsip%3A192.168.200.77%3A61744%3Btransport%3Dws></div><div>Agent: SIP.js/0.7.0 BB</div><div>Status: Registered(WS-NAT)(unknown) EXP(2018-02-09 22:29:57) EXPSECS(510)</div><div>Ping-Status: Reachable</div><div>Ping-Time: 0.00</div><div>Host: FS01</div><div>IP: 192.168.50.60</div><div>Port: 5060</div><div>Auth-User: 1001</div><div>Auth-Realm: 192.168.50.60</div><div>MWI-Account: 1001@mydomain</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div>the register contain a path header with received=<original uri>.</div><div><br></div><div>when i try to originate a call to this registered user the call goes nowhere :=)</div><div><br></div><div><br></div><div><div>freeswitch@FS01> bgapi originate {origination_caller_id_number=1002}sofia/internal/1001%mydomain &echo()</div><div>+OK Job-UUID: 200e2197-a6de-42d9-b4bb-63917223bc53</div><div><br></div><div>2018-02-09 22:25:40.500100 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables</div><div>2018-02-09 22:25:40.500100 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/1001 [327826f9-8a8c-46c7-b3ed-8bf22852df88]</div><div>2018-02-09 22:25:40.500100 [DEBUG] mod_sofia.c:4819 (sofia/internal/1001) State Change CS_NEW -> CS_INIT</div><div>2018-02-09 22:25:40.500100 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/1001) Running State Change CS_INIT (Cur 1 Tot 217)</div><div>2018-02-09 22:25:40.500100 [DEBUG] switch_core_state_machine.c:627 (sofia/internal/1001) State INIT</div><div>2018-02-09 22:25:40.500100 [DEBUG] mod_sofia.c:90 sofia/internal/1001 SOFIA INIT</div><div>2018-02-09 22:25:40.500100 [DEBUG] sofia_glue.c:1264 sip:192.168.50.60;lr;received=sip:192.168.200.77:61744;transport=ws Setting proxy route to sofia/internal/1001</div><div>2018-02-09 22:25:40.500100 [DEBUG] sofia_glue.c:1295 sofia/internal/1001 sending invite version: 1.6.19 git b1b21d0 2017-11-20 16:34:16Z 64bit</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>