Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] accountcode and user id not present in CD


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
regs at kinetix.gr
Guest





PostPosted: Tue Nov 18, 2008 1:59 pm    Post subject: [Freeswitch-users] accountcode and user id not present in CD Reply with quote

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?


_______________________________________________
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
Back to top
brian at freeswitch.org
Guest





PostPosted: Tue Nov 18, 2008 2:04 pm    Post subject: [Freeswitch-users] accountcode and user id not present in CD Reply with quote

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:

Quote:
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
Back to top
regs at kinetix.gr
Guest





PostPosted: Tue Nov 18, 2008 2:46 pm    Post subject: [Freeswitch-users] accountcode and user id not present in CD Reply with quote

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:
Quote:
Quote:
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 (regs@kinetix.gr) wrote:

Quote:
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 (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
Back to top
brian at freeswitch.org
Guest





PostPosted: Tue Nov 18, 2008 3:07 pm    Post subject: [Freeswitch-users] accountcode and user id not present in CD Reply with quote

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:

Quote:
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
Back to top
anthony.minessale at g...
Guest





PostPosted: Tue Nov 18, 2008 3:32 pm    Post subject: [Freeswitch-users] accountcode and user id not present in CD Reply with quote

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) <regs@kinetix.gr (regs@kinetix.gr)> wrote:
Quote:
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:
Quote:
Quote:
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 (regs@kinetix.gr) wrote:

Quote:
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 (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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
regs at kinetix.gr
Guest





PostPosted: Wed Nov 19, 2008 6:24 am    Post subject: [Freeswitch-users] accountcode and user id not present in CD Reply with quote

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:
Quote:
Quote:
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 (regs@kinetix.gr) wrote:

Quote:
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 (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
Back to top
regs at kinetix.gr
Guest





PostPosted: Wed Nov 19, 2008 6:24 am    Post subject: [Freeswitch-users] accountcode and user id not present in CD Reply with quote

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... Smile

Anthony Minessale wrote:
Quote:
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) <regs@kinetix.gr (regs@kinetix.gr)> wrote:
Quote:
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:
Quote:
Quote:
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:

Quote:
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





_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Quote:


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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
Back to top
brian at freeswitch.org
Guest





PostPosted: Wed Nov 19, 2008 6:32 am    Post subject: [Freeswitch-users] accountcode and user id not present in CD Reply with quote

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:

Quote:
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.


_______________________________________________
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services