sipsorcery icon indicating copy to clipboard operation
sipsorcery copied to clipboard

SIPProxy

Open DavidTzur1 opened this issue 1 year ago • 4 comments

Hi, I try to build SIPProxy for IMS and i use the SIPProxy Example. I add to the SIPTransportRequestReceived logic ... else if (sipRequest.Method == SIPMethodsEnum.UPDATE) { logger.LogDebug("UPDATE") }

...

The problem is i don't get the UPDATE request Attach pcap - line 14 is update

Br, David Tzur

UPDate.zip

DavidTzur1 avatar Mar 28 '23 13:03 DavidTzur1

Hi, Checking the code in the SIPTransport class, I see that for request with header Required return badRequireResp. I only use as proxy . Why the response is badRequireResp ?

Br. David Tzur

DavidTzur1 avatar Mar 30 '23 00:03 DavidTzur1

If your application is operating as a SIP Proxy it shouldn't have a problem forwarding UPDATE requests. Are you bale to provide a SIP trace of the traffic into and out of the proxy?

The SIP peer the UPDATE request is being forwarded to might be rejeccting it. It's not a very common or well supported method.

sipsorcery avatar Apr 01 '23 18:04 sipsorcery

UPDate.zip

Add Trace

Br, David Tzur

DavidTzur1 avatar Apr 05 '23 10:04 DavidTzur1

Hi,

This is code from the SIPHeader.cs(line 1762) it Causes the code in SIPTransport class return error

#region Require. else if (headerNameLower == SIPHeaders.SIP_HEADER_REQUIRE.ToLower()) { sipHeader.Require = headerValue;

                        **if (!String.IsNullOrEmpty(sipHeader.Require))
                        {
                            sipHeader.RequiredExtensions = SIPExtensionHeaders.ParseSIPExtensions(sipHeader.Require, out 
                               sipHeader.UnknownRequireExtension);
                        }**
                    }

DavidTzur1 avatar Apr 05 '23 10:04 DavidTzur1