Posted By

smsmatrix on 07/10/10


Tagged

phone call voice gateway


Versions (?)

send voice phone via voice gateway at www.smsmatrix.com


 / Published in: Perl
 

URL: http://www.smsmatrix.com/?sms-gateway

  1. use LWP::UserAgent;
  2. use HTTP::Request::Common;
  3.  
  4. my $ua = LWP::UserAgent->new();
  5. my $res = $ua->request
  6. (
  7. POST 'http://www.smsmatrix.com/matrix_voicew',
  8. Content => [ username => '[email protected]',
  9. password => 'pass8988',
  10. phone => '12502771720', ## comma delimited list
  11. voiceurl => 'http://www.myweb.de/s/welcome.mp3',
  12. response => 0, ## optional
  13. callerid => '16307791722' ## optional
  14. ]
  15. );
  16.  
  17. if ($res->is_error) { die "HTTP Error\n"; }
  18. print "Matrix API Response1: " . $res->content . "\n\n";

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: smsmatrix on July 26, 2010

Also check Canadian sms gateway page.

You need to login to post a comment.