----- Original Message ----- From: Douglas Garstang [mailto:dgarstang@oneeighty.com] To: Asterisk Users Mailing List - Non-Commercial Discussion [mailto:asterisk-users@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.> Doug.Joshua Colp Digium
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. 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. Doug.
Douglas Garstang wrote:> 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. > >Err, does accountcode get passed when terminating with SIP? I thought accountcode was only used for local call records.
> -----Original Message----- > From: Joshua Colp [mailto:jcolp@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@oneeighty.com] > To: Asterisk Users Mailing List - > Non-Commercial Discussion [mailto:asterisk-users@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.
> -----Original Message----- > From: Joshua Colp [mailto:jcolp@digium.com] > Sent: Tuesday, August 01, 2006 10:25 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: RE: [asterisk-users] IAX and Accountcode > > > ----- Original Message ----- > From: Douglas Garstang > [mailto:dgarstang@oneeighty.com] > To: Asterisk Users Mailing List - > Non-Commercial Discussion [mailto:asterisk-users@lists.digium.com] > Sent: > Tue, 01 Aug 2006 17:08:15 -0300 > Subject: RE: [asterisk-users] IAX and > Accountcode > > > > 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??? > > I would think that user B would be billed on the originating > system, not the system the call ended up at.Who gets billed for the call path from user B on system A to user C on system B?