Re: [asterisk-users] Adding a context from the console
On Thursday 27 May 2010 14:05:20 Danny Nicholas wrote: > I assume this patch is for 1.6X since I find no code similar to this in > 1.4.30? You assume incorrectly. You probably missed that this patch is against pbx_config.c, not main/pbx.c. -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Adding a context from the console
I assume this patch is for 1.6X since I find no code similar to this in 1.4.30? -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Tilghman Lesher Sent: Thursday, May 27, 2010 1:15 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Adding a context from the console On Thursday 27 May 2010 03:55:05 Lee Archer wrote: > On Wednesday 19 May 2010 16:44 Tilghman Lesher wrote: > > On Wednesday 19 May 2010 02:28:02 Lee Archer wrote: > > > Hi, is it possible to add a context from the console using the > > > dialplan command? > > > > Yes, just add an extension to it. The context will be created as > > needed. > > Hi, this didn't seem to work. Is there something I am missing? > > dialplan add extension 1234,1,NoOp,hello into default > Extension '1234,1,NoOp,hello' added into 'default' context > -- Added extension '1234' priority 1 to default (0x8e8f520) > > dialplan add extension 1234,1,NoOp,hello into test > Failed to add '1234,1,NoOp,hello' extension into 'test' context File a bug on this. The patch is as simple as (attached). -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Adding a context from the console
On Thursday 27 May 2010 03:55:05 Lee Archer wrote: > On Wednesday 19 May 2010 16:44 Tilghman Lesher wrote: > > On Wednesday 19 May 2010 02:28:02 Lee Archer wrote: > > > Hi, is it possible to add a context from the console using the > > > dialplan command? > > > > Yes, just add an extension to it. The context will be created as > > needed. > > Hi, this didn't seem to work. Is there something I am missing? > > dialplan add extension 1234,1,NoOp,hello into default > Extension '1234,1,NoOp,hello' added into 'default' context > -- Added extension '1234' priority 1 to default (0x8e8f520) > > dialplan add extension 1234,1,NoOp,hello into test > Failed to add '1234,1,NoOp,hello' extension into 'test' context File a bug on this. The patch is as simple as (attached). -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org Index: pbx/pbx_config.c === --- pbx/pbx_config.c(revision 266141) +++ pbx/pbx_config.c(working copy) @@ -1543,6 +1543,7 @@ if (!app_data) app_data=""; + ast_context_find_or_create(NULL, argv[5], registrar); if (ast_add_extension(argv[5], argc == 7 ? 1 : 0, exten, iprior, NULL, cidmatch, app, (void *)strdup(app_data), ast_free_ptr, registrar)) { switch (errno) { -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Adding a context from the console
Should I log this as a bug since it doesn't work? Regards Lee -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Lee Archer Sent: 20 May 2010 16:28 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Adding a context from the console Hi, this didn't seem to work. Is there something I am missing? dialplan add extension 1234,1,NoOp,hello into default Extension '1234,1,NoOp,hello' added into 'default' context -- Added extension '1234' priority 1 to default (0x8e8f520) dialplan add extension 1234,1,NoOp,hello into test Failed to add '1234,1,NoOp,hello' extension into 'test' context Regards Lee -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Lee Archer Sent: 19 May 2010 16:54 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Adding a context from the console Many thanks. Regards Lee -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Tilghman Lesher Sent: 19 May 2010 16:44 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Adding a context from the console On Wednesday 19 May 2010 02:28:02 Lee Archer wrote: > Hi, is it possible to add a context from the console using the dialplan > command? Yes, just add an extension to it. The context will be created as needed. -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Adding a context from the console
Hi, this didn't seem to work. Is there something I am missing? dialplan add extension 1234,1,NoOp,hello into default Extension '1234,1,NoOp,hello' added into 'default' context -- Added extension '1234' priority 1 to default (0x8e8f520) dialplan add extension 1234,1,NoOp,hello into test Failed to add '1234,1,NoOp,hello' extension into 'test' context Regards Lee -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Lee Archer Sent: 19 May 2010 16:54 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Adding a context from the console Many thanks. Regards Lee -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Tilghman Lesher Sent: 19 May 2010 16:44 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Adding a context from the console On Wednesday 19 May 2010 02:28:02 Lee Archer wrote: > Hi, is it possible to add a context from the console using the dialplan > command? Yes, just add an extension to it. The context will be created as needed. -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Adding a context from the console
Many thanks. Regards Lee -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Tilghman Lesher Sent: 19 May 2010 16:44 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Adding a context from the console On Wednesday 19 May 2010 02:28:02 Lee Archer wrote: > Hi, is it possible to add a context from the console using the dialplan > command? Yes, just add an extension to it. The context will be created as needed. -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Adding a context from the console
On Wednesday 19 May 2010 02:28:02 Lee Archer wrote: > Hi, is it possible to add a context from the console using the dialplan > command? Yes, just add an extension to it. The context will be created as needed. -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Adding a context from the console
Hi, anyone know? From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Lee Archer Sent: 17 May 2010 11:29 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] Adding a context from the console Hi, is it possible to add a context from the console using the dialplan command? Thanks Lee -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users