The relay trips the telephone that the circuit is coinnected too. The relay is connected in a normally closed manner so when i send a signal high to it after the phone attached to it rings five times by the calling party, the telephone goes "dead" (no signal) and returns on after a short while. This would end the calling party's call and would read as a MISS CALL by the PIC.
Now what i am trying to do is when the five rings is reached, instead of sending a high to the relay i would send a high to the pin on the PIC18F452 that senses when the phone goes off hook. I did this so the PIC18F452 would think the phone has physically gone off hook when it really didn't. Thus, the ringing on the calling party's end should stop and he/she should be able to enter the device code sequence within the ten seconds the phone suppose to remain activate. However, the ringing doesn't stop on the calling party's end so he/she never knows to enter a pin after the five rings.
What do i do???