At our University, we can dial 4 digit numbers to reach internal lines, and must dial 9 to get an external line.
I'd like to be able to use the same rules for sending faxes, and I've read (but not understood) the dialrules manpage, but I'm not sure what I have to change for this to work.
If anyone else has already done this, could you please share the changes with us?
Right now, I'm using something like: sendfax -d Jack@9,9787320 /etc/fstab But I'd like to be able to use: sendfax -d Jack@7320 /etc/fstab (for internal faxes), and: sendfax -d Pizza@9671111 /etc/pizza (for external calls).
^[0-9]{7,}$ = 9,&would do the trick I think (use the dialtest program to debug your rules).