diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2004-12-29 00:01:54 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2004-12-29 00:01:54 +0000 |
commit | eb61df704e312ef2d0828dffad0ce3000ef26f6b (patch) | |
tree | 0371bb7fffe2bf82a8ddc1722fc40e3682ff560e /net/asterisk14/files | |
parent | 8a2f81433d508b8aa02ba4c81a95b5e373ceb0cc (diff) | |
download | ports-eb61df704e312ef2d0828dffad0ce3000ef26f6b.tar.gz ports-eb61df704e312ef2d0828dffad0ce3000ef26f6b.zip |
Notes
Diffstat (limited to 'net/asterisk14/files')
-rw-r--r-- | net/asterisk14/files/asterisk.sh | 25 | ||||
-rw-r--r-- | net/asterisk14/files/patch-channels::h323::ast_h323.cpp | 37 |
2 files changed, 62 insertions, 0 deletions
diff --git a/net/asterisk14/files/asterisk.sh b/net/asterisk14/files/asterisk.sh new file mode 100644 index 000000000000..deee10c0cbe4 --- /dev/null +++ b/net/asterisk14/files/asterisk.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +# PROVIDE asterisk +# REQUIRE: NETWORKING SERVERS +# BEFORE: DAEMON +# KEYWORD: FreeBSD shutdown + +# +# Add the following lines to /etc/rc.conf to enable asterisk: +# +# asterisk_enable="YES" +# + +. /etc/rc.subr + +name=asterisk +rcvar=`set_rcvar` + +command=/usr/local/sbin/asterisk +pidfile=/var/run/asterisk.pid + +asterisk_enable=${asterisk_enable:-"NO"} + +load_rc_config $name +run_rc_command "$1" diff --git a/net/asterisk14/files/patch-channels::h323::ast_h323.cpp b/net/asterisk14/files/patch-channels::h323::ast_h323.cpp new file mode 100644 index 000000000000..6cfae1ec5d05 --- /dev/null +++ b/net/asterisk14/files/patch-channels::h323::ast_h323.cpp @@ -0,0 +1,37 @@ + +$FreeBSD$ + +--- channels/h323/ast_h323.cpp.orig ++++ channels/h323/ast_h323.cpp +@@ -722,7 +722,7 @@ + if (h323debug) { + cout << " -- Sending user input tone (" << tone << ") to remote" << endl; + } +- on_send_digit(GetCallReference(), tone); ++ on_send_digit(GetCallReference(), &tone); + H323Connection::SendUserInputTone(tone, duration); + } + +@@ -732,18 +732,20 @@ + if (h323debug) { + cout << " -- Received user input tone (" << tone << ") from remote" << endl; + } +- on_send_digit(GetCallReference(), tone); ++ on_send_digit(GetCallReference(), &tone); + } + H323Connection::OnUserInputTone(tone, duration, logicalChannel, rtpTimestamp); + } + + void MyH323Connection::OnUserInputString(const PString &value) + { ++ char val; + if (mode == H323_DTMF_RFC2833) { + if (h323debug) { + cout << " -- Received user input string (" << value << ") from remote." << endl; + } +- on_send_digit(GetCallReference(), value[0]); ++ val = value[0]; ++ on_send_digit(GetCallReference(), &val); + } + } + |