diff -ur asterisk-13.7.0-orig/res/res_pjsip_outbound_publish.c asterisk-13.7.0/res/res_pjsip_outbound_publish.c --- asterisk-13.7.0-orig/res/res_pjsip_outbound_publish.c 2016-01-15 14:01:49.000000000 -0500 +++ asterisk-13.7.0/res/res_pjsip_outbound_publish.c 2016-02-05 12:18:31.063189643 -0500 @@ -891,7 +891,7 @@ pjsip_publishc_destroy(client->client); client->client = NULL; - if (sip_outbound_publish_client_alloc(publish)) { + if (sip_outbound_publish_client_alloc(client)) { ast_log(LOG_ERROR, "Failed to create a new outbound publish client for '%s' on 412 response\n", ast_sorcery_object_get_id(publish)); goto end;