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 sends 302 to the caller.
Can I do in kamailio, that it will ring on the Phone1 and also on the number where it is redirected? I know kamailio is a proxy and cannot initiate a call, but is there any solution? Thanks.
Mino
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; $var(contact) = $(var(contact){nameaddr.uri}); $du = $var(contact); append_branch(); t_relay(); } Would it ring it while branch to Phone1 is still active? Maybe not, but you will need to try..
On 08/03/2012 03:53 PM, Mino Haluz wrote:
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 sends 302 to the caller.
Can I do in kamailio, that it will ring on the Phone1 and also on the number where it is redirected? I know kamailio is a proxy and cannot initiate a call, but is there any solution? Thanks.
Mino
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users