Originate Call and add sipheader

Dear FOP2,

I try to click call php using function orginate

Originate($channel,$exten=NULL, $context=NULL, $priority=NULL,$application=NULL, $data=NULL,$timeout=NULL, $callerid=NULL, $variable=NULL, $account=NULL, $async=NULL, $actionid=NULL)


How to set this header :

"originate_variable=_SIPADDHEADER51=Alert-Info: info=alert-autoanswer"
"originate_variable=_SIPADDHEADER51=Call-Info: answer-after=0"

on that function?




Thanks

Comments

  • All,

    Now I get it:

    $variables="_SIPADDHEADER51=Call-Info: answer-after=0,rec_id=".$rec_id;

    Thanks
Sign In or Register to comment.