plivo / plivoframework

Open Source Telephony Application Prototyping Framework
http://www.plivo.com/open-source/
Other
417 stars 180 forks source link

Plivo outgoing calls going to voicemail #138

Closed chuks closed 7 years ago

chuks commented 7 years ago

Hi, I have been using nodejs and plivo, and I just started seeing something strange. All outgoing calls from Plivo are now going directly to my voicemail. My phone does not ring, for some reason. I can verify that i can receive incoming calls on the phone, but when the call is initiated from Plivo, it goes directly to my voicemail, and I can hear the prompts in the message. Weird? Here is a code snippet:

var params = {
        'to':                       123456789,  //this is my mobile number
        'from':                     123456789, //this is my registered plivo number
     'answer_url':              answerUrl, //this is the URL that processes the call
     'caller_name':             'Test',
     'answer_method':           'POST', 
     'machine_detection':       'true',   // Used to detect if the call has been answered by a machine. The valid values are true and hangup.
        'machine_detection_time':   '5000',   // Time allotted to analyze if the call has been answered by a machine. The default value is 5000 ms.
        'machine_detection_url':    'http://example.com/machine_detection/', // A URL where machine detection parameters will be sent by Plivo.
        'machine_detection_method': 'GET' // Method used to request machine_detection_url,
};
var plivoApi = plivo.RestAPI({
    authId:           plivo_auth_id,   //plivo auth id
    authToken:   plivo_auth_token //plivo token
});

plivoApi.make_call(params, function (status, response) {
});