Re: [Asterisk-java-users] Unable to create the extension "exten => 1300, 1, Agi(agi://localhost/hel
Brought to you by:
srt
From: T. L. P. T. <tom...@gm...> - 2008-04-17 02:55:19
|
Hello Satya: Thank you for sharing your experience with FreePBX and Asterisk-Java. Best regards, Tomás. On Wed, Apr 16, 2008 at 10:25 PM, Satya Parimi <sat...@dh...> wrote: > > Hi Tomas > > Thanks for all your help > Yes, In FreePBX 2.4 the custom extension is moved to tools > Here is what I did with FreePBX 2.4....... > I created a custom extension from "Tools/Custom Extensions" menu, 1300 as > extension and custom-myAsteriskJavaApp as description. > 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 > > Now it works. I made two more mistakes which I took a long time to figure > out what went wrong. Let me share it > 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 > 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 > > Now I'm all set > > Thanks > Satya > > > Tomás Laureano Peralta Tormey wrote: > Hello Satya: > I'm running FreePBX 2.3.1.0 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. > 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. > > From: http://freepbx.org/trac/browser/freepbx/tags/2.4.0/CHANGES > > > > 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. > > > > Maybe you could try installing this module in FreePBX and doing some > tests. > > To verify if a context (and extension) is available to Asterisk, you can > run this command from the CLI: > show dialplan <exten>@<context> (Asterisk 1.2 or older) > dialplan show <exten>@<context> (Asterisk 1.4) > > For example: > > labbox*CLI> show dialplan 1300@custom-myAsteriskJavaApp > [ Context 'custom-myAsteriskJavaApp' created by 'pbx_config' ] > '1300' => 1. Agi(agi://localhost/hello.agi) > [pbx_config] > > -= 1 extension (1 priority) in 1 context. =- > labbox*CLI> > > Best regards, Tomás. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > |