However, as soon as {TAIL ~ the controller} detects {HEAD ~ an outgoing long distance call} which commences with a digit 1, the controller inserts a prefix or access code to the dialed number to connect the subscribers telephone unit with a long distance provider or carrier in accordance with the desired algorithm 
However , as soon as { TAIL ~ the controller } detects { HEAD ~ an outgoing long distance call } which commences with a digit 1 , the controller inserts a prefix or access code to the dialed number to connect the subscribers telephone unit with a long distance provider or carrier in accordance with the desired algorithm
OTH OTH OTH OTH OTH TAIL TAIL TAIL TAIL TAIL TAIL OTH HEAD HEAD HEAD HEAD HEAD HEAD HEAD HEAD HEAD OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH