Hi,
i have found the solution:

if (method == "INVITE") {
                 if (uri =~ "^sip:*"){
            rewritehost("192.168.4.66");
                        t_relay_to_udp( "192.168.4.66", "5060");
                        break;
                        }
                };

    if (method == "CANCEL" || method == "BYE") {
        if (uri =~ "^sip:*"){
            forward( 192.168.4.66 , 5060 );       
            }
        };

    if (method == "ACK"){
        if (uri =~ "^sip:*"){
            rewritehost("192.168.4.66");
            }
        };

thank you any way and hope that this will help

2007/1/25, karim basraoui <basraouik@gmail.com>:
Hi,

The topic may have been already discussed, but still there are some problems.

I have an architecture like this :

UA1 ->SER -> ASTERISK -> UA2

when UA1 sends an INVITE to UA2, SER forwards the call to ASTERISK, i can hear UA2 ringing. however, when UA2 answers, i can see "connected" on UA1 but UA2 hungs up by itself, as if ASTERISK cancels the call.

is there any solution to oblige ASTERISK to forward the "200 OK" to SER?

thanks in advance
--
BASRAOUI Karim



--
BASRAOUI Karim