On Wed, Feb 11, 2015 at 1:06 PM, Harald Radke <harryrat at gmx.de> wrote: > hm...I guess if you are about to change sip_transport_udp.c the place to > look would be udp_send_msg(). here you can modifiy rem_addr to set it to > the desired target address, redirecting ALL messages of the udp transport > to it. of course if you want to make it a little more convenient, that is, > parametrize it somehow, you have to do some more work. > > Another idea might be to write a small module with high priority, > implement the on_tx_request()/response() callbacks and modify the message > data by putting a Route header in front of all others pointing to your > destination. you can init that module then from your app with the desired > destination address. > > However this would slightly modify the "original" sip message, and since I > havent tried it, I dont know if it works at all (-: > > Regards, > > Harry > > *Gesendet:* Samstag, 07. Februar 2015 um 17:25 Uhr > *Von:* "Nahum Nir" <hello.shalom.hi at gmail.com> > *An:* "pjsip list" <pjsip at lists.pjsip.org> > *Betreff:* Re: [pjsip] How to Change PJSIP Sending Address? > Thanks Harald, > > Yes, kind of. > Normally, if I'm not wrong, most massages are sent to a SIP server (like > REGISTER, INVITE, BYE). I want to be able to control the address that PJSIP > sends those messages. > > Thanks, > Nir > > On Thu, Feb 5, 2015 at 2:06 PM, Harald Radke <harryrat at gmx.de> wrote: >> >> >> not quite sure what you mean... what do you want to "echo" ? SIP messages >> from your PJSIP user agent which are normally sent to another UA? Like the >> responses to incoming requests and outgoing requests? >> >> Regards, >> >> Harry >> *Gesendet:* Donnerstag, 05. Februar 2015 um 09:31 Uhr >> *Von:* "Nahum Nir" <hello.shalom.hi at gmail.com> >> *An:* pjsip at lists.pjsip.org >> *Betreff:* [pjsip] How to Change PJSIP Sending Address? >> >> Hi All, >> >> I am trying to change the sending address of PJSIP to echo it to another >> server (not SIP). I tried to change the method transport_attach(..) in >> sip_transport_udp.c by changing the value of tp->base.remote_name but it >> has no effect. >> >> Can someone please advise on where should I change it? >> >> Thanks, >> >> Nir >> _______________________________________________ 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 >> >> _______________________________________________ >> 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 >> > > _______________________________________________ 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 > > _______________________________________________ > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150211/e8077b38/attachment.html>