Lines Matching refs:answer
1313 const char* answer = NULL;
1316 case A_SIM_STATUS_ABSENT: answer = "+CPIN: ABSENT"; break;
1317 case A_SIM_STATUS_READY: answer = "+CPIN: READY"; break;
1318 case A_SIM_STATUS_NOT_READY: answer = "+CMERROR: NOT READY"; break;
1319 case A_SIM_STATUS_PIN: answer = "+CPIN: SIM PIN"; break;
1320 case A_SIM_STATUS_PUK: answer = "+CPIN: SIM PUK"; break;
1321 case A_SIM_STATUS_NETWORK_PERSONALIZATION: answer = "+CPIN: PH-NET PIN"; break;
1323 answer = "ERROR: internal error";
1325 return answer;
2346 const char* answer; /* default answer, NULL if needs specific handling or
2349 ResponseHandler handler; /* specific handler, ignored if 'answer' is not NULL,
2436 { "A", NULL, handleAnswer }, /* answer the call */
2478 const char* answer;
2483 answer = handleSendSMSText( cmd, modem );
2484 REPLY(answer);
2528 const char* answer = sDefaultResponses[nn].answer;
2531 if ( answer != NULL ) {
2532 REPLY( amodem_printf( modem, "%s\rOK", answer ) );
2539 answer = handler( cmd, modem );
2540 if (answer == NULL)
2543 if ( !memcmp( answer, "> ", 2 ) ||
2544 !memcmp( answer, "ERROR", 5 ) ||
2545 !memcmp( answer, "+CME ERROR", 6 ) )
2547 REPLY( answer );
2550 if (answer != modem->out_buff)
2551 REPLY( amodem_printf( modem, "%s\rOK", answer ) );
2554 REPLY( answer );