JR Richardson
2007-May-25 15:16 UTC
[asterisk-users] CDR not recording accountcode on SIP Response 302 Call Forward From Phone
Hi All, Call comes into Asterisk Asterisk answers and Dials SIP Phone SIP phone has call forward enabled to a long distance number Asterisk receives a SIP response 302 "Moved Temporarily" back from phone Asterisk then forwards inbound call to 'Local/number@context' thanks to phone 2 problems with the CDR: 1. intermittent 'bill sec' accuracy, sometimes 0 even when the call was answered and many minutes usage on call. 2. no accountcode is recorded. So the implication here is that if a phone user forwards their phone, I have no way of tracking the usage or what account the call should be billed to. I have a feeling this is normal behavior for Asterisk as no real channel gets invoked with an accountcode parameter, but there has got to be something that accounts for this situation. Does anyone have a work around or remedy? I'm running 1.2.9. Thanks. JR -- JR Richardson Engineering for the Masses
Steve Murphy
2007-May-28 06:27 UTC
[asterisk-users] CDR not recording accountcode on SIP Response 302 Call Forward From Phone
On Fri, 2007-05-25 at 17:17 -0500, JR Richardson wrote:> Hi All, > > Call comes into Asterisk > Asterisk answers and Dials SIP Phone > SIP phone has call forward enabled to a long distance number > Asterisk receives a SIP response 302 "Moved Temporarily" back from phone > Asterisk then forwards inbound call to 'Local/number@context' thanks to phone > > 2 problems with the CDR: > > 1. intermittent 'bill sec' accuracy, sometimes 0 even when the call > was answered and many minutes usage on call. > > 2. no accountcode is recorded. > > So the implication here is that if a phone user forwards their phone, > I have no way of tracking the usage or what account the call should be > billed to. I have a feeling this is normal behavior for Asterisk as > no real channel gets invoked with an accountcode parameter, but there > has got to be something that accounts for this situation. Does anyone > have a work around or remedy? > > I'm running 1.2.9. > > Thanks. > > JRJR-- Good news and bad news. To be truthful, I personally have doubts that 1.2 will ever be fixed as far as transfers are concerned. The changes that will be necessary to correct the situation will result in non-backwards compatible changes to the behavior of CDR's. It'll simply muck up everyone who has built CDR systems to date. That said, I'm beginning a "final solution" to the problems in 1.4 and trunk; I see what needs to be done, and how to do it. I think I have a grip on what to do with Local channels, and masqueraded channels. But the devil's in the details, and I'll find out how good my guesses are when I start testing. I'll try to make sure that channel goodies don't get smudged off the CDR's, like acctcode, etc. So, hang on, and I'll post notices as to my progress. murf -- Steve Murphy <murf@digium.com> Digium