From: Michael J. <mi...@je...> - 2007-04-23 12:11:37
|
If you add ;maddr=3D1.2.3.4 where 1.2.3.4 is the interface ip to bind = to, to the end of the url that you pass to the NUTAG_URL on nua_create then it binds to the address specified in maddr but properly uses the first part of that url for the via and contact. =20 Mike =20 =20 =20 ________________________________ From: sof...@li... [mailto:sof...@li...] On Behalf Of James Tsai Sent: Monday, April 23, 2007 7:52 AM To: sof...@li... Subject: [Sofia-sip-devel] Duplicated VIA headers of SIP REQUEST =20 Dear all, =20 Did anyone know how to modify the Via header of outgoing SIP REQUEST by using nua level apis? Because I want to fill the external IP of NAT that I obtained (by using some else mechanism outside of sofia-sip). =20 I add "SIPTAG_VIA_STR("SIP/2.0/UDP external_ip")" when creating the handle that is used to sent out SIP REQUEST. But it cause the duplicated Via header of REQUEST i sent, as following : =20 Via: SIP/2.0/UDP 192.168.1.100;rport;branch=3Dz9hG4b...... Via: SIP/2.0/UDP external_ip (It is not exactly I need) =20 By using nua level api, is that any possible way to replace or remove the original Via header generated by sofia-sip stack ? =20 =20 Thanks for your reading, and looking forward to any possible solution? -- James.CM.Tsai -- |