Solstice X.25 9.2 Developer's Guide

12.7.2.1 Reverse Charge

There are two possible values for this facility: 1 indicates reverse charging, and 0 indicates no reverse charging.

This is set as follows:

u_char    reverse_charge;
 reverse_charge = 1;
 f.type = T_REVERSE_CHARGE;
 f.f_reverse_charge = reverse_charge;
 error = ioctl(s, X25_SET_FACILITY, &f); 

This facility is read as follows:

f.type = T_REVERSE_CHARGE;
 error = ioctl(s, X25_GET_FACILITY, &f);
 reverse_charge = f.f_reverse_charge;

Setting this facility before making the connect call causes this facility to be sent in the Call Request. Setting this facility before making the listen call causes Incoming Calls with the reverse charging facility to be accepted. (Calls that are not reverse-charged are always acceptable.) The listener should read the value of the facility after the accept call returns to find out if the call is reverse-charged.


Note -

Reverse charging must be allowed for this ioctl to work. You allow for reverse charging in the x25tool CUG and Facilities window. To access the CUG and Facilities window, from the x25tool Link Editor window, select CUG and Facilities. Click on Incoming Reverse Charging. See Solstice X.25 9.2 Administration Guide for further details.