Re: [Asterisk-java-users] Unable to create the extension "exten => 1300, 1, Agi(agi://localhost/hel
Brought to you by:
srt
From: Satya P. <sat...@dh...> - 2008-04-11 00:20:22
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Hello Tomas<br> <br> Thanks for your detailed response. <br> I followed the steps and added the custom entry to extensions_custom.conf, ran the "reload" but did not know how to verify if the context is created correctly. But while creating the inbound route got struck again. In FreePBX 2.4, I do not see "Custom App" dropdown on "Set Destination" section. What I see is two radio buttons, "Terminate Call" with a drop down of Hangup/busy/congestion/...etc, the other dorpdown is "Extensions", which shows extensions I created using FreePBX. <br> <br> Is there anything else to be done here to use the custom app?<br> <br> Thanks for your help<br> Satya<br> <br> <br> <blockquote cite="mid:47F...@dh..." type="cite"><small>From: Tomás Laureano Peralta Tormey <a class="moz-txt-link-rfc2396E" href="mailto:tomas.tormey@gm..."><tomas.tormey@gm...></a> - 2008-04-10 03:59</small></blockquote> <blockquote cite="mid:47F...@dh..." type="cite"> Hello Satya:<br> Yes, you can integrate Asterisk-Java and FreePBX without any dirty work around.<br> Let's see how this could be achieved.<br> <br> The first thing you should know about FreePBX configuration files is<br> that any modules that generates any configuration files, usually use<br> the name <configuration file>_additional.conf. Normally, a base<br> configuration file will include this FreePBX generated file. For<br> example, the base extensions.conf file that comes with FreePBX<br> includes (among others) the files extensions_additional.conf.<br> It doesn't make any sense to modify extensions_additional.conf,<br> because the next time that changes are applied from the interface,<br> this file will be regenerated; dropping any changes done by hand.<br> Also, the base config file (in this case, extensions.conf) shouldn't<br> be edited. There is a better way to integrate your self developed<br> contexts, extensions and priorities.<br> Most of the base config files of FreePBX include a file named<br> <configuration file>_custom.conf. In this case, you should edit<br> extensions_custom.conf and add your custom context.<br> For example:<br> <br> [custom-myAsteriskJavaApp]<br> exten => 1300,1,Agi(agi://localhost/hello.agi)<br> <br> Now, if you run an "extensions reload" command from the CLI, a new<br> context will be available. We are going to use this context to<br> integrate Asterisk-Java.<br> <br> To attach an inbound route to your Asterisk-Java application, you<br> will need to create a new Inbound route and select "Custom App" in the<br> "Set Destination" combo box. By using "Custom App", any incoming call<br> that matches this inbound route will be delivered to a context (which<br> must start with the "custom-" prefix) available to Asterisk. Copy the<br> name of this new context, the extension and the priority<br> (custom-myAsteriskJavaApp,1300,1) to the input box. Submit the changes<br> and apply the changes to Asterisk.<br> <br> You can now test an incoming call to the DID 1300 and have fun with<br> Asterisk-Java.<br> <br> Your mileage may vary but you should be able to have this example<br> working with little modifications. Let us know if you have any<br> problem.<br> <br> Best regards, Tomás. <br> </blockquote> <br> <blockquote cite="mid:47F...@dh..." type="cite">Hi<br> I'm a new user with Asterisk & Asterisk-Java <br> I installed Asterisk using PBX in a FLASH, which is a bundle of Asterisk 1.4, FreePBX 2.4 and Cent OS <br> I'm able to create trunk/inbound route/extension easily using the FreePBX GUI, it works great with a soft phone <br> <br> Now I want to intercept the inbound call, so I'm trying to use Asterisk-Java (release from 4/9/08). I followed the example but stumbled on creating an extension as suggested. Since I used FreePBX it generates the extensions.conf files, so I cannot edit that. Of course I tried to edit that file to add "exten => 1300,1,Agi(agi://localhost/hello.agi)", but that didn't work. It doesn't show up on FreePBX GUI, so I cannot attach that to inbound route. <br> <br> If I use FreePBX, can't I setup Asterisk-Java? Is there a work around? <br> I appreciate any help with this <br> <br> Thanks <br> Satya <br> <br> </blockquote> <br> </body> </html> |