<div dir="ltr">Matt,<div><br></div><div>Both of those suggestions worked perfectly.</div><div><br></div><div>Thanks!</div></div><div class="gmail_extra"><br clear="all"><div>Ricky Hartmann | PO Box 1354 Jackson, NJ 08527 <br>
<br>Phone - (732) 580-5853 | eFax - (716) 809-3073</div>
<br><br><div class="gmail_quote">On Mon, Feb 24, 2014 at 3:51 PM, Matthew Jordan <span dir="ltr"><<a href="mailto:mjordan@digium.com" target="_blank">mjordan@digium.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Mon, Feb 24, 2014 at 1:38 PM, Ricky Hartmann <<a href="mailto:rhartmann3@gmail.com">rhartmann3@gmail.com</a>> wrote:<br>
> Hey all,<br>
><br>
> I've been fighting with this all morning, and I feel like this should be a<br>
> relatively simple task, but I just can't get it to work. I currently have a<br>
> very basic asterisk v11.6 setup with a single extension (a Bria softphone)<br>
> and a single sip trunk to my carrier.<br>
><br>
> What I'm trying to accomplish is simply adding the asterisk generated<br>
> SIPCALLID of the leg between asterisk and the carrier to the CDR when it's<br>
> written. (This is in addition to the SIPCALLID of the original call leg,<br>
> which I've already added.) I've been able to print the SIPCALLID for the<br>
> carrier leg to the CLI if I jump into a Macro or Gosub from the Dial command<br>
> (using the M or b options respectively), but that's about it.<br>
><br>
> From what I can tell, this should be easily accomplished with variable<br>
> inheritance, but based on what I'm seeing during test that seems to be a one<br>
> way relationship, as updates in a child channel don't seem to reach the<br>
> parent. Am I missing something? Is there a better way to go about this?<br>
><br>
> The few questions I've found on forums and mailing list archives on this<br>
> subject are all from 2007 and earlier, so I'm hoping something new has come<br>
> along in the last few years and I just haven't found it anywhere. Can<br>
> anyone help?<br>
><br>
<br>
</div></div>You're correct - variable inheritance only goes in one direction, from<br>
the parent to the child. Since the child channel is going to be Party<br>
B in the CDR, variables set on it are unlikely to show up.<br>
<br>
I can think of a few options:<br>
<br>
1) Use the userfield on the outbound channel to store the SIPCALLID. A<br>
little known fact of the userfield is that, on two channels in a<br>
bridge together, the userfields are concatenated together using a ';'<br>
as a delimiter.<br>
2) Use the MASTER_CHANNEL function to reach back to the parent channel<br>
and set the CDR variable there.<br>
<br>
Matt<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Matthew Jordan<br>
Digium, Inc. | Engineering Manager<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>
Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a><br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</font></span></blockquote></div><br></div>