encode_allow.c File Reference

#include <stdio.h>
#include <string.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "../../parser/parse_allow.h"
#include "../../parser/msg_parser.h"
#include "encode_allow.h"

Include dependency graph for encode_allow.c:

Go to the source code of this file.

Defines

#define _GNU_SOURCE

Functions

int encode_allow (char *hdrstart, int hdrlen, unsigned int *bodi, char *where)
int print_encoded_allow (FILE *fd, char *hdr, int hdrlen, unsigned char *payload, int paylen, char *prefix)

Variables

char * mismetodos [] = {"UNDEF","INVITE","CANCEL","ACK","BYE","INFO","OPTIONS","UPDATE","REGISTER","MESSAGE","SUBSCRIBE","NOTIFY","PRACK","REFER","OTHER"}


Define Documentation

#define _GNU_SOURCE

Definition at line 40 of file encode_allow.c.


Function Documentation

int encode_allow ( char *  hdrstart,
int  hdrlen,
unsigned int *  bodi,
char *  where 
)

Encodes allow header.

TODO: Does not support the UNDEFINED header type !!!

Definition at line 56 of file encode_allow.c.

Referenced by encode_header().

int print_encoded_allow ( FILE *  fd,
char *  hdr,
int  hdrlen,
unsigned char *  payload,
int  paylen,
char *  prefix 
)

Definition at line 65 of file encode_allow.c.

References mismetodos.

Referenced by print_encoded_header().


Variable Documentation

char* mismetodos[] = {"UNDEF","INVITE","CANCEL","ACK","BYE","INFO","OPTIONS","UPDATE","REGISTER","MESSAGE","SUBSCRIBE","NOTIFY","PRACK","REFER","OTHER"}

Definition at line 49 of file encode_allow.c.

Referenced by print_encoded_allow().


Generated on Tue May 22 16:00:39 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6