Merged revisions 82394 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r82394 | qwell | 2007-09-14 12:48:05 -0500 (Fri, 14 Sep 2007) | 5 lines If a channel does not have an owner, do not try to set a channel variable. This will end up making the channel variable global, which is not right. Closes issue #10720, patch by flefoll. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@82395 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
1fd1c6efa0
commit
72a73769a5
|
@ -10138,7 +10138,7 @@ static void *pri_dchannel(void *vpri)
|
|||
pri->pvts[chanpos]->logicalspan, pri->pvts[chanpos]->prioffset, pri->span, (int)e->hangup.aoc_units, (e->hangup.aoc_units == 1) ? "" : "s");
|
||||
|
||||
#ifdef SUPPORT_USERUSER
|
||||
if (!ast_strlen_zero(e->hangup.useruserinfo)) {
|
||||
if (pri->pvts[chanpos]->owner && !ast_strlen_zero(e->hangup.useruserinfo)) {
|
||||
pbx_builtin_setvar_helper(pri->pvts[chanpos]->owner, "USERUSERINFO", e->hangup.useruserinfo);
|
||||
}
|
||||
#endif
|
||||
|
|
Reference in New Issue