~ubuntu-branches/ubuntu/karmic/asterisk/karmic

« back to all changes in this revision

Viewing changes to utils/ael_main.c

  • Committer: Bazaar Package Importer
  • Author(s): Faidon Liambotis, Tzafrir Cohen, Faidon Liambotis
  • Date: 2007-12-06 17:20:21 UTC
  • mfrom: (1.1.19 upstream)
  • Revision ID: james.westby@ubuntu.com-20071206172021-pd0wrjirz3os7hia
Tags: 1:1.4.15~dfsg-1
* New upstream release (Closes: #452054)
  - Fix a potential corrupt of voicemail.conf on simultaneous PIN updates
    (Closes: #353227)

[ Tzafrir Cohen ]
* Add some sample/reference config files as documentation.
* Provide asterisk-bristuff for upgrading from Etch.
* Move libc-client to not be last, so debian/backports/xorcom.etch would
  still work.

[ Faidon Liambotis ]
* Really enable the libcap/ToS functionality; the previous patch didn't
  enable the functionality, even though the code and the libcap.so
  dependency were there. (Closes: #454342)
* Fix a minor issue with init script's stop target when running with
  safe_asterisk.
* Add chan_vpb, adding support for VoiceTronix OpenSwitch and OpenLine
  cards. (Closes: #396499)
* Fix debian/watch by using a pkg-voip wrapper to avoid upstream's silly
  redirections. (Closes: #449706)
* Use DEBVERSION as asterisk's version string.
* Disable the MD5 build sum that breaks all out-of-tree plugins (duh!).
* Create /usr/local/share/asterisk/sounds to put all site-specific
  non-modifiable sounds.
* Add a note about bugs.debian.org to the banner.
* Add noload for res_config_* since loading them results in errors and
  doesn't provide any functionality.
* News entries were added but we never shipped the file; ship NEWS.Debian.
* Add an entry to NEWS.Debian warning users about app_voicemail_*.so
  (Closes: #452596)
* Provide options in /etc/default/asterisk for configuring safe_asterisk.
  (Closes: #381786)

[ Tzafrir Cohen ]
* Provide a custom sounds directory under /var/lib - user-modifieble at
  runtime and hence not under /usr. (Closes: #337209)

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
                                           const char *registrar);
89
89
void pbx_builtin_setvar(void *chan, void *data);
90
90
struct ast_context * ast_context_create(void **extcontexts, const char *name, const char *registrar);
 
91
struct ast_context * ast_context_find_or_create(void **extcontexts, const char *name, const char *registrar);
91
92
void ast_context_add_ignorepat2(struct ast_context *con, const char *value, const char *registrar);
92
93
void ast_context_add_include2(struct ast_context *con, const char *value, const char *registrar);
93
94
void ast_context_add_switch2(struct ast_context *con, const char *value, const char *data, int eval, const char *registrar);
312
313
        return x;
313
314
}
314
315
 
 
316
struct ast_context * ast_context_find_or_create(void **extcontexts, const char *name, const char *registrar)
 
317
{
 
318
        struct ast_context *x = calloc(1, sizeof(*x));
 
319
        if (!x)
 
320
                return NULL;
 
321
        x->next = context_list;
 
322
        context_list = x;
 
323
        if (!no_comp)
 
324
                printf("Executed ast_context_find_or_create(conts, name=%s, registrar=%s);\n", name, registrar);
 
325
        conts++;
 
326
        strncpy(x->name, name, sizeof(x->name) - 1);
 
327
        strncpy(x->registrar, registrar, sizeof(x->registrar) - 1);
 
328
        return x;
 
329
}
 
330
 
315
331
void ast_context_add_ignorepat2(struct ast_context *con, const char *value, const char *registrar)
316
332
{
317
333
        if(!no_comp)