[Asterisk-Users] How to set features.conf to change thehangup key.
Bogdan Moldovan
bogdan.moldovan at modulo.ro
Tue Jan 3 05:41:01 MST 2006
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
>
>
More information about the asterisk-users
mailing list