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-17 01:25:19
|
<!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"> Hi Tomas<br> <br> Thanks for all your help<br> Yes, In FreePBX 2.4 the custom extension is moved to tools<br> Here is what I did with FreePBX 2.4.......<br> I created a custom extension from "Tools/Custom Extensions" menu, 1300 as extension and custom-myAsteriskJavaApp as description.<br> Then from "Tools/Custom Destinations" menu created a destination, "custom-myAsteriskJavaApp,1300,1" as custom destination, and myAsteriskJavaApp as the description. Then I could see a new radio button "Custom Applications" in the inbound route screen, I could attach my custom app to the incoming route<br> <br> Now it works. I made two more mistakes which I took a long time to figure out what went wrong. Let me share it<br> 1. I used Asterisk server ip to create custom extension in extensions_custom.conf, right thing is to use the ip of the server running Asterisk-Java<br> 2. I created HelloAgiScript.java in a package "com.asteriskjava", but haven't given the package name in fastagi-mapping.properties, so it wasn't finding the class <br> <br> Now I'm all set<br> <br> Thanks<br> Satya<br> <br> Tomás Laureano Peralta Tormey wrote: <blockquote cite="mid:b00...@ma..." type="cite">Hello Satya:<br> I'm running FreePBX <a moz-do-not-send="true" href="http://2.3.1.0">2.3.1.0</a> on my lab so I can't tell you exactly how yo solve this issue. Actually, this issue isn't directly related to Asterisk-Java.<br> But doing some research in Google point out that the version 2.4 of FreePBX has some changes in the "Custom App" drop down menu.<br> <br> From: <a moz-do-not-send="true" href="http://freepbx.org/trac/browser/freepbx/tags/2.4.0/CHANGES">http://freepbx.org/trac/browser/freepbx/tags/2.4.0/CHANGES</a><br> <br> <blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">Addition of Custom Applications Module. Provides a place to register custom extension numbers as well as custom destinations that are to be used in FreePBX. Replaces the old Custom Destinations choice that was available in each module.<br> </blockquote> <br> Maybe you could try installing this module in FreePBX and doing some tests.<br> <br> To verify if a context (and extension) is available to Asterisk, you can run this command from the CLI:<br> show dialplan <exten>@<context> (Asterisk 1.2 or older)<br> dialplan show <exten>@<context> (Asterisk 1.4)<br> <br> For example:<br> <br> labbox*CLI> show dialplan 1300@custom-myAsteriskJavaApp<br> [ Context 'custom-myAsteriskJavaApp' created by 'pbx_config' ]<br> '1300' => 1. Agi(agi://localhost/hello.agi) [pbx_config]<br> <br> -= 1 extension (1 priority) in 1 context. =-<br> labbox*CLI> <br> <br> Best regards, Tomás.<br> <a moz-do-not-send="true" href="https://lists.sourceforge.net/lists/listinfo/asterisk-java-users"></a></blockquote> </body> </html> |