From 545191207b72c89c059b32aeb5587ac2d64d4a04 Mon Sep 17 00:00:00 2001 From: Alexandre Savard <alexandre.savard@savoirfairelinux.com> Date: Mon, 16 Apr 2012 12:43:16 -0400 Subject: [PATCH] #9830: Remove create_route_set from sipvoiplink --- daemon/src/sip/sipvoiplink.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/daemon/src/sip/sipvoiplink.cpp b/daemon/src/sip/sipvoiplink.cpp index 1a934665ef..ab728da213 100644 --- a/daemon/src/sip/sipvoiplink.cpp +++ b/daemon/src/sip/sipvoiplink.cpp @@ -117,32 +117,6 @@ int SIPSessionReinvite(SIPCall *); * Helper function to process refer function on call transfer */ void onCallTransfered(pjsip_inv_session *inv, pjsip_rx_data *rdata); -/* -pjsip_route_hdr *createRouteSet(const std::string &route, pj_pool_t *hdr_pool) -{ - int port = 0; - std::string host; - - size_t found = route.find(":"); - - if (found != std::string::npos) { - host = route.substr(0, found); - port = atoi(route.substr(found + 1, route.length()).c_str()); - } else - host = route; - - pjsip_route_hdr *route_set = pjsip_route_hdr_create(hdr_pool); - pjsip_route_hdr *routing = pjsip_route_hdr_create(hdr_pool); - pjsip_sip_uri *url = pjsip_sip_uri_create(hdr_pool, 0); - routing->name_addr.uri = (pjsip_uri*) url; - pj_strdup2(hdr_pool, &url->host, host.c_str()); - url->port = port; - - pj_list_push_back(route_set, pjsip_hdr_clone(hdr_pool, routing)); - - return route_set; -} -*/ void handleIncomingOptions(pjsip_rx_data *rdata) { -- GitLab