]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix compilation of chan_h323 (bug 2786,2790,2669)
authorRussell Bryant <russell@russellbryant.com>
Thu, 4 Nov 2004 23:14:26 +0000 (23:14 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 4 Nov 2004 23:14:26 +0000 (23:14 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4161 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/h323/ast_h323.cpp
channels/h323/chan_h323.h

index afeee365e18c749b20326d7e9360f66d6d872329..4c01d957581a0c4c92ef40f38042d8eaf9adecac 100755 (executable)
@@ -722,7 +722,7 @@ void MyH323Connection::SendUserInputTone(char tone, unsigned duration)
        if (h323debug) {
                cout << "       -- Sending user input tone (" << tone << ") to remote" << endl;
        }
-       on_send_digit(GetCallReference(), tone);        
+       on_send_digit(GetCallReference(), tone, (const char *)GetCallToken());  
        H323Connection::SendUserInputTone(tone, duration);
 }
 
@@ -732,7 +732,7 @@ void MyH323Connection::OnUserInputTone(char tone, unsigned duration, unsigned lo
                if (h323debug) {
                        cout << "       -- Received user input tone (" << tone << ") from remote" << endl;
                }
-               on_send_digit(GetCallReference(), tone);
+               on_send_digit(GetCallReference(), tone, (const char *)GetCallToken());  
        }
        H323Connection::OnUserInputTone(tone, duration, logicalChannel, rtpTimestamp);
 }
@@ -743,7 +743,7 @@ void MyH323Connection::OnUserInputString(const PString &value)
                if (h323debug) {
                        cout <<  "      -- Received user input string (" << value << ") from remote." << endl;
                }
-               on_send_digit(GetCallReference(), value[0]);
+               on_send_digit(GetCallReference(), value[0], (const char *)GetCallToken());
        }       
 }
 
index e9406243a46b16bd1ba2aadccc50c21baa568912..e948a1a028f95f29d950a85d317ef1193caf9f24 100755 (executable)
@@ -114,7 +114,7 @@ typedef struct rtp_info {
 
 /* This is a callback prototype function, called pass
    DTMF down the RTP. */
-typedef int (*send_digit_cb)(unsigned, const char *);
+typedef int (*send_digit_cb)(unsigned, char, const char *);
 extern send_digit_cb   on_send_digit; 
 
 /* This is a callback prototype function, called to collect