[Asterisk-Users] How to set features.conf to change thehangup key.

Bogdan Moldovan bogdan.moldovan at modulo.ro
Sun Jan 8 13:57:34 MST 2006


If you are on 1.2.1, do:

In features.conf

[featuremap]
automon => *1                  ; One Touch Record
atxfer => *2
disconnect => *97  ; this is the line you should add or edit

Bogdan Moldovan
MODULO Consulting
"The Future Is Not What It Used To Be"
http://www.modulo.ro 

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Obelix
Sent: Sunday, January 08, 2006 10:37 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] How to set features.conf to change thehangup
key.

Quoting Bogdan Moldovan <bogdan.moldovan at modulo.ro>:

I have upgraded to Asterisk 1.2.1 and haven't gotten it to work yet.

Does it depend on some options in the Dial command?

I have also got the source now, and would like to know how it can be
modified.

There is no documentation on what the structures do, how which parameters
contain the right settings.

This appears to be the relevant line. What changes does it require to change
the setting?

> >         { AST_FEATURE_DISCONNECT, "Disconnect Call", "disconnect", 
> > "*", "*", builtin_disconnect, AST_FEATURE_FLAG_NEEDSDTMF }, };
> >

/Obelix


> Hello,
>
> The idea is the following:
>
> For the 1.2.1 installation just set the parameter disconnect => *97 In 
> your features.conf
>
> For the 1.0.7 installation you either upgrade or patch the code. The 
> "patch the code" would require you a lot of knowledge of c 
> programming. It would consist of extracting from the 1.2.1 code the 
> "disconnect" functionality and add it to the 1.0.7 code base. But that is
not straight forward...
>
> If you need it badly we can do it for you as consulting. But I 
> strongly advise you to upgrade.
>
> Upgrade,now, is not an easy task either, but it might be easier that 
> the code patch. Mainly because you would have to migrate the 
> configuration or test it... Do you have a test bed?
>
> BR
>
> Bogdan Moldovan
> MODULO Consulting
> "The Future Is Not What It Used To Be"
> http://www.modulo.ro
>
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Obelix
> Sent: Tuesday, January 03, 2006 2:01 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: RE: [Asterisk-Users] How to set features.conf to change 
> thehangup key.
>
> Quoting Bogdan Moldovan <bogdan.moldovan at modulo.ro>:
>
> I don't have this in my main installation, which is 1.0.7.
> In the case of 1.0.7 where else can I effect that change?
>
> I also have a 1.2.1 setup, what would I have to change in the code below?
>
> What is the general idea?
>
> > Indeed, this is 1.2.1
> >
> > But do the following:
> >
> > Go to the source tree, do a
> > vi res/res_features.c
> >
> > Search for a :
> > struct ast_call_feature builtin_features[]
> >
> > And you should see the builtin features:
> >
> > In 1.2.1 I have:
> >
> > #define FEATURES_COUNT (sizeof(builtin_features) /
> > sizeof(builtin_features[0]))
> > struct ast_call_feature builtin_features[] =  {
> >         { AST_FEATURE_REDIRECT, "Blind Transfer", "blindxfer", "#", 
> > "#", builtin_blindtransfer, AST_FEATURE_FLAG_NEEDSDTMF },
> >         { AST_FEATURE_REDIRECT, "Attended Transfer", "atxfer", "", 
> > "", builtin_atxfer, AST_FEATURE_FLAG_NEEDSDTMF },
> >         { AST_FEATURE_AUTOMON, "One Touch Monitor", "automon", "", 
> > "", builtin_automonitor, AST_FEATURE_FLAG_NEEDSDTMF },
> >         { AST_FEATURE_DISCONNECT, "Disconnect Call", "disconnect", 
> > "*", "*", builtin_disconnect, AST_FEATURE_FLAG_NEEDSDTMF }, };
> >
> > In case you do not have this, good changes are that, in case you 
> > need badly this feature, you will upgrade or tweak the sources...
> >
> > Bogdan
> >
> >
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list