[SR-Users] configuring websockts in kamilio

Pan Christensen pan.christensen at phonect.no
Mon Jun 4 10:12:35 CEST 2018


Hello.

The js client cannot know this information, and hence cannot send it. What you’re seeing is normal for SIP over websockets. It should just work. What issues are you experiencing?

With kind regards
Pan B. Christensen
Developer

Phonect AS
Brugata 19, PB 9156 Grønland, N-0133 Oslo, Norway
E-mail: pan.christensen at phonect.no<mailto:pan.christensen at phonect.no>
Mobile: 41 88 88 00


 [cid:image007.png at 01D3A0E8.376921D0] <http://www.phonect.no/>
[facebook_2]<https://www.facebook.com/phonectno> [LinkedIn_logo_initials (1)] <https://www.linkedin.com/company/44983?trk=tyah&trkInfo=clickedVertical%3Acompany%2CentityType%3AentityHistoryName%2CclickedEntityId%3Acompany_company_44983%2Cidx%3A0>

From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of vinod mn
Sent: fredag 1. juni 2018 20:21
To: sr-users at lists.kamailio.org
Subject: [SR-Users] configuring websockts in kamilio

hi configured websockets on kamilio 5.1.3
I am trying to register the client based on webrtc client ,(sip.js)
 the registration is fine but i am not getting the correct address  if i run "kamctl ul show"

In the address filed  I want the sip:<id>@<ip>:<port<sip:%3cid%3e@%3cip%3e:%3cport>>
ex: sip:12345 at 127.0.0.1:12345<http://sip:12345@127.0.0.1:12345>

output shows:
{
  "jsonrpc":  "2.0",
  "result": {
    "Domains":  [{
        "Domain": {
          "Domain": "location",
          "Size": 1024,
          "AoRs": [{
              "Info": {
                "AoR":  "1xxxxxxxxx",
                "HashID": 1xxxxx,
                "Contacts": [{
                    "Contact":  {
                  "Address": "sip:eg84vjhr at p6ggglrk0gsh.invalid;transport=ws",
                      "Expires":  397,
                      "Q":  1,
                      "Call-ID":  "ma4feu2i43bnu6ophe4k78",
                      "CSeq": 86,
                      "User-Agent": "SIP.js/0.5.0-devel BB",
                      "Received": "sip:X.X.X.X:56087;transport=ws",
                      "Path": "[not set]",
                      "State":  "CS_NEW",
                      "Flags":  0,
                      "CFlags": 192,
                      "Socket": "tcp:X.X.X.X:8080",
                      "Methods":  783,
                      "Ruid": "uloc-5b116457-1dc1-03",
                      "Instance": "<urn:uuid:0e879ebf-0a31-45a8-9fd9-6b937d3328d4>",
                      "Reg-Id": 1,
                      "Server-Id":  0,
                      "Tcpconn-Id": 259,
                      "Keepalive":  1,
                      "Last-Keepalive": 1527876355,
                      "Last-Modified":  1527876355
                    }
                  }]
              }
            }
  ],
          "Stats":  {
            "Records":  1,
            "Max-Slots":  1
          }
        }
      }]
  },
  "id": 18958
}

In the address filed  I want the sip:<id>@<ip>:<port<sip:%3cid%3e@%3cip%3e:%3cport>>
ex: sip:12345 at 127.0.0.1:12345<http://sip:12345@127.0.0.1:12345>

Please give me any suggestions on this, which webrtc client can i use to register to kamailio and able to receive on the client and to make outbound calls from the client.

--
Thanks and regards
Vinod.M.N
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180604/020e600e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 1003 bytes
Desc: image003.png
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180604/020e600e/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 826 bytes
Desc: image004.png
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180604/020e600e/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 6929 bytes
Desc: image002.png
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180604/020e600e/attachment-0002.png>


More information about the sr-users mailing list