Skip to content

Commit

Permalink
Fix for US and Canadian senders
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmaier1989 authored Jun 29, 2016
1 parent 8719a2f commit f0801b4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion library/Xi/Sms/Gateway/ClickatellGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@ public function send(SmsMessage $message)
'password' => $this->password,
'to' => implode(',', $message->getTo()),
'text' => utf8_decode($message->getBody()),
'from' => $message->getFrom()
'from' => $message->getFrom(),
/**
* Mobile originated (required for USA and Canada)
* http://stackoverflow.com/questions/36584831/clickatell-http-api-send-message-fails-with-routing-error-status-9
*/
'mo' => 1,
);

$response_string = $this->getClient()->get(
Expand Down

0 comments on commit f0801b4

Please sign in to comment.