user variables on outbound calls
Hello, I've configured the following sip extension : <user id="1005"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1005"/> </params> <variables> <variable name="effective_caller_id_name" value="0221123456789"/> <variable name="effective_caller_id_number" value="02212345679" /> <variable name="outbound_caller_id_name" value="02212345679"/> <variable name="outbound_caller_id_number" value="02212345679"/> <variable name="user_context" value="sipoutbound"/> </variables> </user> When I'm dialing out from my sip client, the variables effective_caller_id_number and outbound_caller_id_number are not set. <context name="sipoutbound"> <extension name="socket"> <condition field="destination_number" expression="^(\d{5,20})$"> <action application="set" data="calltype=OUTBOUND" /> <action application="log" data="CRIT effective_caller_id_number ${effective_caller_id_number}"/> <action application="log" data="CRIT outbound_caller_id_number ${outbound_caller_id_number}"/> <action application="socket" data="192.168.1.185:8025 async full" /> <action application="log" data="DEBUG Back from Socket"/> </condition> </extension> </context> should't the variables be see with that configuration? Thanks Markus
Are you using digest authentication or ACL? Get a console debug log and drop it onto pastebin.freeswitch.org. -MC On Tue, Jun 26, 2012 at 11:27 AM, mbo <mbodbg@gmx.net> wrote:
Hello,
I've configured the following sip extension :
<user id="1005"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1005"/> </params> <variables> <variable name="effective_caller_id_name" value="0221123456789"/> <variable name="effective_caller_id_number" value="02212345679" /> <variable name="outbound_caller_id_name" value="02212345679"/> <variable name="outbound_caller_id_number" value="02212345679"/> <variable name="user_context" value="sipoutbound"/> </variables> </user>
When I'm dialing out from my sip client, the variables effective_caller_id_number and outbound_caller_id_number are not set.
<context name="sipoutbound"> <extension name="socket"> <condition field="destination_number" expression="^(\d{5,20})$"> <action application="set" data="calltype=OUTBOUND" /> <action application="log" data="CRIT effective_caller_id_number ${effective_caller_id_number}"/> <action application="log" data="CRIT outbound_caller_id_number ${outbound_caller_id_number}"/> <action application="socket" data=" 192.168.1.185:8025 async full" /> <action application="log" data="DEBUG Back from Socket"/> </condition> </extension> </context>
should't the variables be see with that configuration?
Thanks
Markus _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
ok, if I'm using digest based authentication the variables are filled. Do you know why it is like that? Thanks Markus Am 26.06.2012 um 21:22 schrieb Michael Collins:
Are you using digest authentication or ACL? Get a console debug log and drop it onto pastebin.freeswitch.org. -MC
On Tue, Jun 26, 2012 at 11:27 AM, mbo <mbodbg@gmx.net> wrote: Hello,
I've configured the following sip extension :
<user id="1005"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1005"/> </params> <variables> <variable name="effective_caller_id_name" value="0221123456789"/> <variable name="effective_caller_id_number" value="02212345679" /> <variable name="outbound_caller_id_name" value="02212345679"/> <variable name="outbound_caller_id_number" value="02212345679"/> <variable name="user_context" value="sipoutbound"/> </variables> </user>
When I'm dialing out from my sip client, the variables effective_caller_id_number and outbound_caller_id_number are not set.
<context name="sipoutbound"> <extension name="socket"> <condition field="destination_number" expression="^(\d{5,20})$"> <action application="set" data="calltype=OUTBOUND" /> <action application="log" data="CRIT effective_caller_id_number ${effective_caller_id_number}"/> <action application="log" data="CRIT outbound_caller_id_number ${outbound_caller_id_number}"/> <action application="socket" data="192.168.1.185:8025 async full" /> <action application="log" data="DEBUG Back from Socket"/> </condition> </extension> </context>
should't the variables be see with that configuration?
Thanks
Markus _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
If you specify the ACL within the user as a CIDR then it will work too. See: http://wiki.freeswitch.org/wiki/Acl#Users If you use the generic ACL then you haven't instructed FreeSWITCH which account information it should use. -Avi On Wed, Jun 27, 2012 at 2:00 PM, mbo <mbodbg@gmx.net> wrote:
ok, if I'm using digest based authentication the variables are filled. Do you know why it is like that?
Thanks
Markus
Am 26.06.2012 um 21:22 schrieb Michael Collins:
Are you using digest authentication or ACL? Get a console debug log and drop it onto pastebin.freeswitch.org. -MC
On Tue, Jun 26, 2012 at 11:27 AM, mbo <mbodbg@gmx.net> wrote:
Hello,
I've configured the following sip extension :
<user id="1005"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1005"/> </params> <variables> <variable name="effective_caller_id_name" value="0221123456789"/> <variable name="effective_caller_id_number" value="02212345679" /> <variable name="outbound_caller_id_name" value="02212345679"/> <variable name="outbound_caller_id_number" value="02212345679"/> <variable name="user_context" value="sipoutbound"/> </variables> </user>
When I'm dialing out from my sip client, the variables effective_caller_id_number and outbound_caller_id_number are not set.
<context name="sipoutbound"> <extension name="socket"> <condition field="destination_number" expression="^(\d{5,20})$"> <action application="set" data="calltype=OUTBOUND" /> <action application="log" data="CRIT effective_caller_id_number ${effective_caller_id_number}"/> <action application="log" data="CRIT outbound_caller_id_number ${outbound_caller_id_number}"/> <action application="socket" data=" 192.168.1.185:8025 async full" /> <action application="log" data="DEBUG Back from Socket"/> </condition> </extension> </context>
should't the variables be see with that configuration?
Thanks
Markus _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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)
-
Avi Marcus
-
mbo
-
Michael Collins