|
|
@ -22,9 +22,10 @@
|
|
|
|
#include <asterisk/dundi.h>
|
|
|
|
#include <asterisk/dundi.h>
|
|
|
|
#include "dundi-parser.h"
|
|
|
|
#include "dundi-parser.h"
|
|
|
|
#include <asterisk/dundi.h>
|
|
|
|
#include <asterisk/dundi.h>
|
|
|
|
|
|
|
|
|
|
|
|
static void internaloutput(const char *str)
|
|
|
|
static void internaloutput(const char *str)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
printf(str);
|
|
|
|
fputs(str, stdout);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static void internalerror(const char *str)
|
|
|
|
static void internalerror(const char *str)
|
|
|
@ -91,6 +92,7 @@ int dundi_str_short_to_eid(dundi_eid *eid, char *s)
|
|
|
|
eid->eid[x] = eid_int[x];
|
|
|
|
eid->eid[x] = eid_int[x];
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int dundi_eid_zero(dundi_eid *eid)
|
|
|
|
int dundi_eid_zero(dundi_eid *eid)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int x;
|
|
|
|
int x;
|
|
|
@ -223,7 +225,6 @@ static void dump_byte(char *output, int maxlen, void *value, int len)
|
|
|
|
|
|
|
|
|
|
|
|
static char *proto2str(int proto, char *buf, int bufsiz)
|
|
|
|
static char *proto2str(int proto, char *buf, int bufsiz)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
switch(proto) {
|
|
|
|
switch(proto) {
|
|
|
|
case DUNDI_PROTO_NONE:
|
|
|
|
case DUNDI_PROTO_NONE:
|
|
|
|
strncpy(buf, "None", bufsiz - 1);
|
|
|
|
strncpy(buf, "None", bufsiz - 1);
|
|
|
|