[SR-Users] udp_send "Invalid argument"

Daniel-Constantin Mierla miconda at gmail.com
Sun Oct 24 15:30:47 CEST 2010



On 10/24/10 11:06 AM, Juha Heinanen wrote:
> Juha Heinanen writes:
>
>> $du is set to sip:+35892223333 at 193.166.3.2;transport=udp and the proxy
>> is listening on many sockets, both 127.0.0.1 and external ip address.
>>
>> any idea what might cause the errors?
> looks like that if request comes in via a 127.0.0.1 socket and goes out
> to an external ip address, then sr is not smart enough to use its socket
> with external ip address.  the errors namely went away when i called
> force_send_socket() with external ip address argument before t_relaying
> the request.
>
iirc, it was always the same from the time of ser 0.8. If you don;t 
change the protocol, the core tries to send from the same socket it 
received. You have to use mhomed=1 in order to have detection of 
outgoing interface. 3.x has significant improvements for mhomed=1 done 
by Marius.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com




More information about the sr-users mailing list