Originate Call and add sipheader

  1. 7 years ago

    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

  2. All,

    Now I get it:

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

    Thanks

or Sign Up to reply!