www.pudn.com > exosip.rar > commands.h


/* This source has been formatted by an unregistered SourceFormatX */ 
/* If you want to remove this info, please register this shareware */ 
/* Please visit http://www.textrush.com to get more information    */ 
 
/* 
* josua - Jack's open sip User Agent 
* 
* Copyright (C) 2002,2003   Aymeric Moizard  
* 
* This is free software; you can redistribute it and/or modify 
* it under the terms of the GNU General Public License as 
* published by the Free Software Foundation; either version 2, 
* or (at your option) any later version. 
* 
* This is distributed in the hope that it will be useful, but 
* WITHOUT ANY WARRANTY; without even the implied warranty of 
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
* GNU General Public License for more details. 
* 
* You should have received a copy of the GNU General Public 
* License along with dpkg; if not, write to the Free Software 
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
*/ 
 
#ifndef _COMMANDS_H_ 
#define _COMMANDS_H_ 
 
#include  
 
#include  
#include "jcalls.h" 
 
 
typedef struct _main_config_t 
{ 
	char config_file[256]; /* -f    */ 
	char identity_file[256]; /* -I  */ 
	char nat_address[256]; /* -c   */ 
	char log_file[256]; /* -L       */ 
	int debug_level; /* -d    */ 
	int port; /* -p   default is 5060 */ 
	char identity[256]; /* -i   local identity */ 
	 
	/* the application can command to make a new call */ 
	char to[255]; /* -t !  */ 
	char route[256]; /* -r  */ 
	char subject[256]; /* -s           */ 
	int proto; /* -t 0 (udp) 1 (tcp) 2 (tls) */ 
	 
	char service_route[2048]; 
} main_config_t; 
 
 
int _josua_start_call(char *from, char *to, char *subject, char *route, 
					  char *port, void *reference); 
int _josua_mute_call(int did, char *wav_file); 
int _josua_unmute_call(int did); 
 
int _josua_start_options(char *from, char *to, char *route); 
 
int _josua_start_message(char *from, char *to, char *route, char *buf); 
 
int _josua_start_subscribe(char *from, char *to, char *route); 
 
int _josua_start_refer(char *refer_to, char *from, char *to, char *route); 
 
//int _josua_add_contact (char *sipurl, char *telurl, char *email, char *phone); 
 
//int _josua_register (int pos_id); 
//int _josua_unregister (int pos_id); 
 
int _josua_set_service_route(osip_message_t *response); 
 
#endif