accountcode and user id not present in CDRs
I am using acls (cidr) to accept incoming calls from a gateway that I do not want to register in my FS box. I have this gateway configured in a xml file : freeswitch/conf/directory/default/gateway1.xml <include> <user id="GATEWAY1" mailbox="" cidr="xxx.xxx.xxx.xxx/32"> <params> <param name="password" value="1234"/> </params> <variables> <variable name="accountcode" value="CUSTOMER1"/> <variable name="user_context" value="my_context"/> <variable name="effective_caller_id_name" value="gateway1_callid"/> <variable name="effective_caller_id_number" value="238383838383"/> </variables> </user> </include> I have the corresponding cidr in my ACL in acl.conf.xml. I am able to make a call from that gateway to my FS but in my CDRs (both xml or cdr_csv) the accountcode or user id is not present. Any help on how to define an endpoint (originating) and use some attribute (like account_code or user id) for billing purposes?
Add ${accuntcode} to the CDR template in cdr.conf.xml... the template can include any variables from the session. /b On Nov 18, 2008, at 12:50 PM, regs@kinetix.gr wrote:
Any help on how to define an endpoint (originating) and use some attribute (like account_code or user id) for billing purposes?
The ${accountcode} variable IS set in the cdr_csv.xml conf file yet the field is empty after the call. Shouldn't it also show in the xml cdr? I thought the XML CDRs included all of the session variables. Brian West wrote:
Add ${accuntcode} to the CDR template in cdr.conf.xml... the template can include any variables from the session.
/b
On Nov 18, 2008, at 12:50 PM, regs@kinetix.gr wrote:
Any help on how to define an endpoint (originating) and use some attribute (like account_code or user id) for billing purposes?
_______________________________________________ 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'm going to guess that this is an inbound call to the user. Which means the variables aren't set inbound to the user. /b On Nov 18, 2008, at 1:40 PM, regs@kinetix.gr wrote:
The ${accountcode} variable IS set in the cdr_csv.xml conf file yet the field is empty after the call. Shouldn't it also show in the xml cdr? I thought the XML CDRs included all of the session variables.
No, this is an call FROM the user to another gateway. The user whose data I want in my CDRs is the originator of the call. Brian West wrote:
I'm going to guess that this is an inbound call to the user. Which means the variables aren't set inbound to the user.
/b
On Nov 18, 2008, at 1:40 PM, regs@kinetix.gr wrote:
The ${accountcode} variable IS set in the cdr_csv.xml conf file yet the field is empty after the call. Shouldn't it also show in the xml cdr? I thought the XML CDRs included all of the session variables.
_______________________________________________ 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
It will be set if you challenge them and they actually authenticate. I suspect you have turned auth-calls off or setup an ACL to let them in without a challenge. /b On Nov 19, 2008, at 5:14 AM, regs@kinetix.gr wrote:
No, this is an call FROM the user to another gateway. The user whose data I want in my CDRs is the originator of the call.
you have to manually set the var on the channel in your dialplan. On Tue, Nov 18, 2008 at 1:40 PM, regs@kinetix.gr <regs@kinetix.gr> wrote:
The ${accountcode} variable IS set in the cdr_csv.xml conf file yet the field is empty after the call. Shouldn't it also show in the xml cdr? I thought the XML CDRs included all of the session variables.
Brian West wrote:
Add ${accuntcode} to the CDR template in cdr.conf.xml... the template can include any variables from the session.
/b
On Nov 18, 2008, at 12:50 PM, regs@kinetix.gr wrote:
Any help on how to define an endpoint (originating) and use some attribute (like account_code or user id) for billing purposes?
_______________________________________________ Freeswitch-users mailing listFreeswitch-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Then what's the point of having it in the directory configuration file in the first place, if you don't mind me asking? I am really confused... :) Anthony Minessale wrote:
you have to manually set the var on the channel in your dialplan.
On Tue, Nov 18, 2008 at 1:40 PM, regs@kinetix.gr <mailto:regs@kinetix.gr> <regs@kinetix.gr <mailto:regs@kinetix.gr>> wrote:
The ${accountcode} variable IS set in the cdr_csv.xml conf file yet the field is empty after the call. Shouldn't it also show in the xml cdr? I thought the XML CDRs included all of the session variables.
Brian West wrote:
Add ${accuntcode} to the CDR template in cdr.conf.xml... the template can include any variables from the session.
/b
On Nov 18, 2008, at 12:50 PM, regs@kinetix.gr <mailto:regs@kinetix.gr> wrote:
Any help on how to define an endpoint (originating) and use some attribute (like account_code or user id) for billing purposes?
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org <mailto: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 <mailto: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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <mailto:MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com <mailto:PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <mailto:sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 <http://iax:guest@conference.freeswitch.org/888> googletalk:conf+888@conference.freeswitch.org <mailto:googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400 ------------------------------------------------------------------------
_______________________________________________ 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 (3)
-
Anthony Minessale
-
Brian West
-
regs@kinetix.gr