mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 19:43:03 +00:00
Expose SIP URI (bug #3017)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4432 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2017,6 +2017,9 @@ static struct ast_channel *sip_new(struct sip_pvt *i, int state, char *title)
|
||||
if (!ast_strlen_zero(i->exten) && strcmp(i->exten, "s"))
|
||||
tmp->cid.cid_dnid = strdup(i->exten);
|
||||
tmp->priority = 1;
|
||||
if (!ast_strlen_zero(i->uri)) {
|
||||
pbx_builtin_setvar_helper(tmp, "SIPURI", i->uri);
|
||||
}
|
||||
if (!ast_strlen_zero(i->domain)) {
|
||||
pbx_builtin_setvar_helper(tmp, "SIPDOMAIN", i->domain);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user