<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
<div class="moz-cite-prefix">On 28/03/14 19:58, Ryan Brindley wrote:<br>
</div>
<blockquote
cite="mid:CAPW0Xzo9qPg=77d_A36Qd_T-3dpmnDUo3dyP43A4+SgVMRuUcQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Hey community,</div>
<div><br>
</div>
<div>I'm trying to get a 2nd leg custom header value stored in
my acc table.</div>
<div><br>
</div>
<div>Right now I'm appending the header with append_hf in a
failure route and trying to use:</div>
<div><br>
</div>
<div>modparam("acc","db_extra","custom=$hdr(Custom)")<br>
</div>
<div><br>
</div>
<div>A sip trace shows the header was properly added and xlog
output shows the proper $hdr(Custom) value just after I append
the header, but the value doesn't show in acc. <br>
</div>
</div>
</blockquote>
<br>
are you using msg_apply_changes()? If not, then the appended header
should not show up in xlog()<br>
<br>
<blockquote
cite="mid:CAPW0Xzo9qPg=77d_A36Qd_T-3dpmnDUo3dyP43A4+SgVMRuUcQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div>Does acc only read from the INVITE of the incoming leg?</div>
</div>
</blockquote>
<br>
Yes, the $hdr(...) points to headers in incoming request.<br>
<blockquote
cite="mid:CAPW0Xzo9qPg=77d_A36Qd_T-3dpmnDUo3dyP43A4+SgVMRuUcQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div>Any suggestions on how to get this 2nd leg INVITE header in
acc is greatly appreciated. <br>
</div>
</div>
</blockquote>
<br>
Store the value in an $avp(...) or $xavp(...) and use it for
accounting.<br>
<br>
Cheers,<br>
Daniel<br>
<blockquote
cite="mid:CAPW0Xzo9qPg=77d_A36Qd_T-3dpmnDUo3dyP43A4+SgVMRuUcQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div>Thanks in advance,</div>
<br clear="all">
<div>
<div dir="ltr">
<div style="font-family:arial;font-size:small">Ryan</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference - April 2-4, 2014, Berlin, Germany
<a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
</body>
</html>