Voice Call- AT commands to set up voice call



With Online AT Command Tester tool, you can test outgoing and incoming voice calls. The tool provides easy to use interface to dial outgoing number and accept incoming calls.

The AT Command Tool will first check whether the device is registered on the network. If so, it will send the necessary AT commands to initiate teh voice call. For incoming calls, it will monitor the device for “RING” command and alert the user.

Once the device us powered up, check whether SIM card is present. If the SIM is not inserted properly or if the SIM card is locked, please correct those issues.
AT+CPIN?
+CPIN: READY
OK
The device above returns that the SIM is ready to use.

Then check the registration status of the device.
If the regisration status is “Searching” or “Not Registered”, that means that the device is not able to acquire the signal from the base station. The device should usually find the nearest base station within few minutes (max 15min). If you dont get “Registered” response for the AT+CGREG command,
– Verify that the antenna is properly connected on the device
– Verify that the bands supported by the device match the bands of the network provider

AT+CGREG?
+CGREG: 0,1
OK
In the above case, the device returns that it is registred in the home network.

After verifying the network registration status, you can get the network information. If the device is registered on the home network, the network info on the SIM card used should match the network info returned by the AT+COPS command,
AT+COPS?
+COPS: 0,0,”T-Mobile”
OK

Now check the signal quality.
AT+CSQ
+CSQ: 10,0
OK
That return corresponds to a RSSI value of -93 dBm. This is only slightly better than marginal coverage. We should still be able to make a call on this signal condition, but the throughput may not be that good.

Now dial the number,
ATD858#######;
OK

Once the called number is answered, the device should establish a voice call.
To hangup the call, send the hang-up AT command.
ATH

The voice call will be ended after the hang-up command is sent. The device will be go back to monitoring the network state.

To call the last dialled number again,
ATDL
OK

Answer voice call using AT command
To answer an incoming call, mobile device should send the ATA response. To verify this, you can connect appropriate port of the device to the Hyperterminal program. Find out the phone number of the device,

AT+CNUM
+CNUM: “Line 1?,”+1858#######?,145
OK

Call the above phone number using another landline phone or mobile phone. The hyperterminal should indicate the incoming call through the ‘RING’ alert. Answer the phone call by issuing the ATA command in the hyperterminal.

RING

RING
ata
OK

You can configure the device to automatically answer the call through AT command,
ATS0=1
OK
Above configuration will auto-anser after 1 ring. To disable auto-answering,
ATS0=0
OK

Try this script included in AT Command Tester Tool.

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//Script-initiate_voice_call.at

//Procedure to voice data call

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

 

//First check SIM is not locked and it is ready

AT+CPIN?

 

//Wait

WAIT=1

 

//Check the signal strength. In weak signal conditions, data throughput will be low

AT+CSQ

 

//Check what network is the device on

AT+COPS?

 

//Wait for few seconds as AT+COPS command can take time

WAIT=3

 

//Get the registration status of the device. If the status is ‘1’, the device is registered and in home network

AT+CREG?

 

//Wait

WAIT=3

 

 

//Dial the number. Change the number in the example below

ATD7767788888;

 

//Wait

WAIT=5

 

//Hang up the call

ATH

 

//Wait

WAIT=5

 

//Dial the number. Disables presentaiton of own number to called party

ATD7767788888I;

 

//Wait

WAIT=5

 

//Hang up the call

ATH

 

//Dial the number. Enables presentaiton of own number to called party

ATD7767788888i;

 

//Wait

WAIT=5

 

//Hang up the call

ATH

 

//Wait

WAIT=5

 

//Dial the number. Activates closed user group invocation for this call

ATD7767788888G;

 

//Wait

WAIT=5

 

//Hang up the call

ATH

 

//Dial the number. Deactivates closed user group invocation for this call

ATD7767788888g;

 

//Wait

WAIT=5

 

//Hang up the call

ATH

 

 

 

Response to above output script in AT Command Tester Tool.

AT+CPIN?

+CPIN: READY

 

OK

SIM is ready.

 

AT+CSQ

+CSQ: 17,0

 

OK

Signal level is -79 dbm. Signal condition is good.The signal strength range is -53 dbm (Excellent) to -109 dbm (Marginal).

 

AT+COPS?

+COPS: 0,0,”T-Mobile USA”

 

OK

Device is currently on “T-Mobile USA” network.

 

AT+CREG?

+CREG: 0,1

 

OK

The device is registered in home network.

 

ATD7767788888;

OK

Voice call successfull

 

ATH

OK

Call sucessfully dis-connected..

 

ATD7767788888I;

OK

Voice call successfull

 

ATH

OK

Call sucessfully dis-connected..

 

ATD7767788888i;

OK

Voice call successfull

 

ATH

OK

Call sucessfully dis-connected..

 

ATD7767788888G;

OK

Voice call successfull

 

ATH

OK

Call sucessfully dis-connected..

 

ATD7767788888g;

OK

Voice call successfull

 

ATH

OK

Call sucessfully dis-connected..

Keywords: Module voice call, M2M voice call, GPRS voice call, 3G voice call, voice call through AT commands,