update to reflect conversion of the accountcode to use stringfields (issue #6722)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@12961 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
5db6838b52
commit
9063466dfb
|
@ -2010,7 +2010,7 @@ struct ast_channel *mychannel,*genchannel;
|
||||||
strncpy(mychannel->exten, myrpt->exten, sizeof(mychannel->exten) - 1);
|
strncpy(mychannel->exten, myrpt->exten, sizeof(mychannel->exten) - 1);
|
||||||
strncpy(mychannel->context, myrpt->ourcontext, sizeof(mychannel->context) - 1);
|
strncpy(mychannel->context, myrpt->ourcontext, sizeof(mychannel->context) - 1);
|
||||||
if (myrpt->acctcode)
|
if (myrpt->acctcode)
|
||||||
strncpy(mychannel->accountcode, myrpt->acctcode, sizeof(mychannel->accountcode) - 1);
|
ast_string_field_set(mychannel, accountcode, myrpt->acctcode);
|
||||||
mychannel->priority = 1;
|
mychannel->priority = 1;
|
||||||
ast_channel_undefer_dtmf(mychannel);
|
ast_channel_undefer_dtmf(mychannel);
|
||||||
if (ast_pbx_start(mychannel) < 0)
|
if (ast_pbx_start(mychannel) < 0)
|
||||||
|
|
Loading…
Reference in New Issue