Brian West
2005-Jun-21 07:10 UTC
[Asterisk-Users] app_changrab.c released on pbxfreeware.org
I released app_changrab.c lastnight really late... It includes a way to hijack a channel and originate calls from the CLI. /b --- Keep Your Friends Close, But Your Enemies Even Closer...
Anton Krall
2005-Jun-21 08:20 UTC
[Asterisk-Users] app_changrab.c released on pbxfreeware.org
Where can We get it from? |-----Original Message----- |From: asterisk-users-bounces@lists.digium.com |[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of |Brian West |Sent: Martes, 21 de Junio de 2005 09:11 a.m. |To: Asterisk Users Mailing List - Non-Commercial Discussion |Subject: [Asterisk-Users] app_changrab.c released on pbxfreeware.org | |I released app_changrab.c lastnight really late... It includes |a way to hijack a channel and originate calls from the CLI. | |/b |--- |Keep Your Friends Close, But Your Enemies Even Closer... | |_______________________________________________ |Asterisk-Users mailing list |Asterisk-Users@lists.digium.com |http://lists.digium.com/mailman/listinfo/asterisk-users |To UNSUBSCRIBE or update options visit: | http://lists.digium.com/mailman/listinfo/asterisk-users |
Dave Cotton
2005-Jun-21 09:27 UTC
[Asterisk-Users] app_changrab.c released on pbxfreeware.org
On Tue, 2005-06-21 at 10:20 -0500, Anton Krall wrote:> Where can We get it from? > > |-----Original Message----- > |From: asterisk-users-bounces@lists.digium.com > |[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of > |Brian West > |Sent: Martes, 21 de Junio de 2005 09:11 a.m. > |To: Asterisk Users Mailing List - Non-Commercial Discussion > |Subject: [Asterisk-Users] app_changrab.c released on pbxfreeware.org > | > |I released app_changrab.c lastnight really late... It includes > |a way to hijack a channel and originate calls from the CLI.Perhaps the subject line above tells you. -- Dave Cotton <dcotton@linuxautrement.com>
Anton Krall
2005-Jun-21 10:08 UTC
[Asterisk-Users] app_changrab.c released on pbxfreeware.org
Outlook cut the subject... Damn MS.. |-----Original Message----- |From: asterisk-users-bounces@lists.digium.com |[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of |Dave Cotton |Sent: Martes, 21 de Junio de 2005 11:28 a.m. |To: Asterisk Users Mailing List - Non-Commercial Discussion |Subject: RE: [Asterisk-Users] app_changrab.c released on |pbxfreeware.org | |On Tue, 2005-06-21 at 10:20 -0500, Anton Krall wrote: |> Where can We get it from? |> |> |-----Original Message----- |> |From: asterisk-users-bounces@lists.digium.com |> |[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Brian |> |West |> |Sent: Martes, 21 de Junio de 2005 09:11 a.m. |> |To: Asterisk Users Mailing List - Non-Commercial Discussion |> |Subject: [Asterisk-Users] app_changrab.c released on pbxfreeware.org |> | |> |I released app_changrab.c lastnight really late... It |includes a way |> |to hijack a channel and originate calls from the CLI. | |Perhaps the subject line above tells you. | | |-- |Dave Cotton <dcotton@linuxautrement.com> | |_______________________________________________ |Asterisk-Users mailing list |Asterisk-Users@lists.digium.com |http://lists.digium.com/mailman/listinfo/asterisk-users |To UNSUBSCRIBE or update options visit: | http://lists.digium.com/mailman/listinfo/asterisk-users |
Nenad Radosavljevic
2005-Jun-21 13:52 UTC
[Asterisk-Users] app_changrab.c released on pbxfreeware.org
Unfortunatly it won't compile under 1.0.7 :( I have uncommented #define AST_10_COMPAT but I don't see any usage of it in app_changrab.c. Complains about missing asterisk.h ( I think it should be #include "../asterisk.h" ) It also complains about ASTERISK_FILE_VERSION() function, and about _bridge member of ast_channel structure and some othet things: Here is compile log: app_changrab.c: In function `changrab_exec': app_changrab.c:89: error: structure has no member named `_bridge' app_changrab.c:90: error: structure has no member named `_bridge' app_changrab.c:97: warning: implicit declaration of function `ast_channel_alloc' app_changrab.c:97: warning: assignment makes pointer from integer without a cast app_changrab.c:105: error: structure has no member named `features_callee' app_changrab.c:105: error: `AST_FEATURE_REDIRECT' undeclared (first use in this function) app_changrab.c:105: error: (Each undeclared identifier is reported only once app_changrab.c:105: error: for each function it appears in.) app_changrab.c:106: error: structure has no member named `features_caller' app_changrab.c: In function `changrab_cli': app_changrab.c:191: error: structure has no member named `_bridge' app_changrab.c:192: error: structure has no member named `_bridge' app_changrab.c: In function `originate': app_changrab.c:231: warning: passing arg 10 of `ast_pbx_outgoing_exten' makes integer from pointer without a cast app_changrab.c:231: warning: passing arg 14 of `ast_pbx_outgoing_exten' from incompatible pointer type Kind regards, Nenad>> |-----Original Message----- >> |Subject: [Asterisk-Users] app_changrab.c released on pbxfreeware.org >> | >> |I released app_changrab.c lastnight really late... It includes >> |a way to hijack a channel and originate calls from the CLI.
Nenad Radosavljevic
2005-Jun-22 04:03 UTC
[Asterisk-Users] Re: app_changrab.c released on pbxfreeware.org
Hi ! Managed to fix app_changrab.c to compile and start working under 1.0.X. it is working on my installation, but is tested well enough. Regards, Nenad Here is diff -u : ---------- --- app_changrab.c.orig 2005-06-20 22:10:50.000000000 +0200 +++ app_changrab.c 2005-06-22 11:43:54.000000000 +0200 @@ -8,11 +8,12 @@ */ /*uncomment below or build with -DAST_10_COMPAT for 1.0 */ -//#define AST_10_COMPAT +#define AST_10_COMPAT #include <asterisk/file.h> #include <asterisk/logger.h> #include <asterisk/channel.h> +#include <asterisk/channel_pvt.h> #include <asterisk/pbx.h> #include <asterisk/utils.h> #include <asterisk/musiconhold.h> @@ -24,9 +25,11 @@ #include <string.h> #include <pthread.h> -#include "asterisk.h" +#include "../asterisk.h" +#ifndef AST_10_COMPAT ASTERISK_FILE_VERSION(__FILE__, "$Revision: 1.39 $") +#endif static char *tdesc = "Take over an existing channel and bridge to it."; static char *app = "ChanGrab"; @@ -85,10 +88,13 @@ ast_log(LOG_WARNING, "No Such Channel: %s\n",(char *) data); return -1; } - +#ifndef AST_10_COMPAT if(flags && oldchan->_bridge && strchr(flags,'b')) oldchan = oldchan->_bridge; - +#else + if(flags && oldchan->bridge && strchr(flags,'b')) + oldchan = oldchan->bridge; +#endif if(flags && strchr(flags,'r') && oldchan->_state == AST_STATE_UP) { return -1; } @@ -102,9 +108,10 @@ if((f = ast_read(newchan))) { ast_frfree(f); memset(&config,0,sizeof(struct ast_bridge_config)); +#ifndef AST_10_COMPAT ast_set_flag(&(config.features_callee), AST_FEATURE_REDIRECT); ast_set_flag(&(config.features_caller), AST_FEATURE_REDIRECT); - +#endif if(oldchan && !oldchan->pbx) ast_hangup(oldchan); --------> Unfortunatly it won't compile under 1.0.7 :( > > I have uncommented #define AST_10_COMPAT but I don't see any usage of it > in > app_changrab.c. > > Complains about missing asterisk.h ( I think it should be #include > "../asterisk.h" ) > > It also complains about ASTERISK_FILE_VERSION() function, and about > _bridge > member of ast_channel structure and some othet things: > > Here is compile log: > > .........