How to get SIPCALLID with AGI PHP Script

Hi everybody. :smiley:

Is there any way to get SIPCALLID with AGI PHP to write in CDR userfield?

I did googling and could not find any information about this.

help~

I did it. Thanks.

Do like this. :smiley:

$uniquecallid = $agi->get_variable(“SIP_HEADER(Call-ID)”, true);

Good luck.