Don't do reinvite if both parties talk diffrent codecs
[asterisk/asterisk.git] / channels / h323 / chan_h323.h
index 23e0b46..78d7fd4 100755 (executable)
@@ -23,6 +23,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
  *
+ * Version Info: $Id$
  */
 
 #include <arpa/inet.h>
@@ -84,7 +85,7 @@ struct oh323_alias {
        PBX application and passed through make_call 
        function*/
 typedef struct call_options {
-       const char     *callerid;
+       char               *callerid;
        int                             noFastStart;
        int                             noH245Tunnelling;
        int                             noSilenceSuppression;
@@ -105,6 +106,11 @@ typedef struct call_details {
        const char *sourceIp;
 } call_details_t;
 
+typedef struct rtp_info {
+       char *addr;
+       unsigned int port;
+} rtp_info_t;
+
 /* This is a callback prototype function, called pass
    DTMF down the RTP. */
 typedef int (*send_digit_cb)(unsigned, char);
@@ -112,7 +118,7 @@ send_digit_cb       on_send_digit;
 
 /* This is a callback prototype function, called to collect
    the external RTP port from Asterisk. */
-typedef int (*on_connection_cb)(unsigned);
+typedef rtp_info_t *(*on_connection_cb)(unsigned);
 on_connection_cb       on_create_connection; 
 
 /* This is a callback prototype function, called upon
@@ -158,7 +164,14 @@ extern "C" {
        void h323_debug(int, unsigned);
 
        /* callback function handler*/
-       void h323_callback_register(setup_incoming_cb, setup_outbound_cb, on_connection_cb, start_logchan_cb, clear_con_cb, con_established_cb, send_digit_cb);
+       void h323_callback_register(setup_incoming_cb,
+                                                               setup_outbound_cb,
+                                                               on_connection_cb,
+                                                               start_logchan_cb,
+                                                               clear_con_cb,
+                                                               con_established_cb,
+                                                               send_digit_cb);
+
 
        int h323_set_capability(int, int);
        int h323_set_alias(struct oh323_alias *);