In message <[EMAIL PROTECTED]> Aggarwal,
Mitu <[EMAIL PROTECTED]> writes:
>My question is, how does SIP support a multiple adapter scenario such as
>this, using the UDP as the transport? In this case, if the response was just
>automatically sent to the IP and port that the request came from, it would
>work. But the VIA header seems to add a level of confusion.
I'm afraid you have to bind your listening socket to INADDR_ANY
or in6addr_any, if you want to make portable code. One some
TCP/IP stacks, binding the send socket to the address you are
using to listen for responses seems to work. Don't count any
money or debugging time on that, though.
With IPv6, you can also specify which interface(s) is used to
send the request by specifying sin6_scope_id. See RFC2553 for
more details.
...
>The proxy adds it own address to the VIA and send it to the Callee
>VIA: y.y.y.y
>VIA: x.x.x.x:5062
>Now does the caller send the response to y.y.y.y:5062 or does he send it to
>y.y.y.y and the default port? If the port sent to is 5062, and the proxy is
>not listening on that port, we are again broken!
The caller sends response to y.y.y.y:5060..
Pekka
_______________________________________________
Sip-implementors mailing list
[EMAIL PROTECTED]
http://lists.cs.columbia.edu/mailman/listinfo/sip-implementors