[Asterisk-Users] CDR of calls transferred via IAX[2]

Lele Forzani lele at windmill.it
Thu Sep 18 15:56:55 MST 2003


On Thursday 18 September 2003 23:36, Brancaleoni Matteo wrote:

> Ciao lele.

Ciao!

> > * one could pass via IAX a uniqueid when i transfer the call, and have
> > this unique id logged in the CDR records. This way any call segment
> > pertaining to the same phone call can be correlated for cdr purpose.
>
> nice, but that way we have to join 2 records for a real name... what
> happens when the switch & gateway are 'very remote'

I think that passing an unique identifier when an IAX box "switches" the call 
to another one by transfer could possibly phave some other advantages than 
cdr only, expecially if they are remote. 

>
> > * one could have the gateway allow trusted sources (the "switch") to set
> > via IAX the "accountcode" when transferring the call, and log it as an
> > "originalaccountcode" or even the "accountcode" itself in the cdr. This
> > way every cdr record in the network will have a reference to the actual
> > customer that made that event happen.
>
> I would stay on that, but without adding another cdr field
> (originalaccountcode), but simply, since we don't mind 'bout the
> user as we authenticate from the switch statement, just get the
> accountcode from the originating switch,so I agree with you.
> Seems also the simplest way to do that.
> I would add a sort of @switch in the accountcode, so my user 'caller'
> will be added to the cdr (of the gateway) as 'caller@<switch_name>'
> in order to be able to know that the user originated from a remote
> machine. if the accountcode hasn't the @<swicth_name> part, means
> that the user is local.

It will need, of course, some IAX configuration parameter saying that that 
trusted iax user/friend is allowed to override the accountcode. I like the 
@<switch> idea.


>
> > * one could devise some way to give back from the "gateway" to the
> > transferrer (the "switch") an indication that the call has ended, with
> > that many billable_seconds. (can this be done? i do not see it that
> > simple...) This way the switch would have all the cdr info in one cdr
> > row.
>
> that means a connection back. I would discard that

And probebly keeping some state information for already transferred and 
terminated calls, and delay the cdr record until some "call termination" 
message comes (what happens if that never comes?)

It would, however, get rid of the nonsense cdr recording on the "switch" of a 
billable call with 11 or 12 billable_seconds which are duplicate accounted on 
the "gateway".

thanks for your help,
lele





More information about the asterisk-users mailing list