Index: channels/chan_sip.c =================================================================== --- channels/chan_sip.c (revision 94843) +++ channels/chan_sip.c (working copy) @@ -10040,7 +10040,11 @@ struct sip_request *req = oreq ? oreq : &p->initreq; struct sip_refer *referdata = p->refer; const char *transfer_context = NULL; - + + /* If no refer structure, then do nothing */ + if (!p->refer) + return 1; + ast_copy_string(tmp, get_header(req, "Also"), sizeof(tmp)); c = get_in_brackets(tmp);