diff --git a/vmnotify b/vmnotify index 8c8d4ac..efc7677 100755 --- a/vmnotify +++ b/vmnotify @@ -230,7 +230,10 @@ sub main { $data{callid} = gen_callid().'@voip.sipwise.local'; send_mwi_notify(); - send_ext_notify() if $extended; + if ($extended && + $CONFIG->{EXT_NOTIFY} && $CONFIG->{EXT_NOTIFY} eq "yes") { + send_ext_notify(); + } }; if ($EVAL_ERROR) { $log->error($EVAL_ERROR); diff --git a/vmnotify.conf b/vmnotify.conf index 2aeaa20..f81c196 100644 --- a/vmnotify.conf +++ b/vmnotify.conf @@ -1,8 +1,5 @@ -SERVER="127.0.0.1:5060" -LOCAL_IP="127.0.0.1" -FILE_DEBUG="0" -CONSOLE_DEBUG="0" -VERBOSE="" -SIPSAK=`which sipsak` -UUIDGEN=`which uuidgen` +SERVER=127.0.0.1:5060 +LOCAL_IP=127.0.0.1 +DEBUG=0 SIPFILE="/etc/ngcp-vmnotify/mwi.sip" +EXT_NOTIFY=no