< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index |
This is a tricky problem to solve, since there is no way (that I know of) to tell ::socket "Only use this set of IP addresses". About the only way to really solve it is to specify the ip you want the traffic to be sent on in the topmost Via of requests that you send (ie, set request.header(h_Vias).front().sentHost()="<your ip address>"). If you wish to restrict the stack from _receiving_ things on the other interface, you can pass your desired ip-address when you call SipStack::addTransport() (5th param).
Best regards,Byron Campen---------------------------------------------------------------------
Hi,
My server has dual NIC. Both nic interfaces are in same subnet. In other words, when the sipstack does dns look up for a destination, it can get either of NIC for transport interface. So, when my server sends sip messages to wire, sip traffic appears in both NIC.
I want SIP message only appear from one particular NIC. (because the other NIC will only for admin or other purpose).
Is it possible to achieve this without changing sip stack code? If not, how?
Thanks,
Roland
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful._______________________________________________resiprocate-devel mailing list
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxx
https://list.resiprocate.org/mailman/listinfo/resiprocate-devel