Hi all i am confuse the param and variable in freeswitch, sometimes param is used for gateway, sometime variable is used for users example: <param> <param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/> </param> ============= <variables> <variable name="record_stereo" value="true"/> <variable name="default_gateway" value="$${default_provider}"/> <variable name="default_areacode" value="$${default_areacode}"/> <variable name="transfer_fallback_extension" value="operator"/> <variable name="user_context" value="company-b.org"/> </variables> what is difference between param and variable how to use param and variable is there a list of variable and param Thank you Bạn luôn muốn kết nối với nhiều bạn bè hơn trên blog và trang web cá nhân? Tạo Pingbox mới nhất ngay hôm nay! http://vn.messenger.yahoo.com/pingbox/
2010/4/9 false <cucku.cucku@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
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@freeswitch.org> Đến: freeswitch-users@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@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
participants (2)
-
false
-
Michael Collins