diff -d -u -r1.1.1.2 app_dial.c --- apps/app_dial.c 26 Mar 2008 13:55:03 -0000 1.1.1.2 +++ apps/app_dial.c 18 Nov 2008 16:18:24 -0000 @@ -559,6 +563,16 @@ ast_hangup(winner); continue; } +#if 1 /* For testing only! */ + /* This makes it much more likely that the SIP-loop mis-detection bug + * manifests itself (re-INVITE is received by us before the channel is UP + * because the ANSWER control frame was not read here yet). */ + if (winner != in) { + /* 200 µs is not enough to trigger it every time + * (Core 2 quad @ 2.6MHz) */ + usleep(300); + } +#endif f = ast_read(winner); if (!f) { in->hangupcause = c->hangupcause;