Summary: | ASTERISK-02802: [patch] Preset Channel Vars In Users/Friends In iax.conf/sip.conf | ||
Reporter: | Anthony Minessale (anthm) | Labels: | |
Date Opened: | 2004-11-16 14:22:46.000-0600 | Date Closed: | 2008-01-15 15:14:00.000-0600 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) uservars.diff | |
Description: | This patch lets you add the following config item to friends and users in iax.conf and sip.conf setvar=<VARNAME>=<VARVAL> Any channel created by means of this user will have the aforementioned variables set automagicly. E.G. [mypeer] host=dynamic type=friend secret=1234 disallow=all allow=ulaw setvar=username=mypeer setvar=rateplan=plan9 ... so on ****** ADDITIONAL INFORMATION ****** Disclaimer on file. anthmct@yahoo.com | ||
Comments: | By: ewieling (ewieling) 2004-11-16 15:09:19.000-0600 Thank you! This is SO COOL! Is there any reason not to just make all blah= items variables in the dialplan? No reason why we can't see the allows and disallows and the usernames, etc. For multiple allow= items just make it ${allow[0]} ${allow[1]),etc Since you can put invalid items in the .conf files. blah=bob will not cause an error in sip.conf or iax.conf as far as I know. By: Brian West (bkw918) 2004-11-16 16:12:59.000-0600 Good example for sip would be: setvar=_ALERT_INFO=someringer bkw By: Mark Spencer (markster) 2004-11-16 22:11:32.000-0600 Merged (and documented) in CVS. Might be nice on SIP to support it on peers too (obviously not on iax) By: Russell Bryant (russell) 2004-11-25 01:57:11.000-0600 not in 1.0 By: Digium Subversion (svnbot) 2008-01-15 15:14:00.000-0600 Repository: asterisk Revision: 4267 U trunk/channels/chan_iax2.c U trunk/channels/chan_sip.c ------------------------------------------------------------------------ r4267 | markster | 2008-01-15 15:13:59 -0600 (Tue, 15 Jan 2008) | 2 lines Merge Tony's uservars (bug ASTERISK-2802) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=4267 |