Step 7: End the Connection

Step 7: End the Connection

Last updated: January 16, 2009

You can end the connection in one of two ways:

Ending the Connection from the Test Set

The CALL:END command is used to end the connection. Here you use the CALL:CONN? query for call synchronization. This query returns a 0 if the call ended successfully and a 1 if the call is not ended.

 
1390  OUTPUT Testset;"CALL:END"
1400  OUTPUT Testset;"CALL:CONN?"
1410  ENTER Testset;Callstate
1420  IF Callstate=1 THEN
1430    PRINT "Make sure the phone has released the call."
1440    OUTPUT Testset;"SYST:PRES3"
1450  END IF

Ending the Connection from the UE

Because the connection is being ended from the UE, it is important to set a timeout value and arm the change detector. More information about using these commands to achieve call synchronization is available in the additional details about this step available on the Internet.

 
OUTPUT Testset;"CALL:CONN:TIM 5" !Set timeout time to 5 seconds.
OUTPUT Testset;"CALL:CONN:ARM"   !Arm the change detector.
DISP "Terminate the call from the mobile station."
OUTPUT Testset;"CALL:CONN?" !Initiate call connect state query.
ENTER Testset;Call_connected     !Program will hang here until state
                                  !change or timer expires.
!Check if disconnect successful.
IF Call_connected THEN OUTPUT Testset;"SYST:PRES3"