Finally, I received the code on my mobile.
$username = "91xxxxxxxxxx"; $identity = "myIdentity"; $w = new WhatsProt($username, $identity, "test", true); $r = $w->codeRequest('sms',$carrier); (or) $r = $w->codeRequest('voice',$carrier);
$carrier
obtained from the networkinfo.csv
file.
operator is nothing more than a mobile network operator (Airtel, Idea, etc.) in accordance with your mobile country code (mcc) and mobile network code (mnc).
You can get mnc and mcc codes from mobile-network-codes-country-codes
Get the mcc and mnc codes with your location and operation corresponding to them using networkinfo.csv
to get the name carrier
.
Eg: My number is 919xxxxxx country - india ( Andhra Pradesh ) operator - Idea
For the above mcc and mnc link for my number 404 & 7
Now check these codes in the networkinfo.csv
file
those. 404,1028,007,7,in,India,91,Idea Cellular Ltd.4
Here 404 -> mcc
and 007 -> mnc
My operator name is Idea Cellular Ltd.4
If you send the correct operator name, you will receive sms / call on your mobile.