Browse Source

message role fixes

4.0
lazedo 10 years ago
parent
commit
7bc7a0cba5
2 changed files with 7 additions and 2 deletions
  1. +6
    -1
      kamailio/default.cfg
  2. +1
    -1
      kamailio/message-role.cfg

+ 6
- 1
kamailio/default.cfg View File

@ -434,7 +434,6 @@ route[HANDLE_MESSAGE]
#!ifdef MESSAGE-ROLE #!ifdef MESSAGE-ROLE
if (is_method("MESSAGE")) { if (is_method("MESSAGE")) {
xlog("L_INFO", "$ci|MESSAGE from $fu to $tu"); xlog("L_INFO", "$ci|MESSAGE from $fu to $tu");
t_on_reply("MESSAGE_REPLY");
if (isflagset(FLAG_INTERNALLY_SOURCED) || src_ip == myself) { if (isflagset(FLAG_INTERNALLY_SOURCED) || src_ip == myself) {
xlog("L_INFO", "$ci| routing MESSAGE to external from $fu to $tu"); xlog("L_INFO", "$ci| routing MESSAGE to external from $fu to $tu");
if (registered("location")) { if (registered("location")) {
@ -653,6 +652,12 @@ onreply_route[EXTERNAL_REPLY]
setflag(FLAG_IS_REPLY); setflag(FLAG_IS_REPLY);
route(DOS_PREVENTION); route(DOS_PREVENTION);
#!endif #!endif
#!ifdef MESSAGE-ROLE
if (is_method("MESSAGE")) {
route(MESSAGE_REPLY);
}
#!endif
} }
onreply_route[INTERNAL_REPLY] onreply_route[INTERNAL_REPLY]


+ 1
- 1
kamailio/message-role.cfg View File

@ -27,7 +27,7 @@ event_route[kazoo:consumer-event-message-route]
uac_req_send(); uac_req_send();
} }
onreply_route[MESSAGE_REPLY]
route[MESSAGE_REPLY]
{ {
if( $(sht(msg=>$ci)) == $null) { if( $(sht(msg=>$ci)) == $null) {
exit(); exit();


Loading…
Cancel
Save