Fri Jul 3 20:35:36 2009

Asterisk developer's documentation


chan_ooh323.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2004-2005 by Objective Systems, Inc.
00003  *
00004  * This software is furnished under an open source license and may be 
00005  * used and copied only in accordance with the terms of this license. 
00006  * The text of the license may generally be found in the root 
00007  * directory of this installation in the COPYING file.  It 
00008  * can also be viewed online at the following URL:
00009  *
00010  *   http://www.obj-sys.com/open/license.html
00011  *
00012  * Any redistributions of this file including modified versions must 
00013  * maintain this copyright notice.
00014  *
00015  *****************************************************************************/
00016 #ifndef _OO_CHAN_H323_H_
00017 #define _OO_CHAN_H323_H_
00018 
00019 #include <asterisk.h>
00020 #undef PACKAGE_NAME
00021 #undef PACKAGE_TARNAME
00022 #undef PACKAGE_VERSION
00023 #undef PACKAGE_STRING
00024 #undef PACKAGE_BUGREPORT
00025 
00026 #include <stdlib.h>
00027 #include <stdio.h>
00028 #include <string.h>
00029 #include <sys/socket.h>
00030 #include <sys/param.h>
00031 #include <arpa/inet.h>
00032 #include <net/if.h>
00033 #include <netinet/in.h>
00034 #include <netinet/in_systm.h>
00035 #include <netinet/ip.h>
00036 #include <unistd.h>
00037 #include <netdb.h>
00038 #include <errno.h>
00039 #include <fcntl.h>
00040 #include <sys/signal.h>
00041 
00042 #include <asterisk/lock.h>
00043 #include <asterisk/channel.h>
00044 #include <asterisk/config.h>
00045 #include <asterisk/logger.h>
00046 #include <asterisk/module.h>
00047 #include <asterisk/pbx.h>
00048 #include <asterisk/utils.h>
00049 #include <asterisk/options.h>
00050 #include <asterisk/sched.h>
00051 #include <asterisk/io.h>
00052 #include <asterisk/causes.h>
00053 #include <asterisk/rtp.h>
00054 #include <asterisk/acl.h>
00055 #include <asterisk/callerid.h>
00056 #include <asterisk/file.h>
00057 #include <asterisk/cli.h>
00058 #include <asterisk/app.h>
00059 #include <asterisk/musiconhold.h>
00060 #include <asterisk/manager.h>
00061 #include <asterisk/dsp.h>
00062 #include <asterisk/stringfields.h>
00063 
00064 #include "ootypes.h"
00065 #include "ooCapability.h"
00066 #include "oochannels.h"
00067 #include "ooh323ep.h"
00068 #include "ooh323cDriver.h"
00069 #include "ooCalls.h"
00070 #include "ooq931.h"
00071 #include "ooStackCmds.h"
00072 #include "ooCapability.h"
00073 #include "ooGkClient.h"
00074 
00075 
00076 struct ooh323_pvt;
00077 struct ooh323_user;
00078 struct ooh323_peer;
00079 /* Helper functions */
00080 struct ooh323_user *find_user(const char * name, const char *ip);
00081 struct ooh323_peer *find_peer(const char * name, int port);
00082 void ooh323_delete_peer(struct ooh323_peer *peer);   
00083 
00084 int delete_users(void);
00085 int delete_peers(void);
00086 
00087 int ooh323_destroy(struct ooh323_pvt *p);
00088 int reload_config(void);
00089 int restart_monitor(void);
00090 
00091 int configure_local_rtp(struct ooh323_pvt *p, ooCallData* call);
00092 void setup_rtp_connection(ooCallData *call, const char *remoteIp, 
00093                           int remotePort);
00094 void close_rtp_connection(ooCallData *call);
00095 struct ast_frame *ooh323_rtp_read
00096          (struct ast_channel *ast, struct ooh323_pvt *p);
00097 
00098 void ooh323_set_write_format(ooCallData *call, int fmt);
00099 void ooh323_set_read_format(ooCallData *call, int fmt);
00100 
00101 int ooh323_update_capPrefsOrderForCall
00102    (ooCallData *call, struct ast_codec_pref *prefs);
00103 
00104 int ooh323_convertAsteriskCapToH323Cap(int cap);
00105 
00106 int ooh323_convert_hangupcause_asteriskToH323(int cause);
00107 int ooh323_convert_hangupcause_h323ToAsterisk(int cause);
00108 int update_our_aliases(ooCallData *call, struct ooh323_pvt *p);
00109 
00110 /* h323 msg callbacks */
00111 int ooh323_onReceivedSetup(ooCallData *call, Q931Message *pmsg);
00112 int ooh323_onReceivedDigit(OOH323CallData *call, const char* digit);
00113 #endif

Generated on Fri Jul 3 20:35:36 2009 for Asterisk - the Open Source PBX by  doxygen 1.5.9