implement ICE flags

pull/1/head
Richard Fuchs 13 years ago
parent a54ac574f5
commit 98c8513782

@ -1,3 +1,4 @@
#include "bencode.h"
#include <stdio.h>
#include <sys/uio.h>
#include <unistd.h>
@ -5,7 +6,6 @@
#include <assert.h>
#include <string.h>
#include "bencode.h"
/* set to 0 for alloc debugging, e.g. through valgrind */
#define BENCODE_MIN_BUFFER_PIECE_LEN 512

@ -1210,6 +1210,14 @@ static bencode_item_t *rtpp_function_call(bencode_buffer_t *bencbuf, struct sip_
bencode_dictionary_add_integer(dict, "repacketize", packetize);
break;
case '-':
bencode_dictionary_add_string(dict, "ICE", "remove");
break;
case '+':
bencode_dictionary_add_string(dict, "ICE", "force");
break;
default:
LM_ERR("unknown option `%c'\n", *flags_str);
goto error;

Loading…
Cancel
Save