Permalink
Browse files

Delivery Receipt matching - found provider that uses 2 digit err value (

  • Loading branch information...
1 parent edcbb11 commit df39e5bfa65a01a07b6529123f6216b2122bbd86 @dineshcooper dineshcooper committed Jul 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 smppclient.class.php
View
@@ -1061,7 +1061,7 @@ class SmppDeliveryReceipt extends SmppSms
*/
public function parseDeliveryReceipt()
{
- $numMatches = preg_match('/^id:([^ ]+) sub:(\d{1,3}) dlvrd:(\d{3}) submit date:(\d{10,12}) done date:(\d{10,12}) stat:([A-Z]{7}) err:(\d{3}) text:(.*)$/si', $this->message, $matches);
+ $numMatches = preg_match('/^id:([^ ]+) sub:(\d{1,3}) dlvrd:(\d{3}) submit date:(\d{10,12}) done date:(\d{10,12}) stat:([A-Z]{7}) err:(\d{2,3}) text:(.*)$/si', $this->message, $matches);
if ($numMatches == 0) {
throw new InvalidArgumentException('Could not parse delivery receipt: '.$this->message."\n".bin2hex($this->body));
}

0 comments on commit df39e5b

Please sign in to comment.