SIPSorcery.SIP.SIPRouteSet.ReplaceRoute C# (CSharp) Метод

ReplaceRoute() публичный Метод

If a route set is travelling from the public side of a proxy to the private side it can be required that the Record-Route set is modified.
public ReplaceRoute ( string origSocket, string replacementSocket ) : void
origSocket string The socket string in the original route set that needs to be replace.
replacementSocket string The socket string the original route is being replaced with.
Результат void
        public void ReplaceRoute(string origSocket, string replacementSocket)
        {
            foreach (SIPRoute route in m_sipRoutes)
            {
                if (route.Host == origSocket)
                {
                    route.Host = replacementSocket;
                }
            }
        }