Lines 166-176
restart_sip()
Link Here
|
166 |
done |
166 |
done |
167 |
echo $noLF `start_sip ${name}` |
167 |
echo $noLF `start_sip ${name}` |
168 |
else |
168 |
else |
|
|
169 |
echo $noLF `start_sip ${name}` |
169 |
if [ "$verbose" != "no" ]; then |
170 |
if [ "$verbose" != "no" ]; then |
170 |
log_daemon_msg "Warning: SIP server not running for ${name}" |
171 |
log_daemon_msg "Warning: SIP server not running for ${name}... trying to start" |
171 |
log_end_msg 0 |
172 |
log_end_msg 0 |
172 |
else |
173 |
fi |
|
|
174 |
if is_sip_running ${name}; then |
173 |
return 0 |
175 |
return 0 |
|
|
176 |
else |
177 |
if [ "$verbose" != "no" ]; then |
178 |
log_daemon_msg "Warning: SIP server not started, check your config" |
179 |
log_end_msg 0 |
180 |
fi |
181 |
return 1 |
174 |
fi |
182 |
fi |
175 |
fi |
183 |
fi |
176 |
} |
184 |
} |
177 |
- |
|
|