Comments (6)
I would probably add a branch flag to the different branches. I have made a gist with some changes to the existing config here.
The changes i have made are in:
route[WEB_SIP] and route[NATMANAGE].
In the rtpengine_manage calls in NATMANAGE, you could add the via-branch parameter to apply it to the correct one. I have not used the via-branch flag myself, but i guess via-branch=auto should work.
Note: the config does not run as is, it is only an example to explain.
from webrtc-to-sip.
And of course you would have to restructure NATMANAGE to your needs.
from webrtc-to-sip.
The tricky part is what via-branch value should be used.
After some testing I realized that 'auto' option is not working. There is no code implementing this parameter.
Moreover all forked branches have the same via branch id which is the incoming INVITE's via branch id on branch route. So the values 1 and 2 to via-branch option is not functional in this case.
Therefore we have only 'extra' option with extra_pv_id variable.
And the question is what value do we need to set to this variable in requests on branch route and corresponding responses on reply route?
from webrtc-to-sip.
I have never had the need to set different branches myself, so not sure how much help I can be here.
In the example config above, the flag for SDES/DTLS is set pr. branch. So I guess you do something like:
if (isbflagset(FLB_SDES)) {
$avp(extra_id) = "sdes";
rtpengine_manage("...via-branch=extra...");
}
from webrtc-to-sip.
You might find some inspiration from this forum post.
from webrtc-to-sip.
You inspired me to update the kamailio config. It should now be able to handle different branches with different bridging cases.
from webrtc-to-sip.
Related Issues (20)
- Build doesn't work HOT 2
- SIP Client with WebRTC SDP HOT 1
- Error!! Unmet build dependencies : libbcg729-dev
- E: Unable to correct problems, you have held broken packages. HOT 2
- Add dispatcher HOT 4
- When lets encrypt permission denied
- No audio from SIP to WS HOT 2
- Integration with Asterisk HOT 1
- NO_PUBKEY Error in debian 10 HOT 1
- Testtest
- could not login sipml5 demo to kamailio via websocket. HOT 3
- Sip WIse installation in ubuntu 18.04 HOT 1
- Kamailio + RTPEngine + TURN server behind NAT HOT 5
- webrtc solution for sip protocol
- SIP to WebRTC calls only one way audio HOT 5
- Dockerfile ?
- why use turn server, can I only use rtpengine? HOT 3
- E: Package 'ngcp-keyring' has no installation candidate
- Audio issues from Webrtc to SIP HOT 3
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 webrtc-to-sip.