...
When call is made with JavaScript API, an additional parameters can be passed to control bandwith via SDP, for exampleoutgoing calls (to INVITE request)
Code Block |
---|
|
var sdpAttributes = ["b=AS:3000","b=TIAS:2500000","b=RS:1000","b=RR:3000"];
var outCall = session.createCall({
sipSDP: sdpAttributes,
...
}); |
and incoming calls (to 200 OK response)
Code Block |
---|
|
var sdpAttributes = ["b=AS:3000","b=TIAS:2500000","b=RS:1000","b=RR:3000"];
var outCall = session.createCall inCall.answer({
sipSDP: sdpAttributes,
...
}); |
Those parameters will be added to SDP after connection information ("c=IN IP4 <WCS IP>") and before time description ("t=0 0") to INVITE request (for outgoing calls) and 200 OK response (for incoming calls):
Code Block |
---|
|
v=0
o=Flashphoner 0 1541068898263 IN IP4 192.168.1.5
s=Flashphoner/1.0
c=IN IP4 192.168.1.5
b=AS:3000
b=TIAS:2500000
b=RS:1000
b=RR:3000
t=0 0
m=audio |
...