[Freeswitch-users] Về: need help on variable and param

false cucku.cucku at yahoo.com.vn
Mon Apr 12 21:09:08 PDT 2010


Hi Michael

thank you for your explanation
so the Variables are use for phone call, the params are used for gateway, and sip config file

i found the link that lists of all Variables
http://wiki.freeswitch.org/wiki/Category:Variable

so when i config the gateway/ create new sip profile . 
can i use the variable on the link above to config as a params for gateway/sip profile,  
if not where i can get the list of valid params for gateway + sip configuration

i check the 1000.xml, there is a tag <param> </param>, could you do a brief explain it
<include>
  <user id="1000">
    <params>
      <param name="password" value="$${default_password}"/>
      <param name="vm-password" value="1000"/>
    </params>
    <variables>
      <variable name="toll_allow" value="domestic,international,local"/>
      <variable name="accountcode" value="1000"/>
      <variable name="user_context" value="default"/>
      <variable name="effective_caller_id_name" value="Extension 1000"/>
      <variable name="effective_caller_id_number" value="1000"/>
      <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>
      <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>
      <variable name="callgroup" value="techsupport"/>
    </variables>
  </user>
</include>

Thank you


________________________________
Từ: Michael Collins <msc at freeswitch.org>
Đến: freeswitch-users at lists.freeswitch.org
Gửi ngày: 0:18:54, Thứ Bảy, 10 tháng 4 2010 
Chủ đề: Re: [Freeswitch-users] need help on variable and param




2010/4/9 false <cucku.cucku at yahoo.com.vn>

Hi all
>
>
>i am confuse the param and variable in freeswitch, sometimes param is used for gateway, sometime variable is used for users

Remember that variables in this case are "channel variables" and are almost always associated with a specific phone call. These variables for a user are set whenever that user makes a phone call.

Parameters a generally used for configuration purposes. The "dial-string" parameter is related to the user channel, so when you do something like:
originate user/1001 &park()

It will use the dial-string parameter to turn "user/1001" into a proper dialstring. If it makes your brain hurt then don't worry about it. :)

Parameters are used in lots of configurations. The most obvious examples are in the SIP profiles and gateways. Are you working on something specific where the differences between params and variables are causing you trouble?

-MC

__________________________________________________
Bạn Có Sử Dụng Yahoo! Không?
Mệt mỏi vì thư rác?  Yahoo! Thư có chương trình bảo vệ chống thư rác hữu hiệu nhất trên mạng 
http://vn.mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100413/a5d6dda5/attachment.html 


More information about the FreeSWITCH-users mailing list