ports/net/asterisk-devel/files/patch-channels::h323::ast_h323.cpp
Maxim Sobolev eb61df704e o Provide rc.d script;
o Fix build on 5.2.1.

Submitted by:	Marat N.Afanasyev <amarat@ksu.ru>
2004-12-29 00:01:54 +00:00

37 lines
999 B
C++

$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);
}
}