[asterisk-users] IAX and Accountcode
Douglas Garstang
dgarstang at oneeighty.com
Tue Aug 1 13:08:15 MST 2006
> -----Original Message-----
> From: Joshua Colp [mailto:jcolp at digium.com]
> Sent: Tuesday, August 01, 2006 8:34 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [asterisk-users] IAX and Accountcode
>
>
> ----- Original Message -----
> From: Douglas Garstang
> [mailto:dgarstang at oneeighty.com]
> To: Asterisk Users Mailing List -
> Non-Commercial Discussion [mailto:asterisk-users at lists.digium.com]
> Sent:
> Tue, 01 Aug 2006 15:14:51 -0300
> Subject: [asterisk-users] IAX and
> Accountcode
>
>
> > Does the accountcode from a SIP user agent get passed to
> IAX when trunking a
> > call from one asterisk box to another? The SIP caller id,
> extension etc do
> > get passsed, so why not the account code? It's a standard field.
> > Doing a 'iax2 debug' doesn't even show the accountcode field.
>
> caller id and extension are part of a regular phone call,
> need to know where it came from and where it's going. Those
> are part of every protocol.
>
> > Good grief. IAX2 is really lacking in some areas. There's
> no way to pass
> > variables between asterisk systems (might be something
> considered as a
> > requirement for 'enterprise grade' and it doesn't look as
> if the accountcode
> > (which is kinda important) gets passed through the IAX2
> protocol either.
>
> IAX2 was designed to leverage the core capabilities of
> Asterisk and not take the same route that other protocols
> took by learning from their mistakes. There are just some
> things it wasn't designed to do 'nor does it claim to do. It
> wasn't made with the capability to transport accountcode or
> other arbitrary Asterisk specific information. Could it be
> added though? sure.
What about this scenario?
User A calls User B. User A and User B are registered on the same Asterisk system.
User B does an attended transfer, and transfers the call to user C, who is registered on a different asterisk system.
You set the accountcode to be user B's account code, as user B will be responsible and billed for this call leg.
You then do a DUNDi lookup, and get an IAX path to user C on the second asterisk system.
You dial user C. At this point, no account code was passed with IAX between the two Asterisk systems.
How can user B be billed for the call???
Doug.
More information about the asterisk-users
mailing list