Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how do i send message over websocket #146

Open
ruokid opened this issue Aug 5, 2020 · 3 comments
Open

how do i send message over websocket #146

ruokid opened this issue Aug 5, 2020 · 3 comments

Comments

@ruokid
Copy link

ruokid commented Aug 5, 2020

Hi @kirm

I m trying to use jsSIP to REGISTER .
image
now im registered,
how do i send message over websocket

sip.send

{
    "method": "MESSAGE",
    "uri": "sip:[email protected];transport=ws",
    "headers": {
        "to": "sip:[email protected]",
        "from": {
            "uri": "sip:34020000002000000001@3402000000",
            "params": {
                "tag": "52624"
            }
        },
        "call-id": "217160",
        "cseq": {
            "method": "MESSAGE",
            "seq": 46960
        }
    },
    "content": "hello"
}

result

err:  Error: getaddrinfo ENOTFOUND por87rlbree0.invalid
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26) {
  errno: -3008,
  code: 'ENOTFOUND',
  syscall: 'getaddrinfo',
  hostname: 'por87rlbree0.invalid'
}
@ruokid
Copy link
Author

ruokid commented Aug 5, 2020

image

@latysheff
Copy link

AFAIK, using same ip address for source and destination causes problems in sip.js.

@ruokid
Copy link
Author

ruokid commented Aug 11, 2020

AFAIK, using same ip address for source and destination causes problems in sip.js.

thanks for the tips. i ll try to use the different ip address later.

and i would like to know how to solve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants