199 |
if (!string) |
if (!string) |
200 |
return 1; |
return 1; |
201 |
|
|
202 |
if (!modem_send_command (string, 1000, response, sizeof (response))) |
if (!modem_send_command (string, 10000, response, sizeof (response))) |
203 |
return 0; |
return 0; |
204 |
switch (modem_response_value (response)) |
switch (modem_response_value (response)) |
205 |
{ |
{ |
255 |
snprintf (dialcmd, sizeof (dialcmd), "%s%s%s", PARAM_MODEM_DIALSTR, |
snprintf (dialcmd, sizeof (dialcmd), "%s%s%s", PARAM_MODEM_DIALSTR, |
256 |
PARAM_MODEM_DIAL_PREFIX, phone); |
PARAM_MODEM_DIAL_PREFIX, phone); |
257 |
|
|
258 |
if (!modem_send_command (dialcmd, 60 * 1000, response, sizeof (response))) |
if (!modem_send_command (dialcmd, 60 * 10000, response, sizeof (response))) |
259 |
return 0; |
return 0; |
260 |
switch (modem_response_value (response)) |
switch (modem_response_value (response)) |
261 |
{ |
{ |