Lines Matching refs:answer
763 const char* answer = NULL;
766 case A_SIM_STATUS_ABSENT: answer = "+CPIN: ABSENT"; break;
767 case A_SIM_STATUS_READY: answer = "+CPIN: READY"; break;
768 case A_SIM_STATUS_NOT_READY: answer = "+CMERROR: NOT READY"; break;
769 case A_SIM_STATUS_PIN: answer = "+CPIN: SIM PIN"; break;
770 case A_SIM_STATUS_PUK: answer = "+CPIN: SIM PUK"; break;
771 case A_SIM_STATUS_NETWORK_PERSONALIZATION: answer = "+CPIN: PH-NET PIN"; break;
773 answer = "ERROR: internal error";
775 return answer;
1691 const char* answer; /* default answer, NULL if needs specific handling or
1694 ResponseHandler handler; /* specific handler, ignored if 'answer' is not NULL,
1766 { "A", NULL, handleAnswer }, /* answer the call */
1811 const char* answer;
1816 answer = handleSendSMSText( cmd, modem );
1817 REPLY(answer);
1861 const char* answer = sDefaultResponses[nn].answer;
1864 if ( answer != NULL ) {
1865 REPLY( amodem_printf( modem, "%s\rOK", answer ) );
1872 answer = handler( cmd, modem );
1873 if (answer == NULL)
1876 if ( !memcmp( answer, "> ", 2 ) ||
1877 !memcmp( answer, "ERROR", 5 ) ||
1878 !memcmp( answer, "+CME ERROR", 6 ) )
1880 REPLY( answer );
1883 if (answer != modem->out_buff)
1884 REPLY( amodem_printf( modem, "%s\rOK", answer ) );
1887 REPLY( answer );