I have checked that I'm , experiencing the same problem when the redirection to voicemail is originated by the destination UAC via 302 message. Kamailio sends the packet to the destination UAC, even when I set $du to null.
??¿?¿?¿¿??¿
if ($rU=~"^voicemail.*") {
$du = $null;
remove_hf("P-App-Name");
append_hf("P-App-Name: voicemail\r\n");
append_hf("P-App-Param: mod=box;usr=$rU;dom=
sipproxy.a.com;uid=$rU;did=
sipproxy.a.com;\r\n");
$ru = "sip:" + $rU + "@" + "
192.168.0.197:5080";
$du = $null;
route(RELAY);
exit;
}
Conv.| Time | 192.168.3.20 | 192.168.0.167 |
| | | 192.168.0.197 |
0 |3,574 | INVITE SDP ( telephone-event) | |SIP From:
sip:4095@192.168.0.197 To:sip:4440@192.168.0.197
| |(5060) ------------------> (5060) | |
0 |3,575 | 407 Proxy Authentication Required | |SIP Status
| |(5060) <------------------ (5060) | |
0 |3,577 | ACK | | |SIP Request
| |(5060) ------------------> (5060) | |
0 |3,577 | INVITE SDP ( telephone-event) | |SIP From:
sip:4095@192.168.0.197 To:sip:4440@192.168.0.197
| |(5060) ------------------> (5060) | |
0 |3,584 | 100 trying -- your call is important to us | |SIP Status
| |(5060) <------------------ (5060) | |
0 |3,585 | | INVITE SDP ( telephone-event) |SIP Request
| | |(5060) ------------------> (5060) |
0 |3,587 | | 100 Trying| |SIP Status
| | |(5060) <------------------ (5060) |
0 |3,587 | | 302 Moved Temporarily |SIP Status
| | |(5060) <------------------ (5060) |
0 |3,588 | | ACK | |SIP Request
| | |(5060) ------------------> (5060) |
0 |3,592 | 302 Moved Temporarily | |SIP Status
| |(5060) <------------------ (5060) | |
0 |3,594 | ACK | | |SIP Request
| |(5060) ------------------> (5060) | |
-----------------------------------------------------------------------------
1 |3,596 | INVITE SDP ( telephone-event) | |SIP From:
sip:4095@192.168.0.197 To:sip:voicemail4440@192.168.0.167:5060
| |(5060) ------------------> (5060) | |
1 |3,596 | 407 Proxy Authentication Required | |SIP Status
| |(5060) <------------------ (5060) | |
1 |3,600 | ACK | | |SIP Request
| |(5060) ------------------> (5060) | |
1 |3,601 | INVITE SDP ( telephone-event) | |SIP From:
sip:4095@192.168.0.197 To:sip:voicemail4440@192.168.0.167:5060
| |(5060) ------------------> (5060) | |
1 |3,608 | 100 trying -- your call is important to us | |SIP Status
| |(5060) <------------------ (5060) | |
1 |3,608 | | INVITE SDP ( telephone-event) |SIP Request
| | |(5060) ------------------> (5060) |
1 |3,608 | | 404 Not Found |SIP Status
| | |(5060) <------------------ (5060) |
1 |3,609 | | ACK | |SIP Request
| | |(5060) ------------------> (5060) |
1 |3,614 | 404 Not Found | |SIP Status
| |(5060) <------------------ (5060) | |
1 |3,615 | ACK | | |SIP Request
| |(5060) ------------------> (5060) | |