Index: channels/chan_sip.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v retrieving revision 1.862 diff -u -r1.862 chan_sip.c --- channels/chan_sip.c 25 Sep 2005 21:21:47 -0000 1.862 +++ channels/chan_sip.c 26 Sep 2005 02:50:53 -0000 @@ -9493,12 +9493,16 @@ ast_log(LOG_DEBUG, "Hairpin detected, setting up call forward for what it's worth\n"); if (p->owner) snprintf(p->owner->call_forward, sizeof(p->owner->call_forward), "Local/%s@%s", p->username, p->context); + break; /* Fall through */ + case 480: /* Temporarily Unavailable */ case 486: /* Busy here */ - case 488: /* Not acceptable here - codec error */ case 600: /* Busy everywhere */ case 603: /* Decline */ - case 480: /* Temporarily Unavailable */ + if (owner) + ast_queue_control(p->owner, AST_CONTROL_BUSY); + break; + case 488: /* Not acceptable here - codec error */ case 404: /* Not Found */ case 410: /* Gone */ case 400: /* Bad Request */