From: Tim Uckun <timuckun@gm...> - 2007-06-06 11:01:18
I am just a dabbler in python and I wanted to try and write an
asterisk app with it. I donwloaded and installed starpy and attempted
to run one of the samples calldurationcallback.py and I get an error.
Oh here is the relevant part of starpy.conf
Here is the traceback.
Traceback (most recent call last):
File "C:\Documents and
line 177, in ?
APPLICATION.agiSpecifier.run( APPLICATION.dispatchIncomingCall )
File "d:\python24\Lib\site-packages\starpy\utilapplication.py", line
182, in run
return reactor.listenTCP(self.port, f, 50, self.interface)
line 467, in listenTCP
File "D:\Python24\lib\site-packages\twisted\internet\tcp.py", line
733, in startListening
raise CannotListenError, (self.interface, self.port, le)
CannotListenError: Couldn't listen on '127.0.0.1':4574: (11001,
From: Tim Uckun <timuckun@gm...> - 2007-06-08 01:56:37
> Not sure what to suggest. Don't know what would cause getaddrinfo to
> fail for the localhost port.
> Wish I was more help there, but I haven't tried to run StarPy on Windows
You won't believe this but...
I ran another example and it worked, that example had this line in it.
reactor.listenTCP(4574, f, 50, '') # only binding on local interface
So I figured I would change the conf file and put interface='' in
there. That didn't work either.
Then on a whim I changed the line to interface= and it worked!!.