if (name == NULL)
name = "";
- if (!dir || !dir[0])
+ if (!dir || !dir[0]) {
if (p_tones_interface[0])
dir = p_tones_interface;
- dir = options.tones_dir; /* just in case we have no PmISDN instance */
+ else
+ dir = options.tones_dir; /* just in case we have no PmISDN instance */
+ }
/* no counter, no eof, normal speed */
p_tone_counter = 0;