<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi,<br>
I have a similar issue with kamailio 4.3.4. I want to append a
header to external 486 or 603 reply. If I got it right I should
call append_hf, not append_to_reply which is for locally generated
replies.<br>
<br>
I've added append_hf() and in the end of failure route call exit
but for some reason that header does not appear on the wire.<br>
So I have added msg_apply_changes() in failure route to see if it
changes something for me.<br>
1st surprise is that kamailio actually started with this config.
2nd surprise is that is still doesn't work and throws an error
which I didn't see before:<br>
<br>
Dec 22 16:01:34 sp1 (local7.info) proxy[23957]: INFO:
<script>: >>>>>>>> append
reply_sock='udp:10.15.20.143:5060' in REPLY_ROUTE_NAT -
ID=O4Oh8J6hm5ESJag-hlhXQIcBf6HSuZ2g UA='<null>'<br>
Dec 22 16:01:34 sp1 (local7.err) proxy[23957]: ERROR: tm
[t_reply.c:289]: update_totag_set(): ERROR: update_totag_set: to
not parsed<br>
<br>
Is that an expected behavior or why can't I append any header in
failure route?<br>
<br>
Regards,<br>
Andrew<br>
<br>
On 12/18/2015 03:55 PM, smititelu wrote:<br>
</div>
<blockquote cite="mid:56741E67.60709@1and1.ro" type="cite"> Hello,<br>
<br>
I don't understand why msg_apply changes() can be called from
REQUEST_ROUTE <b>only</b>. Can someone explain? Can this be
extended to <b>FAILURE_ROUTES </b>also?<br>
<br>
Basically I need to call this from FAILURE_ROUTES in order to
avoid double SDP for rtpengine offers. Searching in the mailing
list I could see that there could be other means of handling this
like keeping and reading the SDP from an avp(write/<span
class="blob-code-inner"><span class="pl-s">read_sdp_pv<span
class="pl-pds"></span></span></span>), but I find the above
method pretty straightforward.<br>
<br>
Thanks,<br>
Stefan</blockquote>
<br>
</body>
</html>