diff options
author | Alexei Gradinari <alex2grad@gmail.com> | 2016-02-18 11:55:39 -0500 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2016-02-18 12:04:23 -0600 |
commit | f295088764ba25f1234b874337bd9363cc7d1ed1 (patch) | |
tree | 07b5ab45353c2fd0ff87956ab9742dfa5b7e52e2 /res/res_pjsip_outbound_publish.c | |
parent | 87ab65c557eccfe91c8aea6eba0568aa96de6412 (diff) |
res_pjsip_outbound_publish: Fix processing 412 response
When Asterisk receives a 412 (Conditional Request Failed) response
it has to recreate publish session.
There is bug in res_pjsip_outbound_publish.c
The function sip_outbound_publish_client_alloc is called with wrong object
while processing 412 (Conditional Request Failed) response.
This patch fixes it.
ASTERISK-25229 #close
Change-Id: I3b62f2debf6bb1e5817cde7b13ea39ef2bf14359
Diffstat (limited to 'res/res_pjsip_outbound_publish.c')
-rw-r--r-- | res/res_pjsip_outbound_publish.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip_outbound_publish.c b/res/res_pjsip_outbound_publish.c index 8b6f6e41e..c16ced311 100644 --- a/res/res_pjsip_outbound_publish.c +++ b/res/res_pjsip_outbound_publish.c @@ -891,7 +891,7 @@ static void sip_outbound_publish_callback(struct pjsip_publishc_cbparam *param) 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; |