Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo


Use opensips as a carrier

  • Diego Gonzalez
    Diego Gonzalez

    Hello !!!

    I am very very new to open sip and probably this is a silly question for all of  you, but I need I hand with this..

    I have two server… lets said A  and B

    I need to redirect the calls that are coming to A to server B. I know it can be done using opensips but I do not know how to start or which modules or function can help me to achive this….

    I have already used the   rewritehost("B"); function and it works,, but what I need is to send the whole packet to server B without changing the server A ip' address..

    Any help will be appreciated

  • Hi,

    If you want to force a request to go to another address than per RURI, you have to use the destination URI (this is an outbound proxy to be used for that request).
    So, simply set the destination URI to B (this will not change the RURI of the mesage) :  $du = "sip:B_IP:B_port" ;
    and send the request out.


  • Diego Gonzalez
    Diego Gonzalez

    Hi Bogdan..

    When you said "send the request out" you mean use the forward(); function. don't you ?

  • either "forward()" (stateless) , either "t_relay()"  (stateful)