<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello everyone,<br>
    </p>
    <p>Does anyone have any insight into how 'SIMPLE MESSAGE' delivery
      can be achieved between sip and verto clients? The verto
      documentation is very light on detail especially when it comes to
      messaging. There are references to using chat in conferences but
      that's about it.<br>
    </p>
    <p>I've tried appending the protocol in the "to" value ( ie.
      <a class="moz-txt-link-rfc2396E" href="mailto:verto+9905@voip.gh.bf">"verto+9905@voip.gh.bf"</a> ) but that doesn't appear to help much. It
      does change the to_proto to verto, but the message doesn't end up
      being delivered to the verto client. Any help would be greatly
      appreciated.</p>
    <p>-Matthew</p>
    <div class="moz-cite-prefix">On 3/21/2018 3:03 PM, Matthew Grooms
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:21265e38-649f-8655-8369-6a167e07742f@brightfire.net">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <p>Hello All, <br>
        <br>
        We have a few hundred agents on a custom built call center
        platform that leverages freeswitch and mod_callcenter. Up until
        now, agents have used a custom built Windows Client based on
        pjsip. I'm trying to replace that with a new client built with
        WebRTC and mod_verto. The last piece of the puzzle I'm trying to
        solve is sending chat messages between Verto and SIP clients. I
        can use the chat command from fs_cli to send messages to
        freeswitch to a Verto client, but I can't seem to send messages
        from a SIP client to a Verto client or a Verto client to a SIP
        client. After spending a few days on this, I thought I'd appeal
        to the list to see if someone can help provide some guidance. <br>
        <br>
        # show registrations <br>
reg_user,realm,token,url,expires,network_ip,network_port,network_proto,hostname,metadata
        <br>
        1000,voip.gh.bf,0d5831a1b9274063a1e06237f47a68af,sofia/external/<a
          class="moz-txt-link-freetext"
href="sip:1000@X.X.X.X:49524;transport=TCP;ob,1521650573,X.X.X.X,49524,tcp,voip2.gh.bf"
          moz-do-not-send="true">sip:1000@X.X.X.X:49524;transport=TCP;ob,1521650573,X.X.X.X,49524,tcp,voip2.gh.bf</a>,
        <br>
        <br>
        # verto status <br>
                             Name
        Type                                       Data      State <br>
=================================================================================================
        <br>
                             mine       profile <a
          class="moz-txt-link-freetext" moz-do-not-send="true">ws:0.0.0.0:8081</a>     
        RUNNING <br>
                             mine       profile <a
          class="moz-txt-link-freetext" moz-do-not-send="true">wss:0.0.0.0:8082</a>     
        RUNNING <br>
            <a class="moz-txt-link-abbreviated"
          href="mailto:mine::9905@voip.gh.bf" moz-do-not-send="true">mine::9905@voip.gh.bf</a>      
        client X.X.X.X:60992      CONN_REG (WSS) <br>
=================================================================================================
        <br>
        1 profile , 1 client <br>
        <br>
        <br>
        Messages are delivered when I try the following ... <br>
        <br>
        CHAT TO VERTO: <br>
        -------------------- CONSOLE -------------------- <br>
        # chat verto|<a class="moz-txt-link-abbreviated"
          href="mailto:1000@voip.gh.bf%7C9905@voip.gh.bf%7Ctest"
          moz-do-not-send="true">1000@voip.gh.bf|9905@voip.gh.bf|test</a>
        <br>
        2018-03-21 11:20:48.170147 [ALERT] mod_verto.c:604 WRITE
        X.X.X.X:49548 [{ <br>
                "jsonrpc":      "2.0", <br>
                "id":   6, <br>
                "method":       "verto.info", <br>
                "params":       { <br>
                        "msg":  { <br>
                                "from": <a
          class="moz-txt-link-rfc2396E" href="mailto:1000@voip.gh.bf"
          moz-do-not-send="true">"1000@voip.gh.bf"</a>, <br>
                                "to":   <a
          class="moz-txt-link-rfc2396E" href="mailto:9905@voip.gh.bf"
          moz-do-not-send="true">"9905@voip.gh.bf"</a>, <br>
                                "body": "test" <br>
                        } <br>
                } <br>
        }] <br>
        -------------------- CHROME -------------------- <br>
        onVertoMessage <a class="moz-txt-link-abbreviated"
          href="mailto:from:1000@voip.gh.bf" moz-do-not-send="true">from:1000@voip.gh.bf</a>
        <a class="moz-txt-link-abbreviated"
          href="mailto:to:9905@voip.gh.bf" moz-do-not-send="true">to:9905@voip.gh.bf</a>
        body:test <br>
        <br>
        <br>
        Messages are not delivered when trying to send from client to
        client ... <br>
        <br>
        SIP TO VERTO: <br>
        -------------------- EVENT -------------------- <br>
        KV -> Chat-Send-From: "A" <a class="moz-txt-link-rfc2396E"
          href="sip:1000@voip.gh.bf" moz-do-not-send="true"><sip:1000@voip.gh.bf></a>;tag=759225c356d545d2b8c83b284063cac2
        <br>
        KV -> Chat-Send-Profile: external <br>
        KV -> Chat-Send-To: <a class="moz-txt-link-abbreviated"
          href="mailto:9905@voip.gh.bf" moz-do-not-send="true">9905@voip.gh.bf</a>
        <br>
        KV -> Content-Length: 4 <br>
        KV -> Core-UUID: 74a1329b-6a85-4078-9c0d-f9af5972bf0a <br>
        KV -> Error-Reason: no recipient <br>
        KV -> Error-Type: chat <br>
        KV -> Event-Calling-File: sofia_presence.c <br>
        KV -> Event-Calling-Function: sofia_presence_chat_send <br>
        KV -> Event-Calling-Line-Number: 276 <br>
        KV -> Event-Date-GMT: Wed, 21 Mar 2018 15:44:13 GMT <br>
        KV -> Event-Date-Local: 2018-03-21 10:44:13 <br>
        KV -> Event-Date-Timestamp: 1521647053570639 <br>
        KV -> Event-Name: CUSTOM <br>
        KV -> Event-Sequence: 299577 <br>
        KV -> Event-Subclass: sofia::error <br>
        KV -> FreeSWITCH-Hostname: voip2.gh.bf <br>
        KV -> FreeSWITCH-IPv4: X.X.X.X <br>
        KV -> FreeSWITCH-IPv6: ::1 <br>
        KV -> FreeSWITCH-Switchname: voip2.gh.bf <br>
        -------------------- CONSOLE -------------------- <br>
        2018-03-21 10:44:13.570639 [WARNING] sofia_presence.c:221 Not
        sending to local box for <a class="moz-txt-link-abbreviated"
          href="mailto:9905@voip.gh.bf" moz-do-not-send="true">9905@voip.gh.bf</a>
        <br>
        2018-03-21 10:44:13.570639 [ERR] sofia_presence.c:272 Chat proto
        [sip] <br>
        from ["A" <a class="moz-txt-link-rfc2396E"
          href="sip:1000@voip.gh.bf" moz-do-not-send="true"><sip:1000@voip.gh.bf></a>;tag=759225c356d545d2b8c83b284063cac2]
        <br>
        to [<a class="moz-txt-link-abbreviated"
          href="mailto:9905@voip.gh.bf" moz-do-not-send="true">9905@voip.gh.bf</a>]
        <br>
        test <br>
        Nobody to send to: Profile external <br>
        <br>
        VERTO TO SIP: <br>
        -------------------- EVENT -------------------- <br>
        KV -> Content-Length: 22 <br>
        KV -> Core-UUID: 74a1329b-6a85-4078-9c0d-f9af5972bf0a <br>
        KV -> Event-Calling-File: mod_verto.c <br>
        KV -> Event-Calling-Function: verto__info_func <br>
        KV -> Event-Calling-Line-Number: 3374 <br>
        KV -> Event-Date-GMT: Wed, 21 Mar 2018 15:50:56 GMT <br>
        KV -> Event-Date-Local: 2018-03-21 10:50:56 <br>
        KV -> Event-Date-Timestamp: 1521647456550625 <br>
        KV -> Event-Name: MESSAGE <br>
        KV -> Event-Sequence: 299780 <br>
        KV -> FreeSWITCH-Hostname: voip2.gh.bf <br>
        KV -> FreeSWITCH-IPv4: X.X.X.X <br>
        KV -> FreeSWITCH-IPv6: ::1 <br>
        KV -> FreeSWITCH-Switchname: voip2.gh.bf <br>
        KV -> Nonblocking-Delivery: true <br>
        KV -> dest_proto: GLOBAL <br>
        KV -> from: <a class="moz-txt-link-abbreviated"
          href="mailto:9905@voip.gh.bf" moz-do-not-send="true">9905@voip.gh.bf</a>
        <br>
        KV -> from_full: 9905 <br>
        KV -> from_host: voip.gh.bf <br>
        KV -> from_user: 9905 <br>
        KV -> proto: verto <br>
        KV -> to: <a class="moz-txt-link-abbreviated"
          href="mailto:1000@voip.gh.bf" moz-do-not-send="true">1000@voip.gh.bf</a>
        <br>
        KV -> type: text/plain <br>
        KV -> verto_jsock_uuid: 85eef9c8-54c2-f4a7-eb95-ef9f5f1e6ff8
        <br>
        KV -> verto_profile: mine <br>
        -------------------- CONSOLE -------------------- <br>
        <a class="moz-txt-link-abbreviated"
          href="mailto:freeswitch@voip2.gh.bf" moz-do-not-send="true">freeswitch@voip2.gh.bf</a>>
        2018-03-21 10:50:56.550625 [ALERT] mod_verto.c:1384 READ
        X.X.X.X:64275 [{ <br>
                "jsonrpc":      "2.0", <br>
                "method":       "verto.info", <br>
                "params":       { <br>
                        "msg":  { <br>
                                "to":   <a
          class="moz-txt-link-rfc2396E" href="mailto:1000@voip.gh.bf"
          moz-do-not-send="true">"1000@voip.gh.bf"</a>, <br>
                                "from": <a
          class="moz-txt-link-rfc2396E" href="mailto:9905@voip.gh.bf"
          moz-do-not-send="true">"9905@voip.gh.bf"</a>, <br>
                                "body": "This is a test message" <br>
                        }, <br>
                        "sessid": "85eef9c8-54c2-f4a7-eb95-ef9f5f1e6ff8"
        <br>
                }, <br>
                "id":   5 <br>
        }] <br>
        2018-03-21 10:50:56.550625 [ALERT] mod_verto.c:604 WRITE
        X.X.X.X:64275 [{ <br>
                "jsonrpc":      "2.0", <br>
                "id":   5, <br>
                "result":       { <br>
                        "message":      "SENT", <br>
                        "sessid": "85eef9c8-54c2-f4a7-eb95-ef9f5f1e6ff8"
        <br>
                } <br>
        }] <br>
        <br>
        Thanks in advance, <br>
        <br>
        -Matthew </p>
    </blockquote>
    <br>
  </body>
</html>