Module: sip-router Branch: kamailio_3.0 Commit: 1203f6771a08e499ad0ef39d18f6096814db537a URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1203f677...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Tue Dec 15 22:58:10 2009 +0100
kactl: cisco_restart cmd update to latest t_uac_dlg
- reported by David at lublink.net
---
utils/kamctl/kamctl | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/utils/kamctl/kamctl b/utils/kamctl/kamctl index cbbe72b..dbcf227 100755 --- a/utils/kamctl/kamctl +++ b/utils/kamctl/kamctl @@ -866,11 +866,8 @@ $AVP_USER_COLUMN='$OSERUSER' AND $AVP_DOMAIN_COLUMN='$OSERDOMAIN'" cisco_restart() { require_ctlengine myhost=`get_my_host` - RET=`$CTLCMD t_uac_dlg NOTIFY "$1" "." \ - "From: sip:daemon@$myhost" \ - "To: <$1>" "Event: check-sync" \ - "Contact: sip:daemon@!!" "." "." | - head -1 ` + CMD="t_uac_dlg NOTIFY $1 . . "From:sip:daemon@$myhost\r\nTo:<$1>\r\nEvent:check-sync\r\nContact:sip:daemon@$myhost\r\n"" + RET=`$CTLCMD $CMD | head -1` print_status $RET }