[SR-Users] 302 redirect with 2 numbers registered

2012-08-03 Thread Mino Haluz
Hi, one number is registered on 2 phones. Phone1 has Always redirect set to another number. When incoming call is initiated, Phone2 is ringing and Phone1 sends 302 to the proxy. However the proxy does not send 302 to the caller (for ex. GW), but it waits for timeout of the Phone2. Then the proxy

Re: [SR-Users] 302 redirect with 2 numbers registered

2012-08-03 Thread Andrew Pogrebennyk
Mino, I am not sure, but you could try the following: set failure_reply_mode 3 (http://kamailio.org/docs/modules/stable/modules/tm.html#failure_reply_mode), then handle 302 redirect in the proxy and use the contact as a new branch like this: if(status == 302) { $var(contact) = $ct;