[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: Asterisk
- Subject: Re: Asterisk
- From: "erdut1" <erdut1@xxxxxxxxx>
- Date: Sat, 04 Feb 2006 07:19:12 -0000
I think I've found the reason its not compiling,
basically there seems to be a problem with the function strnicmp
defined in string.h and used in asterisk.c. Renaming the fuction
strnicmp to the strncmp (similar fuction - except that strncmp is case
sensitive where strnicmp is not) will allow it to compile, giving you
a working xap-asterisk executable.
Looking at the code (asterisk.c) I dont think using strncmp
should be a problem as from what I can tell it only seems to be used
in verifying that you have logged into the "Asterisk Call
Manager".
Hopefully Patrick can confirm this or offer an alternate solution.
So basically if you want to compile the manager source first copy the
xaplib files to the proper locaions (as described by James earlier)
and rename all occurances of strnicmp to strncmp in asterisk.c
Please note I'm not a programmer so the above may not be technically
correct but it does work.
I also just wanted to thank Patrick and others for there efforts and
great xap apps, all your hard work is very much appreciated.
Nick
--- In xap_automation@xxxxxxx, James <james@...> wrote:
>
> hi,
>
> Well I can help here. This does work:
> xap-asterisk admin amp111 192.168.0.92 5038
>
> (replace IP obviously)
>
> hth
>
> James
>
> erdut1 wrote:
> > while waiting for Patrick re: the compiling problem, I thought
I'd
> > play around with the asterisk-manager windows exe available from
his site.
> >
> > running from a comand prompt I get
> >
> > ---------------------------------------------------------
> > C:\xap\xap-asterisk admin amp111 192.168.0.100
> > xAP Asterisk Manager Interface 1.0
> > (c) Patrick Lidstone, 2003-5
> >
> > eth0: address 192.168.0.7
> > eth0: network 255.255.255.0
> > Autoconfig: xAP broadcasts on 192.168.0.255:3639
> > xAP uid=FF000E00, source=Rocket.asterisk.server1
> > Broadcast socket port 3639 in use
> > Assuming a hub is active
> > Discovered port 3639
> > Attempting to connect to asterisk server 192.168.0.100:5038
> > Connected ok
> > ------------------------------------------------------------
> >
> > asterisk log
> >
> > -------------------------------------------------------------
> > Feb 3 19:37:35 VERBOSE[7081] logger.c: == Manager 'admin' logged
on
> > from 192.168.0.7
> > Feb 3 19:37:35 VERBOSE[7081] logger.c: == Manager 'admin' logged
on
> > from 192.168.0.7
> > --------------------------------------------------------------
> >
> > everything to me looks ok but the only xap mesages generated by
> > xap-asterisk are heartbeats
> >
> > Im using Asterisk@Home version 2.2
> >
> > Has anyone got this working ?
> >
> > Nick
> >
> >
> >
> >
> >
> >
> >
> > --- In xap_automation@xxxxxxx, "erdut1" <erdut1@>
wrote:
> >
> >> just tried gcc version 3.3.5 and still getting the same error
message
> >> as James below. :-(
> >> Has anyone been able to succesfully compile the asterisk-xap
source
> >> on Patrick's site ?
> >>
> >> Nick
> >>
> >>
> >>
> >>
> >
> >
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
xAP_Automation Main Index |
xAP_Automation Thread Index |
xAP_Automation Home |
Archives Home
|