Darren Sessions
2006-Feb-08 15:46 UTC
[Asterisk-Users] Re: Need to retrieve Call-ID from dialed number
Exactly. Message: 8 Date: Wed, 08 Feb 2006 13:41:29 -0600 From: "Kevin P. Fleming" <kpfleming@digium.com> Subject: Re: [Asterisk-Users] Re: Need to retrieve Call-ID from dialed SIP channel (w/o CDRs) To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@lists.digium.com> Message-ID: <43EA4969.60603@digium.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Darren Sessions wrote:> > If try and read in the SIPCALLID variable (which I already do on the > > incoming call) after the dial, I still get the incoming call's call-id. >Your explanation could have been much clearer. Are you saying that you initiate a dial, which succeeds, and then after the call bridge is over you want to know what the Call-ID of the outgoing call was?
Kevin P. Fleming
2006-Feb-08 16:16 UTC
[Asterisk-Users] Re: Need to retrieve Call-ID from dialed number
Darren Sessions wrote:> Exactly.That will be difficult. You cannot set a channel variable on the parent channel from inside the child channel. At best, you can pass the parent channel's name into the child channel, then in a macro run by Dial() you can store the Call-ID into the database keyed by the parent channel's name. However, none of this will work if you dial multiple SIP channels, of course.