On Thursday 25 July 2013 16:30:21 you wrote:
if (t_check_status("486|408")) {
revert_uri();
prefix("voicemail");
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");
rewritehostport("192.168.0.197:5080");
$du = $null;
#$du = "sip:192.168.0.197";
#append_branch();
t_relay();
Taking a look at my config which I found to work after the long struggle you
are experiencing right now.
if($avp(dst_voicemail))
{
$du=$null;
$ru = "sip:tovm-" + $avp(dst_voicemail) + "@" +
$sel(cfg_get.voicemail.srv_ip) + ":" + $sel(cfg_get.voicemail.srv_port);
route(RELAY);
exit;
}
Which effectively sets $du to null (if not null the message would get relayed
to the original destination (the proxy itself)) and rewrites $ru to something
like
"sip:tovm-0123456789@voicemail:5060"
and then just do the normal relay route to deliver the message. Your *_hf
shouldn't have any effect on routing.
--
POCOS B.V. - Croy 9c - 5653 LC Eindhoven
Telefoon: 040 293 8661 - Fax: 040 293 8658
http://www.pocos.nl/ -
http://www.sipo.nl/
K.v.K. Eindhoven 17097024