Coder Social home page Coder Social logo

Comments (7)

cloudwebrtc avatar cloudwebrtc commented on June 12, 2024

It is currently a development version, please clone the wss branch of the cloudwebrtc/gosip repository to the same level directory of go-sip-ua.

git clone https://github.com/cloudwebrtc/go-sip-ua

# Checkout gosip use specific version for TLS/WSS
git clone https://github.com/cloudwebrtc/gosip -b wss

cd go-sip-ua

from go-sip-ua.

cloudwebrtc avatar cloudwebrtc commented on June 12, 2024

Yeah, A bug has been found. These places only use the Host, without passing the entire Uri

from go-sip-ua.

cloudwebrtc avatar cloudwebrtc commented on June 12, 2024

@lq277012525 c58e539
I have fixed these hdrs to the build code and it should improve now.

from go-sip-ua.

lq277012525 avatar lq277012525 commented on June 12, 2024

thanks . I found an other bug. When I call Session.End() and the remote has responded with 200 ok. But ua.iss.Delete is not called, there is a memory leak.

from go-sip-ua.

lq277012525 avatar lq277012525 commented on June 12, 2024

Can you support sync method:
(ua *UserAgent) InviteWithContext(ctx context.Context,profile *account.Profile, target sip.Uri, recipient sip.SipUri, body *string) (*session.Session, error) {
......
ua.RequestWithContext(ctx, request, authorizer, true)
......
}
Because I hate callbacks and i want to use like
ctx,_:=context.WithDeadline(context.Background(),time.Now().Add(time.Second
5))
sess,err:=ua.InviteWithContext(ctx,&account.Profile{},.....)
sdp:=ivtS.Response().Body()

from go-sip-ua.

cloudwebrtc avatar cloudwebrtc commented on June 12, 2024

I think if you don’t use callbacks, session state processing will become more complicated.
sdp:=ivtS.Response().Body() Suppose you only want to get the sdp once, but the real situation is that early media, 200ok, update, and it is all possible to get the SDP, which will make the processing of session status become separate, and Can't concentrate in one place (callback func).

from go-sip-ua.

cloudwebrtc avatar cloudwebrtc commented on June 12, 2024

thanks . I found an other bug. When I call Session.End() and the remote has responded with 200 ok. But ua.iss.Delete is not called, there is a memory leak.

Thanks, Any patches are welcome.

from go-sip-ua.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.