On Sat, Oct 31, 2009 at 1:42 AM, P.Muge Ersoy <muge.ersoy at gmail.com> wrote: > Hi All; > > I search the site find some clue but they havent worked for my case. > I want to fill the sent by address while sending the registeration. I tried > to set both public and bound addresses but they didnt work. > reregisteration only changes the contact ip address if pjsip is behind nat. > Any clues about how to set via ip addres > > Via: SIP/2.0/UDP > 1:5060;rport;branch=z9hG4bKPj92512e8c1be842eabc85adf99e5f2058 > What goes to Via sent-by comes from the so called "published name" of the SIP transport. With PJSUA-LIB, you can override it by setting pjsua_transport_config.public_addr field. Although, if you enable STUN, PJSUA-LIB would override that with the STUN resolved address. Failing to do that, you can always create a pjsip_module to manipulate SIP messages that goes out/comes in from/to pjsip. Cheers Benny > Regards > Muge > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >