mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-15 00:41:02 +00:00
Merge outgoing MSN support + Remote Party ID for SIP (bug #1841) with cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3253 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -63,6 +63,9 @@ static char msn[AST_MAX_EXTENSION]="";
|
||||
/* Default Listen */
|
||||
static char incomingmsn[AST_MAX_EXTENSION]="";
|
||||
|
||||
/* Default valid outgoing MSN */
|
||||
static char outgoingmsn[AST_MAX_EXTENSION]="";
|
||||
|
||||
/* Default group */
|
||||
static unsigned int cur_group = 0;
|
||||
|
||||
@@ -708,6 +711,7 @@ static struct ast_modem_pvt *mkif(char *iface)
|
||||
strncpy(tmp->language, language, sizeof(tmp->language)-1);
|
||||
strncpy(tmp->msn, msn, sizeof(tmp->msn)-1);
|
||||
strncpy(tmp->incomingmsn, incomingmsn, sizeof(tmp->incomingmsn)-1);
|
||||
snprintf(tmp->outgoingmsn, sizeof(tmp->outgoingmsn), ",%s,", outgoingmsn);
|
||||
strncpy(tmp->dev, iface, sizeof(tmp->dev)-1);
|
||||
/* Maybe in the future we want to allow variable
|
||||
serial settings */
|
||||
@@ -968,6 +972,8 @@ int load_module()
|
||||
strncpy(msn, v->value, sizeof(msn)-1);
|
||||
} else if (!strcasecmp(v->name, "incomingmsn")) {
|
||||
strncpy(incomingmsn, v->value, sizeof(incomingmsn)-1);
|
||||
} else if (!strcasecmp(v->name, "outgoingmsn")) {
|
||||
strncpy(outgoingmsn, v->value, sizeof(outgoingmsn)-1);
|
||||
} else if (!strcasecmp(v->name, "language")) {
|
||||
strncpy(language, v->value, sizeof(language)-1);
|
||||
} else if (!strcasecmp(v->name, "group")) {
|
||||
|
Reference in New Issue
Block a user