-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathrtpengine.cfg
30 lines (26 loc) · 964 Bytes
/
rtpengine.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
route[rtp_engine]{
//offer
if (is_method("INVITE") && $sht(rtpProxy=>mip_$ci)==1 && !isflagset(RTPE)) {
setflag(RTPE);
xlog("L_INFO","rtpengine offer command");
rtpengine_manage("ICE=remove replace-session-connection");
}
//answer
if(isflagset(RTPE) && $T_reply_code==200){
//resetflag(RTPE);
xlog("L_INFO","rtpengine answer command");
rtpengine_manage("ICE=remove replace-session-connection");
}
//delete
if (is_method("BYE") && $sht(rtpProxy=>mip_$ci)==1) {
$sht(rtpProxy=>mip_$ci)=$null;
xlog("L_INFO","rtpengine delete command");
rtpengine_manage("ICE=remove replace-session-connection");
}
//cancelled
if(isflagset(CANCELLED)){
$sht(rtpProxy=>mip_$ci)=$null;
xlog("L_INFO","rtpengine delete command; cancelled call");
rtpengine_manage("ICE=remove replace-session-connection");
}
}