[Serusers] Can I Force SER to Send On A Specific Network Interface?

Greger V. Teigre greger at teigre.com
Fri Apr 29 18:10:25 CEST 2005


Hi Paul,
It sets a flag in routing for which socket to use. I am not aware of any restructions on functions you may call after that.
g-)

---- Original Message ----
From: Java Rockx
To: Greger V. Teigre
Cc: serusers
Sent: Friday, April 29, 2005 05:52 PM
Subject: Re: [Serusers] Can I Force SER to Send On A Specific Network
Interface? 

> Thanks Greger.
> 
> One more question - how would I use force_send_socket()?
> 
> Do I replace t_relay() or is this just to be called at the top of the
> main route block or something? 
> 
> Regards,
> Paul
> 
> 
> On 4/29/05, Greger V. Teigre <greger at teigre.com> wrote:
> Supported in >=0.9.0:
>    force_send_socket([proto:]address[:port])
>        sends the message from the specified socket (it _must_ be one
> of the 
>        sockets ser listens on). If the protocol doesn't match (e.g.
> udp 
>        message "forced" to a tcp socket) the closest socket of the
> same 
>        protocol is used.
> 
> ---- Original Message ----
> From: Java Rockx
> To: serusers
> Sent: Friday, April 29, 2005 05:21 PM
> Subject: [Serusers] Can I Force SER to Send On A Specific Network
> Interface?
> 
>> Hi All.
>> 
>> I have a multi-homed ser-0.9.1 proxy. Suppose my interfaces are as
>> follows:
>> 
>> eth0: 10.3.0.221
>> eth1: 10.2.0.42
>> 
>> If SER recieves a SIP message on eth0, how can I force SER to send
>> any replies out eth1?
>> 
>> Regards,
>> Paul
>> 
>> 
>> 
>> 
> 
>> _______________________________________________
>> Serusers mailing list
>> serusers at lists.iptel.org
>> http://lists.iptel.org/mailman/listinfo/serusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20050429/dd97bf8a/attachment.htm>


More information about the sr-users mailing list