- aligned to avp api
authorJan Janak <jan@iptel.org>
Wed, 30 Nov 2005 16:10:37 +0000 (16:10 +0000)
committerJan Janak <jan@iptel.org>
Wed, 30 Nov 2005 16:10:37 +0000 (16:10 +0000)
receive.c

index 0276c70..08c18d0 100644 (file)
--- a/receive.c
+++ b/receive.c
@@ -228,8 +228,7 @@ end:
        skipped = 0;
 #endif
        /* free possible loaded avps -bogdan */
-       reset_user_avps();
-       reset_domain_avps();
+       reset_avps();
        DBG("receive_msg: cleaning up\n");
        free_sip_msg(msg);
        pkg_free(msg);
@@ -240,16 +239,14 @@ end:
 error_rpl:
        /* execute post reply-script callbacks */
        exec_post_rpl_cb(msg);
-       reset_user_avps();
-       reset_domain_avps();
+       reset_avps();
        goto error02;
 error_req:
        DBG("receive_msg: error:...\n");
        /* execute post request-script callbacks */
        exec_post_req_cb(msg);
        /* free possible loaded avps -bogdan */
-       reset_user_avps();
-       reset_domain_avps();
+       reset_avps();
 error02:
        free_sip_msg(msg);
        pkg_free(msg);