mirror of
				https://github.com/node-red/node-red-nodes.git
				synced 2025-03-01 10:37:43 +00:00 
			
		
		
		
	
				
					committed by
					
						
						Dave Conway-Jones
					
				
			
			
				
	
			
			
			
						parent
						
							b858df4770
						
					
				
				
					commit
					8614bb08ed
				
			@@ -64,7 +64,7 @@ module.exports = function(RED) {
 | 
			
		||||
                    var twimlurl = node.url || msg.payload;
 | 
			
		||||
                    node.twilioClient.makeCall( {to: tonum, from: node.fromNumber, url: twimlurl}, function(err, response) {
 | 
			
		||||
                        if (err) {
 | 
			
		||||
                            node.error(err.message);
 | 
			
		||||
                            node.error(err.message,msg);
 | 
			
		||||
                        }
 | 
			
		||||
                        //console.log(response);
 | 
			
		||||
                    });
 | 
			
		||||
@@ -73,7 +73,7 @@ module.exports = function(RED) {
 | 
			
		||||
                    // Send SMS
 | 
			
		||||
                    node.twilioClient.sendMessage( {to: tonum, from: node.fromNumber, body: msg.payload}, function(err, response) {
 | 
			
		||||
                        if (err) {
 | 
			
		||||
                            node.error(err.message);
 | 
			
		||||
                            node.error(err.message,msg);
 | 
			
		||||
                        }
 | 
			
		||||
                        //console.log(response);
 | 
			
		||||
                    });
 | 
			
		||||
@@ -81,7 +81,7 @@ module.exports = function(RED) {
 | 
			
		||||
 | 
			
		||||
            }
 | 
			
		||||
            catch (err) {
 | 
			
		||||
                node.error(err);
 | 
			
		||||
                node.error(err,msg);
 | 
			
		||||
            }
 | 
			
		||||
        });
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user