Browse Source

add --b2b-url CLI parameter

git.mgm/mediaproxy-ng/2.0
Richard Fuchs 14 years ago
parent
commit
7b6c8db4f5
2 changed files with 5 additions and 0 deletions
  1. +1
    -0
      daemon/call.h
  2. +4
    -0
      daemon/main.c

+ 1
- 0
daemon/call.h View File

@ -111,6 +111,7 @@ struct callmaster {
int port_max;
unsigned int timeout;
unsigned int silent_timeout;
char *b2b_url;
unsigned char tos;
};


+ 4
- 0
daemon/main.c View File

@ -49,12 +49,14 @@ static u_int32_t redis_ip;
static u_int16_t redis_port;
static int redis_db = -1;
#endif
static char *b2b_url;
static void signals(void) {
signal(SIGPIPE, SIG_IGN);
signal(SIGCHLD, SIG_IGN);
}
static int rlim(int res, rlim_t val) {
@ -174,6 +176,7 @@ static void options(int *argc, char ***argv) {
{ "redis", 'r', 0, G_OPTION_ARG_STRING, &redisps, "Connect to Redis database", "IP:PORT" },
{ "redis-db", 'R', 0, G_OPTION_ARG_INT, &redis_db, "Which Redis DB to use", "INT" },
#endif
{ "b2b-url", 'b', 0, G_OPTION_ARG_STRING, &b2b_url, "XMLRPC URL of B2B UA" , "STRING" },
{ NULL, }
};
@ -313,6 +316,7 @@ int main(int argc, char **argv) {
m->timeout = timeout;
m->silent_timeout = silent_timeout;
m->tos = tos;
m->b2b_url = b2b_url;
c = NULL;
if (listenport) {


Loading…
Cancel
Save