"fork and exit" needed?

Vincent Delporte bla at bla.com
Thu Nov 30 09:48:53 EST 2006


On Thu, 30 Nov 2006 15:38:11 +0100, Vincent Delporte <bla at bla.com>
wrote:
>Here's my Python rewrite:
>http://codecomplete.free.fr/asterisk/python_cid.txt

More information. Here's what Asterisk says when I call in:

*CLI>

    -- Executing LookupCIDName("SIP/fxo-0844e458", "") in new stack

    -- Changed Caller*ID name to Work

    -- Executing AGI("SIP/fxo-0844e458",
"ncid.python.agi|087077XXXX|Bureau Freebox") in new stack

    -- Launched AGI Script /var/lib/asterisk/agi-bin/ncid.python.agi
Failed to execute '/var/lib/asterisk/agi-bin/ncid.python.agi': Exec
format error

    -- AGI Script ncid.python.agi completed, returning 0

FWIW, I wrote the original in a Windows text editor, and copy-pasted
the script in Asterisk by sshing into the server. CRLF vs. CR issue?
Something else?

Thanks.



More information about the Python-list mailing list