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.
Actually, I think FS does have account code. That should be defined in the user directory page itself, I'm not too sure myself, but I won't be surprised if there was account code in the directory page. On Sun, Jan 30, 2011 at 6:04 PM, 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
There are many ways to implement this. The easiest way would be to add something like: <action application="set" data="accountcode=XXX"/> or, you can set your own variable like: <action application="set" data="src_gw_name=XXX"/> -djbinter On Sun, Jan 30, 2011 at 6:09 PM, curriegrad2004 <curriegrad2004@gmail.com>wrote:
Actually, I think FS does have account code. That should be defined in the user directory page itself, I'm not too sure myself, but I won't be surprised if there was account code in the directory page.
On Sun, Jan 30, 2011 at 6:04 PM, 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
You can define the account code in user directory like below <variable name="accountcode" value="930145"/> Also in xml_cdr you have the full information. including inbound and outbound. <cdr> <channel_data> <state>CS_REPORTING</state> <direction>inbound</direction> http://wiki.freeswitch.org/wiki/Mod_xml_cdr Thanks Lloyd On Sun, Jan 30, 2011 at 9:09 PM, curriegrad2004 <curriegrad2004@gmail.com>wrote:
Actually, I think FS does have account code. That should be defined in the user directory page itself, I'm not too sure myself, but I won't be surprised if there was account code in the directory page.
On Sun, Jan 30, 2011 at 6:04 PM, 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
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. -Steve On 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
I do the same as Steven, except as I use only pre-defined gateways, I already have the ${sip_gateway_name} variable available for me to use in the XML or CSV CDR. David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 31/01/2011 à 09:19, Steven Ayre a écrit :
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.
-Steve
On 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
Of course that only goes for Sofia gateways so ignores connecting via the IP or using anything other than SIP. But for most people that'd be good enough. :) -Steve On 31 January 2011 08:33, David Ponzone <david.ponzone@ipeva.fr> wrote:
I do the same as Steven, except as I use only pre-defined gateways, I already have the ${sip_gateway_name} variable available for me to use in the XML or CSV CDR.
David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34
Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com
*Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. **IPeva** décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.* * *
Le 31/01/2011 à 09:19, Steven Ayre a écrit :
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.
-Steve
On 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
_______________________________________________ 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
participants (6)
-
Aloysius Lloyd
-
curriegrad2004
-
David Ponzone
-
DJB International
-
FERNANDO VILLARROEL
-
Steven Ayre