Overriding domain variables
Howdy all, Is it possible to override a variable set in the domain by setting it again further down in the XML directory? I have the following scenario: <domain name=”sip.test.com”> <variables> <variable name=”call_timeout” value=”30”> </variables> ... <user id=”iskren”> <variables> <variable name=”call_timeout” value=”15”/> </variable> </user> .... </domain> However, calling that user still times out after 30 seconds. Can this be done in the directory, or I must set it in the dialplan? Thanks! Kind regards, -- *Iskren Hadzhinedev*
Hi, what you do here is setting 15 sec time-out on outgoing calls that "iskren" dials. This does not affect what happens on incoming calls from others to "iskren". One way to achieve what you want is to change / set call timeout in the dialplan just before you bridge the call to "iskren" On 14-09-29 10:34 AM, Iskren Hadzhinedev wrote:
Howdy all,
Is it possible to override a variable set in the domain by setting it again further down in the XML directory?
I have the following scenario:
<domain name=”sip.test.com”>
<variables>
<variable name=”call_timeout” value=”30”>
</variables>
...
<user id=”iskren”>
<variables>
<variable name=”call_timeout” value=”15”/>
</variable>
</user>
....
</domain>
However, calling that user still times out after 30 seconds.
Can this be done in the directory, or I must set it in the dialplan?
Thanks!
Kind regards,
--
Iskren Hadzhinedev
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
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
here's an example of using user variables on inbound calls: http://txlab.wordpress.com/2013/06/29/freeswitch-limiting-the-number-of-conc... With user_data() function, you retrieve the variables that you need. On Mon, Sep 29, 2014 at 4:48 PM, Victor Chukalovskiy < victor.chukalovskiy@gmail.com> wrote:
Hi, what you do here is setting 15 sec time-out on outgoing calls that "iskren" dials. This does not affect what happens on incoming calls from others to "iskren".
One way to achieve what you want is to change / set call timeout in the dialplan just before you bridge the call to "iskren"
On 14-09-29 10:34 AM, Iskren Hadzhinedev wrote:
Howdy all,
Is it possible to override a variable set in the domain by setting it again further down in the XML directory?
I have the following scenario:
<domain name=”sip.test.com”>
<variables>
<variable name=”call_timeout” value=”30”>
</variables>
...
<user id=”iskren”>
<variables>
<variable name=”call_timeout” value=”15”/>
</variable>
</user>
....
</domain>
However, calling that user still times out after 30 seconds.
Can this be done in the directory, or I must set it in the dialplan?
Thanks!
Kind regards,
--
Iskren Hadzhinedev
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
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...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
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
Thank you very much, it works like a charm! Kind regards, -- *Iskren Hadzhinedev* here's an example of using user variables on inbound calls: http://txlab.wordpress.com/2013/06/29/freeswitch-limiting-the-number-of-concurrent-calls-on-multiple-sip-accounts/[1] With user_data() function, you retrieve the variables that you need. On Mon, Sep 29, 2014 at 4:48 PM, Victor Chukalovskiy <victor.chukalovskiy@gmail.com[2]> wrote: Hi, what you do here is setting 15 sec time-out on outgoing calls that "iskren" dials.This does not affect what happens on incoming calls from others to "iskren". One way to achieve what you want is to change / set call timeout in the dialplan just before you bridge the call to "iskren" Howdy all, Is it possible to override a variable set in the domain by setting it again further down in the XML directory? I have the following scenario: <domain name=”sip.test.com[3]”> <variables> <variable name=”call_timeout” value=”30”> </variables> ... <user id=”iskren”> <variables> <variable name=”call_timeout” value=”15”/> </variable> </user> .... </domain> However, calling that user still times out after 30 seconds. Can this be done in the directory, or I must set it in the dialplan? Thanks! Kind regards, -- *Iskren Hadzhinedev* _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org[4] http://www.freeswitchsolutions.com[5] Official FreeSWITCH Sites http://www.freeswitch.org[6] http://confluence.freeswitch.org[7] http://www.cluecon.com[8] FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com[9] FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org[10] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users[11] UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users[12] http://www.freeswitch.org[6] _________________________________________________________________________Professional FreeSWITCH Consulting Services: consulting@freeswitch.org[4] http://www.freeswitchsolutions.com[5] http://www.freeswitch.org[6] http://confluence.freeswitch.org[7] http://www.cluecon.com[8] http://www.cudatel.com[9] FreeSWITCH-users@lists.freeswitch.org[10] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users[11] http://lists.freeswitch.org/mailman/options/freeswitch-users[12]
participants (3)
-
Iskren Hadzhinedev
-
Stanislav Sinyagin
-
Victor Chukalovskiy