moses

Member

Last active 6 years ago

  1. 8 years ago
    Wed Jul 20 02:32:44 2016

    Hi FOP2,

    I think this case is close, i do that by asmanager.php

    Thanks

  2. Wed Jul 20 02:29:23 2016

    Hi Fop2,

    Before

    echo "<a href='#' onclick='parent_dial(\"$numberstrip\",\"$cust_id\",\"$extension\")'>{$ph}</a>";

    Then change to then it working

    echo "<a href='javascript:void();' onclick='parent_dial(\"$numberstrip\",\"$cust_id\",\"$extension\")'>{$ph}</a>";

    Thanks you response:)

  3. Wed Jul 20 02:24:50 2016
    moses posted in parent.dial mini browser.

    Hi FOP2.

    Now it working:

    my code as below :
    originate.php
    <?php
    require_once("/var/www/html/fop2/admin/asmanager.php");
    $astman = new AsteriskManager();
    $extension=trim($_REQUEST['extension']);
    $phone_number=trim($_REQUEST['phone_number']);
    $cust_id=trim($_REQUEST['cust_id']);
    $uniq_id=trim($_REQUEST['uniq_id']);
    //Originate($channel, $exten, $context, $priority, $timeout, $callerid, $variable, $account, $application, $data)
    if(!empty($extension) && !empty($phone_number) && !empty($cust_id)){
    global $astman, $conf;
    if($astman->connect()){
    $res = $astman->Originate('SIP/'.$extension,$phone_number,'from-internal',1,null,$phone_number,'PARAM_VALUE=CUSTOMER_ID='.$cust_id,null,null,null,null);

    if(false) {
    $this->log("Failed to login.");
    $this->disconnect();
    return false;
    }

    if($res['Response']=='Error') {
    return false;
    }

    echo true;
    }
    }else{
    return false;
    }
    ?>

    php script

    $ph="081287264002";
    $cust_id = empty($_REQUEST['cust_id'])?'1234':$_REQUEST['cust_id'];
    $extension = empty($_SESSION['extension'])?'1000':$_SESSION['extension'];
    $numberstrip = preg_replace("/[^0-9]/","",$ph);
    $cust_id=preg_replace("/[^0-9]/","",$cust_id);
    echo "<a href='#' onclick='parent_dial(\"$numberstrip\",\"$cust_id\",\"$extension\")'>{$ph}</a>";

    my.js

    <script type="text/javascript">
    function parent_dial(phone_number,cust_id,extension){
    $.ajax({
    url: 'http://my/zd/originate.php',
    type: 'POST',
    dataType: 'text',
    data: 'extension='+ extension+'&phone_number='+ phone_number+'&cust_id='+cust_id,
    success: function (response) {

    $(".result").html(response);
    },
    error: function () {
    alert("error");
    }
    });
    }
    </script>

  4. Tue Jul 19 10:40:25 2016
    moses started the conversation Bar MiniBrowser Lost After Dialed Number.

    Hi FOp2 Team,

    I have something issue about fop2 minibrowser

    If i dial number on minibrowser the bar is lost.

    Pls see my pic on attachment.

    Why it happen?

    Thanks

  5. Mon Jul 18 10:08:22 2016
    moses posted in parent.dial mini browser.

    Hi FOP2 Team,

    Any update for my Question?

    Thanks

  6. Mon Jul 18 03:34:53 2016
    moses started the conversation AutoAnswer Header.

    Dear FOP2,

    How to set multiple header on FOP2 Button,

    I want to set header :

    Alert-Info: sip:\;info=alert-autoanswer
    Call-Info: sip:\;answer-after=0

    Thanks

  7. Sun Jul 17 05:53:57 2016
    moses posted in Hold call via fop2.

    HI FOP2,

    Is it possible to change dnd my extension after parking without change manually? And remove dnd automatic when unparking?

    If I should change on dialplan parking what command should I send to asterisk (userevent)

    Thanks

  8. Thu Jul 14 14:26:34 2016
    moses started the conversation parent.dial mini browser.

    Hi FOP2 Team,

    Until now our team also focus developement crm telemarketing system that integrated to FOP2 Page. Our crm embeded on mini browser FOP2.

    But i still have issue how to mapping "customer_id" on database CRM with "recording_file" on table asteriskcdr

    Do you have other solution for this case?, so when we using function click dial "parent.dial" can send other parameter, example like this :

    $row['phone1']="081287264002";
    $numberstrip = preg_replace("/[^0-9]/","",$row['phone1']);
    echo "<a href='#' onclick='parent.dial(\"$numberstrip\","\$customer_id\")'>081287264002</a>";

    This same like "Originate Variable" can send to asterisk.

    I really appreciate your help to implement my request.

    Thanks

  9. Thu Jul 14 11:18:59 2016
    moses started the conversation Custom Presence FOP2..

    Hi FOP2

    If i check config presence.js the default as below :

    var presence = new Object();
    presence[''] = '#6094AB'; --> AVAILABLE as default VALUE
    presence['Do not Disturb'] = '#FF8A8A';
    presence['Out to lunch'] = '#57BCD9';
    presence['Break'] = '#6094DB';
    presence['Meeting'] = '#CDD11B';

    If value presence "AVAILABLE" , ext can received in and out call.

    If value presence other than "available", we can't received incoming call, but we can outgoing call.

    How can i change default value "available" to other value", i want every user/agent that login to fop2 can't receive call. If agent/user want to receive incoming call, they should be change presence to "available"

    And more powerful if we can set default value presence for group extension fop2 like :

    presence status after login to fop2
    presence status after call on hook/hangup
    presence status after call parking
    presence status after call blind tranfer, supervised tranfer
    presence status after transfer to mobile
    presence status after spy
    presence status after hangup conference

    Thanks

  10. Thu Jul 14 10:38:39 2016
    moses posted in Hold call via fop2.

    Hi FOP2,

    The last night via chat you said, we can use parking call.

    But if we doing parking call, may be lead new problems if the case is as follows :

    Example : Extension 101 received call from customer PSTN line (IVR Queue) --> 1st call

    and then Ext 101 parking call.

    I set parking 70 /parking time : 3 minute / back to origin

    Before 3 minute, there is incoming call PSTN line (IVR Queue) --> 2nd call, and ringing again on ext 101.

    My purpose is , how to make the second call not ringing no ext : 101?

    Thanks

View more