mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
Populate DNID for SIP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2464 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1532,6 +1532,8 @@ static struct ast_channel *sip_new(struct sip_pvt *i, int state, char *title)
|
||||
tmp->callerid = strdup(i->callerid);
|
||||
if (strlen(i->rdnis))
|
||||
tmp->rdnis = strdup(i->rdnis);
|
||||
if (strlen(i->exten) && strcmp(i->exten, "s"))
|
||||
tmp->dnid = strdup(i->exten);
|
||||
tmp->priority = 1;
|
||||
if (strlen(i->domain)) {
|
||||
pbx_builtin_setvar_helper(tmp, "SIPDOMAIN", i->domain);
|
||||
|
Reference in New Issue
Block a user