[Asterisk-Users] SIPPeersAction class file not
foundintheAsterisk-java.jar file
Stefan Reuter
srt at reucon.net
Mon Aug 8 14:05:38 MST 2005
You dont run applications using the Manager API as AGI scripts but as
standalone Java applications.
So in you case proably via
java -cp asterisk-java-0.1.jar:. ManagerAPI
=Stefan
On Mon, 2005-08-08 at 16:31 +0530, Bharat M. Sarvan wrote:
> Ok Mr. Stefan,
> The contents of the file fastagi-mapping.properties are as
> follows
>
> Hello.agi = ManagerAPI
>
> Where ManagerAPI is my class filename ManagerAPI.class.
>
> And the directory structure is as given below:
>
> /home/Bharat/AGISERVER/BharatJava/
>
> Where the BharatJava directory holds the files
>
> fastagi-mapping.properties
> asterisk-java-0.1.jar
> and the .java files
>
>
>
> And the Asterisk server is running on Fedora Core 1. I start the asterisk
> server using the command "asterisk -vvvvvvvvvvvvvvvvvvvv" at the command
> prompt.
>
> So I was having doubt about the execution of the part of the code you have
> sent me where we login into the Asterisk server using the class
> ManagerConnection.
>
> Is there any way out so that I can issue the command other than using the
> sendAction Method of the ManagerConnection to which I pass the object of the
> class CommandAction.
>
> My asterisk server is already up and running. I just need to issue the
> command using the CommandAction. But even if I run the sample code
> "ManagerAPI" given on the link
> http://asterisk-java.sourceforge.net/tutorial.html. I am getting the error
> for "No script configured for agi://"
>
> Please do reply as to how I get through this problem...
>
>
>
>
>
> Regards,
> Bharat M. Sarvan
> Software Engineer - VoIP
> EZZI BPO Pvt Ltd.,
> PUNE.
>
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Stefan Reuter
> Sent: Saturday, August 06, 2005 7:02 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: RE: [Asterisk-Users] SIPPeersAction class file not
> foundintheAsterisk-java.jar file
>
> Hi,
>
> > I have all the necessary files for the code to be executed. The
> > fastagi-mapping.properties file is also correct. But still I am getting
> the
> > error for
> >
> > The IP address is correct and as well as the agi file name. Does it make a
> > difference giving a Tab or a space when giving the mapping of agi file
> name
> > and class file name in the fastagi-mapping.properties file.
>
> no that makes no difference
>
> > Is there any other reason for getting this error....
>
> no
> please post the contents of fastagi-mapping.properties, your directory
> structure and the command you use to run java.
> and please note: THERE IS NO WAY TO GET SIP PEERS VIA FASTAGI ANYWAY!
>
> =Stefan
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at 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
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050808/ad69ad61/attachment.pgp
More information about the asterisk-users
mailing list