Summary:ASTERISK-02480: [request] SNOM 200 CMC code to UserData field in CDR
Reporter:revk (revk)Labels:
Date Opened:2004-09-27 12:41:02Date Closed:2004-11-07 19:39:21.000-0600
Versions:Frequency of
Environment:Attachments:( 0) snom.log
Description:The SNOM phones have a feature to set a CMC code on the user interface during a call. This is "client matter code", and can be used by solicitors, etc, to put their charge account number for the call in while on the call. It would be useful if asterisk could put this in to the CDR as the user data field, or have that option some how.


Using asterisk CVS-01/15/05-18:14:55 and SNOM200 3.52.
SNOM sends an INFO message with X-ClientCode: and the entered CMC code, and Content-Length: 0. Asterisk responses with 415 Unsupported media type.
Comments:By: revk (revk) 2004-09-27 12:59:58

CVS, head, this morning, but is showing 01/15/04 for some reason. It is the latest!

By: Brian West (bkw918) 2004-09-27 14:17:14

rm .version or do make update

By: revk (revk) 2004-09-27 15:16:28

Deleted the lot and re-loaded, It says CVS-HEAD now. Anyway, does not handle CMC codes (as I expected) still.

By: Olle Johansson (oej) 2004-10-03 12:31:32

Please add a debug of this transaction, from the original INVITE to the INFO and to the final BYE.

By: revk (revk) 2004-10-08 11:58:05

I have uplaoded a log from the SNOM showing the SIp messages both ways.
The relevant message is the INFO message at 17:54:36.813 containing
X-ClientCode: 555
This is when I entered the CMC code 555 on the phone.

By: Olle Johansson (oej) 2004-10-10 10:20:54

What you want us to do, is to somehow capture the INFO packet that arrives after the call setup, but before the teardown, save the header value in a channel variable so you can reach it after the dial() is completed, right?

By: Brian West (bkw918) 2004-10-10 12:30:54

Sounds like an Accountcode of some sort right?


By: Mark Spencer (markster) 2004-10-10 16:28:36

Sounds like it to me, we just need a new option i guess.

By: revk (revk) 2004-10-11 10:52:33

Yeh, I want to capture the INFO and put it in the userdata for the cdr at the end of the call.

By: Olle Johansson (oej) 2004-10-11 11:06:50

We really dont need a new option, just store the stuff in a channel variable named CMC and let the dial plan handle what to do with it in the CDR. (CDRUserFIeld)

Now, any coders?

By: Olle Johansson (oej) 2004-10-19 13:48:28

If you put a bounty on this, I might take the time to fix this :-)

By: Mark Spencer (markster) 2004-11-07 19:35:46.000-0600

Added to CVS.  You'll need to put "useclientcode=yes" in each user/friend/peer that you want this feature to be enabled for.  Due to the security risk of allowing a user/friend/peer to adjust their CDR in any way, I've decided *not* to allow this to be a global configuration option.

By: Russell Bryant (russell) 2004-11-07 19:39:21.000-0600

not included in 1.0