<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Hi Simon,<br>
<br>
This is one of the things addressed in 3.6, where you can attache
various attributes to a branch, after creating it.<br>
<br>
But for older version, a quick dirty trick is to pack the info you
need (per branch), do a base64 over it and added it as URI param
when doing append_branch()...and you can retrieve it later in
branch route, do revert base64 and unpack.<br>
<br>
Regards,<br>
</font>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
<a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
<div class="moz-cite-prefix">On 07.07.2025 17:41, Simon Gajski via
Users wrote:<br>
</div>
<blockquote type="cite"
cite="mid:c64be59c-86a5-4cae-8b9c-d62a425959e0@softnet.si">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<p>Hi to all<br>
<br>
Is there a way to add additional accounting info for each
append_branch?<br>
append_branch(<a class="moz-txt-link-rfc2396E"
href="sip:$avp(forking_num)@1.2.3.4:5060"
moz-do-not-send="true">"sip:$avp(forking_num)@1.2.3.4:5060"</a>);<br>
I am using opensips 3.5<br>
<br>
My problem here is that I am doing parallel forking with
opensips subscriber number and mobile number.<br>
I get ringing on both numbers, calls are working fine no matter
which side answers.<br>
<br>
But I would need additional info in accounting table that my
subscriber sent forking call to pstn gateway.<br>
So far only first cdr is stored to my acc table of a call
comming to my opensips subscriber number.<br>
<br>
Thanks for all help<br>
<br>
BR<br>
Simon</p>
<div class="moz-signature">
<table
style="border-collapse:separate;table-layout:fixed;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;max-width:600px;"
emb-background-style="" width="600" cellspacing="0"
cellpadding="0" border="0">
<tbody>
<tr>
<td
style="color:#555555;font-size:13px;mso-line-height-rule:exactly;line-height:19px;padding-bottom:8px;font-family:Helvetica,Arial,sans-serif;"><br>
</td>
</tr>
<tr>
<td
style="color:#555555;font-size:13px;mso-line-height-rule:exactly;line-height:16px;padding-top:1px;font-family:Helvetica,Arial,sans-serif;"><br>
</td>
</tr>
<tr>
<td
style="color:#555555;font-size:13px;height:73px;font-family:Helvetica,Arial,sans-serif;"><br>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>