Asterisk
  1. Asterisk
  2. ASTERISK-3675

[PATCH] adds support for applications starting as feature

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Severity: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Target Release Version/s: None
    • Component/s: Core/NewFeature
    • Labels:
      None
    • Mantis ID:
      3764
    • Regression:
      No

      Description

      This patch adds an section: [applicationmap] to features.conf.

      In this Section an user can define a key-sequence, and an
      application and the party on which this application is executed when the sequence is pressed.

      The Syntax is:

      [applicationmap]
      <featurename> => <keysequence>,<caller|callee>,<App> [,App Args]

      This is implemented by adding support for dynamic feature adding. So we have now 2 new Functions:

      ast_register_feature(struct ast_call_feature *p);
      ast_unregister_feature(struct ast_call_feature *p);

      which explain theirself fairly well i think.

      The ast_call_feature struct is now moved to features.h and contains 3 new Memenbers:

      char *app;
      char *app_arg;
      char *party;

      which explain theirself as good as the reg/unreg functions i think.

      As You see this patch adds also the ability for apps and chan_drivers to register dynamic features.

      Hope this is useful to anyone.

      Note: You can use the Goto App also to jump into the extensions conf

                • ADDITIONAL INFORMATION ******

      Disclaimer is on file

      Diff Cmd:
      cvs diff -u configs/features.conf.sample include/asterisk/features.h res/res_features.c

        Activity

        Hide
        Kevin P. Fleming (Inactive) added a comment -

        Committed to CVS HEAD, but it needs work... at least when reload() is called, the features will be added to the list again. Please get a new patch ready ASAP

        Show
        Kevin P. Fleming (Inactive) added a comment - Committed to CVS HEAD, but it needs work... at least when reload() is called, the features will be added to the list again. Please get a new patch ready ASAP
        Hide
        crich added a comment -

        new patch ready

        Show
        crich added a comment - new patch ready
        Hide
        Kevin P. Fleming (Inactive) added a comment -

        Committed to CVS HEAD with minor mods, thanks!

        Show
        Kevin P. Fleming (Inactive) added a comment - Committed to CVS HEAD with minor mods, thanks!
        Hide
        Digium Subversion added a comment -

        Repository: asterisk
        Revision: 6374

        U trunk/configs/features.conf.sample
        U trunk/include/asterisk/channel.h
        U trunk/include/asterisk/features.h
        U trunk/res/res_features.c

        ------------------------------------------------------------------------
        r6374 | kpfleming | 2008-01-15 15:45:02 -0600 (Tue, 15 Jan 2008) | 2 lines

        add ability to map feature sequences to applications (issue ASTERISK-3675)

        ------------------------------------------------------------------------

        http://svn.digium.com/view/asterisk?view=rev&revision=6374

        Show
        Digium Subversion added a comment - Repository: asterisk Revision: 6374 U trunk/configs/features.conf.sample U trunk/include/asterisk/channel.h U trunk/include/asterisk/features.h U trunk/res/res_features.c ------------------------------------------------------------------------ r6374 | kpfleming | 2008-01-15 15:45:02 -0600 (Tue, 15 Jan 2008) | 2 lines add ability to map feature sequences to applications (issue ASTERISK-3675 ) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=6374
        Hide
        Digium Subversion added a comment -

        Repository: asterisk
        Revision: 6377

        U trunk/res/res_features.c

        ------------------------------------------------------------------------
        r6377 | kpfleming | 2008-01-15 15:45:04 -0600 (Tue, 15 Jan 2008) | 2 lines

        ensure that features are not duplicated during reload (issue ASTERISK-3675, take two)

        ------------------------------------------------------------------------

        http://svn.digium.com/view/asterisk?view=rev&revision=6377

        Show
        Digium Subversion added a comment - Repository: asterisk Revision: 6377 U trunk/res/res_features.c ------------------------------------------------------------------------ r6377 | kpfleming | 2008-01-15 15:45:04 -0600 (Tue, 15 Jan 2008) | 2 lines ensure that features are not duplicated during reload (issue ASTERISK-3675 , take two) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=6377

          People

          • Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development