mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-15 16:16:43 -07:00
Oops, set the userfield, not the account code...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4184 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+2
-2
@@ -6070,9 +6070,9 @@ static void receive_info(struct sip_pvt *p, struct sip_request *req)
|
||||
/* Client code (from SNOM phone) */
|
||||
if (p->useclientcode) {
|
||||
if (p->owner && p->owner->cdr)
|
||||
ast_cdr_setaccount(p->owner, c);
|
||||
ast_cdr_setuserfield(p->owner, c);
|
||||
if (p->owner && ast_bridged_channel(p->owner) && ast_bridged_channel(p->owner)->cdr)
|
||||
ast_cdr_setaccount(ast_bridged_channel(p->owner), c);
|
||||
ast_cdr_setuserfield(ast_bridged_channel(p->owner), c);
|
||||
transmit_response(p, "200 OK", req);
|
||||
} else {
|
||||
transmit_response(p, "403 Unauthorized", req);
|
||||
|
||||
Reference in New Issue
Block a user