Dear Michael.

Thank you for you help. I will try to explain but excuse my bad english.

In my FS i received traffic from a gateway A and this traffic i  forward to another Gateway B.

Gateway A ----> My FS -----> Gateway B.

Ok in my CDR i have both calls, inbound and outbound calls. So i need setup inbound call with accountcode = foo and outbound call i need setup with another accountcode variable like accountcode = foo1.

So like this i will can inform to my customer (Gateway A) how much traffic i receive from him and i will inform to my provider (Gateway B ) how much traffic i send to him.

It's possible or let me know another idea how i can do.

Regards.

--- On Mon, 4/11/11, Michael Collins <msc@freeswitch.org> wrote:

From: Michael Collins <msc@freeswitch.org>
Subject: Re: [Freeswitch-users] Account ACL
To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org>
Date: Monday, April 11, 2011, 6:31 PM



On Mon, Apr 11, 2011 at 2:23 PM, FERNANDO VILLARROEL <fvillarroel@yahoo.com> wrote:
Dear.

Yes i need setup b leg with a accountcode different to a leg, like this

a leg = accountcode = foo
b leg = accountcode = foo1

I trying with

 <action application="export" data="accountcode=foo"/>

But in my CDR for inbound and outbound call is equal to foo.

I need setup inbound call with accountcode = foo and outbound call with accountcode = foo1


How do you know that the outbound leg needs to be "foo1"? In other words, where do you look to get the value of "foo1"?
-MC


-----Inline Attachment Follows-----