Index: channels/chan_sip.c =================================================================== --- channels/chan_sip.c (revision 281496) +++ channels/chan_sip.c (working copy) @@ -20855,14 +20855,15 @@ } p_replaces = get_header(req, "Replaces"); - if (!ast_strlen_zero(p_replaces)) { - /* We have a replaces header */ + if (!ast_strlen_zero(p_replaces) && !p->owner) { + /* We have a replaces header and we are a new call */ char *ptr; char *fromtag = NULL; char *totag = NULL; char *start, *to; int error = 0; +#if 0 if (p->owner) { ast_debug(3, "INVITE w Replaces on existing call? Refusing action. [%s]\n", p->callid); transmit_response_reliable(p, "400 Bad request", req); /* The best way to not not accept the transfer */ @@ -20871,6 +20872,7 @@ goto request_invite_cleanup; } +#endif if (sipdebug) ast_debug(3, "INVITE part of call transfer. Replaces [%s]\n", p_replaces); /* Create a buffer we can manipulate */