[asterisk-dev] AMD + ast_waitfor()

ob . ram-rom00 at hotmail.com
Tue Oct 26 10:33:35 CDT 2010

Hi all, I am having a problem and i hope someone can help.

Here you can find a visual of my setup :


and here is the testapp code I am calling from the HUMAN context:


As you can see, the testapp contains this line :

res = ast_waitfor(chan, 5000);

and the dial plan on server 2 contains a wait(). 

Now if the parameter of wait is 1 (or anything below 5 sec), ast_waitfor returns successfully, and thus go into the else block.
But if the parameter is 12 (or anything above 5+1 ) ,  ast_waitfor returns a negative number, and thus go into the if block!

This problem only occurs if AMD is used...

Can anyone shed any light on what might be going wrong ?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20101026/7fcae652/attachment.htm 

More information about the asterisk-dev mailing list