Skip to content

Commit 16a6349

Browse files
committed
Merge pull request #960 from mgp25/patch-25
Temporary Fix to 'no_routes' error
2 parents 4417afa + 2ddd0b8 commit 16a6349

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/whatsprot.class.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,16 +305,15 @@ public function codeRequest($method = 'sms', $countryCode = null, $langCode = nu
305305
// Build the url.
306306
$host = 'https://' . static::WHATSAPP_REQUEST_HOST;
307307
$query = array(
308-
'cc' => $phone['cc'],
308+
'method' => $method,
309309
'in' => $phone['phone'],
310-
'to' => $this->phoneNumber,
310+
'cc' => $phone['cc'],
311+
'id' => $this->identity,
311312
'lg' => $langCode,
312313
'lc' => $countryCode,
313-
'method' => $method,
314-
'mcc' => $phone['mcc'],
315-
'mnc' => '001',
316314
'token' => urlencode($token),
317-
'id' => $this->identity,
315+
'sim_mcc' => '000', //$phone['mcc']
316+
'sim_mnc' => '000', // 001
318317
);
319318

320319
if ($this->debug) {

0 commit comments

Comments
 (0)