View previous topic :: View next topic |
Author |
Message |
regs at kinetix.gr Guest
|
Posted: Tue Nov 18, 2008 1:59 pm Post subject: [Freeswitch-users] accountcode and user id not present in CD |
|
|
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
|
|
Back to top |
|
|
regs at kinetix.gr Guest
|
Posted: Tue Nov 18, 2008 2:46 pm Post subject: [Freeswitch-users] accountcode and user id not present in CD |
|
|
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: |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Tue Nov 18, 2008 3:07 pm Post subject: [Freeswitch-users] accountcode and user id not present in CD |
|
|
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
|
Posted: Tue Nov 18, 2008 3:32 pm Post subject: [Freeswitch-users] accountcode and user id not present in CD |
|
|
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:
--
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
|
Posted: Wed Nov 19, 2008 6:24 am Post subject: [Freeswitch-users] accountcode and user id not present in CD |
|
|
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: |
|
Back to top |
|
|
regs at kinetix.gr Guest
|
Posted: Wed Nov 19, 2008 6:24 am Post subject: [Freeswitch-users] accountcode and user id not present in CD |
|
|
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: 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:
--
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 |
|
|
brian at freeswitch.org Guest
|
Posted: Wed Nov 19, 2008 6:32 am Post subject: [Freeswitch-users] accountcode and user id not present in CD |
|
|
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 |
|
|
|