For inbound (customer), I set a account_code variable on the aleg. You do that either from dialplan or user directory.
For outbound (provider), I set gateway_name on the bleg in the dialstring, e.g. "[gateway_name=gw1]sofia/gateway/gw1/$1,[gateway_name=gw2]sofia/profile/outbound/$1@a.b.c.d" - mod_lcr does this with carrier_name for example.
You're free to use whatever variable names suit you best.
-SteveOn 31 January 2011 02:04, FERNANDO VILLARROEL <fvillarroel@yahoo.com> wrote:
Hi All.
If i received traffic from a customer and i forward this traffic to a provider, How i can know the traffic inbound and outbound (customer and provider)?
Like accountcode of Asterisk.
Regards.
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org