Comments (7)
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.
Yeah, A bug has been found. These places only use the Host, without passing the entire Uri
from go-sip-ua.
@lq277012525 c58e539
I have fixed these hdrs to the build code and it should improve now.
from go-sip-ua.
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.
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.Second5))
sess,err:=ua.InviteWithContext(ctx,&account.Profile{},.....)
sdp:=ivtS.Response().Body()
from go-sip-ua.
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.
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)
- Make log level configurable
- Contact header
- Dependency Dashboard
- Looking forward to your finish webrtc2sip gateway HOT 1
- ua.go incorrectly assumes that a received invite is a reinvite. HOT 4
- Question about sip to webrtc HOT 1
- I got a error,can someone help me?
- Dialogs/sessions completely broken because of wrong sessionkey HOT 16
- <nil> Route headers added to request
- how to disable verify server certificate HOT 1
- Could this library support method Message?
- register example - Request Timeout HOT 2
- Client example-the example couldn't send voice to other UAC HOT 1
- ua.go 中的 handleBye 无法触发 Terminated HOT 3
- 注册问题
- Persistent CallID
- Q: idea for Google dialogflow phone gateway
- Example UA sends SIP BYE HOT 2
- bug:不能仅仅用callID和fromTag来获取session HOT 2
- Add "rport" in via to support NAT. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-sip-ua.