Oops, set the userfield, not the account code...
authorMark Spencer <markster@digium.com>
Mon, 8 Nov 2004 00:37:02 +0000 (00:37 +0000)
committerMark Spencer <markster@digium.com>
Mon, 8 Nov 2004 00:37:02 +0000 (00:37 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4184 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 58afb29..44c4bc1 100755 (executable)
@@ -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);