Skip to main content
Sign in
Snippets Groups Projects
Select Git revision
  • 02077a8caed12d662a268f15604f5a38f5f6b05c
  • devel default protected
  • attended-transfer-redesign
  • stop_tls_when_transport_disabled
  • asterisk_rdkb
  • lk_asterisk_service
  • wenpeng-testing-secur
  • fix_transport_config
  • wenpeng-1021
  • fix_crash_at_transport
  • transport-destroy-crash_pjproject
  • fix_transports_init
  • lk_debug_dialogs
  • lk_forking_revert
  • wenpeng-jul8
  • wenpeng-jul9
  • asterisk_rdkb_ipv6
  • 16916_rdkb_merge
  • lk_disable_registrar
  • wenpeng-100rel-ippbx
  • fix_multiple_dns_lookup
  • 22.0.0-pre1
  • 21.4.2
  • 20.9.2
  • 18.24.2
  • certified-20.7-cert2
  • certified-18.9-cert11
  • 21.4.1
  • 20.9.1
  • 18.24.1
  • 21.4.0
  • 20.9.0
  • 18.24.0
  • certified-20.7-cert1
  • certified-18.9-cert10
  • 21.4.0-rc1
  • 20.9.0-rc1
  • 18.24.0-rc1
  • 21.3.1
  • 20.8.1
  • 18.23.1
41 results

func_language.c

Blame
  • astman.c 18.60 KiB
    /*
     * Asterisk -- An open source telephony toolkit.
     *
     * Copyright (C) 1999 - 2005, Digium, Inc.
     *
     * Mark Spencer <markster@digium.com>
     *
     * See http://www.asterisk.org for more information about
     * the Asterisk project. Please do not directly contact
     * any of the maintainers of this project for assistance;
     * the project provides a web site, mailing lists and IRC
     * channels for your use.
     *
     * This program is free software, distributed under the terms of
     * the GNU General Public License Version 2. See the LICENSE file
     * at the top of the source tree.
     */
    
    /*
     *
     * ASTerisk MANager
     *
     */
     
    #include "asterisk/autoconfig.h"
    
    #include <newt.h>
    #include <stdio.h>
    #include <sys/time.h>
    #include <netdb.h>
    #include <netinet/in.h>
    #include <arpa/inet.h>
    #include <sys/socket.h>
    #include <sys/select.h>
    #include <fcntl.h>
    #include <string.h>
    #include <stdio.h>
    #include <errno.h>
    #include <unistd.h>
    #include <stdlib.h>
    
    #include "asterisk/md5.h"
    #include "asterisk/manager.h"
    #include "asterisk/linkedlists.h"
    
    #undef gethostbyname
    
    #define MAX_HEADERS 80
    #define MAX_LEN 256
    
    /*
     * 2005.05.27 - different versions of newt define the type of the buffer
     * for the 5th argument to newtEntry() as char ** or const char ** . To 
     * let the code compile cleanly with -Werror, we cast it to void * through 
     * _NEWT_CAST.
     */
    #define _NEWT_CAST (void *)
    
    static struct ast_mansession {
    	struct sockaddr_in sin;
    	int fd;
    	char inbuf[MAX_LEN];
    	int inlen;
    } session;
    
    struct ast_chan {
    	char name[80];
    	char exten[20];
    	char context[20];
    	char priority[20];