FYI, since version 1.3, you can hide the topmost Route entry by adding "hide" parameter, e.g.: --proxy "sip:proxy.sip.domain.pt;lr;hide" The Route header then will be processed as usual, but it will be removed from the request before it is sent. Cheers Benny On Thu, Mar 25, 2010 at 6:07 AM, Filipe Pina <fopina at gmail.com> wrote: > Yes, but the problem is I'm a user, not the proxy administrator, so I can't > change the proxy behavior. > Is there any possible change I can make in pjsip to work with it? Even if > it's in the source code, because I tried finding where the header is being > added but I couldn't.. > > Thank you > >> From: Adrian Georgescu <ag@xxxxxxxxxxxxxxx> >> To: pjsip list <pjsip at lists.pjsip.org> >> Subject: Re: Route header >> Message-ID: <3AD3EFB6-9AC0-47F4-AE34-B18BE6430795 at ag-projects.com> >> Content-Type: text/plain; charset="us-ascii"; Format="flowed"; >> ? ? ? ?DelSp="yes" >> >> You are doing nothing wrong and PJSIP neither. >> >> The problem must be fixed in the proxy configuration of sip.domain.pt >> domain that must accept SIP messages having the header with that value >> as it serves their domains. >> >> ?On Mar 22, 2010, at 9:48 PM, Filipe Pina wrote: >> >> > Hello, >> > I'm trying to get an application that uses PJSIP to connect to a SIP >> > provider using this (fictional) settings: >> > >> > domain: sip.domain.pt >> > proxy: proxy.sip.domain.pt >> > >> > the domain doens't resolve to any IP, it's usable through the proxy. >> > But the server always refuses any SIP messages that contain the >> > Route header (I know it's the route header because I've removed it >> > using MITM and it works). >> > So, I see that PJSIP always adds the Route header to the messages if >> > a proxy is being used, and from what I read, I understand it's as it >> > should be according to the standards. >> > >> > But I'd like to know if it's possible to tell pjsip to not add that >> > header, somehow. >> > >> > The current workaround I'm using is to set proxy.sip.domain.pt IP >> > address to sip.domain.pt in /etc/hosts file and using the SIP >> > application without setting the proxy. >> > >> > Thank you >> > _______________________________________________