I realize that is a fax and sent inside..i can?

hi, the problem is very simple.
My company has a single line and wants to send a fax that when he realizes that it is a fax and sends it to a fax extension (also the fax server 3cx)
There is possibility to realize this?
accept any solution