[OpenSIPS-Users] How to t_relay() from two send socket?

Bogdan-Andrei Iancu bogdan at voice-system.ro
Sat Oct 23 12:40:24 CEST 2010


Hi CheeWii,

well, if you receive a request on one interface and you want to send it 
out on a different one, as you suspected, use 
"force_send_socket(new_interface)"

hints:
    - new interface must be in format [proto:]ip[:port]
    - opensips must have this new interface configured as listener.

Regards,
Bogdan

CheeWii wrote:
> Hi,Bogdan
> No,I want to received a INVITE request and a MESSAGE request, then I 
> send MESSAGE on public interface and send INVITE on private 
> interface.How can I accomplish this?
>  
> Regards,
> CheeWii
>
> 2010/10/23 Bogdan-Andrei Iancu <bogdan at voice-system.ro 
> <mailto:bogdan at voice-system.ro>>
>
>     Hi CheeWii,
>
>     Do you want to received the a INVITE request and to send it to two
>     destinations , one on private interface and one on public
>     interface? Did
>     I get it right ?
>
>     Regards,
>     Bogdan
>
>     CheeWii wrote:
>     > Hi,
>     >      My OpenSIPS server has two network cards. One is public ip
>     > address such as 202.102.XX.XX,and the other is private ip
>     address,such
>     > as 10.0.1.5.
>     >
>     >      Now ,I want to forward INVITE ,BYE,CANCEL from 10.0.1.5 to
>     > 10.0.1.6,while forward MESSAGE and REGISTER from 202.102.XX.XX to
>     > 202.102.YY.YY.
>     >
>     >      I have test use force_send_socket to control the send
>     sockets to
>     > different kinds of messages,but it seems to unuseful. It just send
>     > message from one socket. How can we accomplish this demo? Thanks
>     a lot.
>     >
>     > CheeWii
>     >
>     >
>     ------------------------------------------------------------------------
>     >
>     > _______________________________________________
>     > Users mailing list
>     > Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>     >
>
>
>     --
>     Bogdan-Andrei Iancu
>     OpenSIPS Bootcamp
>     15 - 19 November 2010, Edison, New Jersey, USA
>     www.voice-system.ro <http://www.voice-system.ro/>
>
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
15 - 19 November 2010, Edison, New Jersey, USA
www.voice-system.ro




More information about the Users mailing list