]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mirror back record-route header in options
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 29 Mar 2012 20:58:19 +0000 (15:58 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 29 Mar 2012 20:58:19 +0000 (15:58 -0500)
src/mod/endpoints/mod_sofia/sofia.c

index b443a36fb7616a468bf5727a022d405471e36058..789bad0da8d2d7a0572821c39637376fd64db499 100644 (file)
@@ -8603,7 +8603,8 @@ void sofia_handle_sip_i_options(int status,
                        (sess_count >= sess_max || !sofia_test_pflag(profile, PFLAG_RUNNING) || !switch_core_ready_inbound())) {
                nua_respond(nh, 503, "Maximum Calls In Progress", NUTAG_WITH_THIS_MSG(de->data->e_msg), SIPTAG_RETRY_AFTER_STR("300"), TAG_END());
        } else {
-               nua_respond(nh, SIP_200_OK, NUTAG_WITH_THIS_MSG(de->data->e_msg), TAG_END());
+               nua_respond(nh, SIP_200_OK, NUTAG_WITH_THIS_MSG(de->data->e_msg), 
+                                       TAG_IF(sip->sip_record_route, SIPTAG_RECORD_ROUTE(sip->sip_record_route)), TAG_END());
        }
 
 }