]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
pjsip_resolver.c: Use replacement function
authorRichard Mudgett <rmudgett@digium.com>
Thu, 19 Jul 2018 18:27:30 +0000 (13:27 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 19 Jul 2018 18:39:19 +0000 (13:39 -0500)
* Use the replacement function ast_sip_push_task_wait_servant() instead of
the deprecated ast_sip_push_task_synchronous().

Change-Id: I145b550ba7054640c7faa3b644e63137f505c612

res/res_pjsip/pjsip_resolver.c

index 5fd446468bc9847ef21a4b922402787ff250cea0..bc53990e36908c77aa45d63b90470fdd822c05fd 100644 (file)
@@ -704,7 +704,7 @@ static int sip_replace_resolver(void *data)
 void ast_sip_initialize_resolver(void)
 {
        /* Replace the existing PJSIP resolver with our own implementation */
-       ast_sip_push_task_synchronous(NULL, sip_replace_resolver, NULL);
+       ast_sip_push_task_wait_servant(NULL, sip_replace_resolver, NULL);
 }
 
 #else