Hello,
I am using function adl_callSetup(“50198***”,ADL_CALL_MODE_VOICE) to make a voice call or data call:
Function return OK, but I cannot call anoter phone number:
I subscribe to adl_callSubscribe(MyCallHandler) to see what’s going on… And I get:
What am I doing wrong? Am I missing something before calling adl_callSetup()?
The code is below:
const u16 wm_apmCustomStackSize = 1024;
s8 ret_value;
s8 MyCallHandler(u16 Event, u32 Call_ID)
{
switch (Event)
{
case ADL_CALL_EVENT_RING_DATA:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_RING_DATA\n\r");
//adl_callAnswer();
break;
case ADL_CALL_EVENT_ANSWER_OK:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_ANSWER_OK\n\r");
//V24Handle = adl_fcmSubscribe ( USED_FLOW, V24CtrlHandler, V24DataHandler );
break;
case ADL_CALL_EVENT_RING_VOICE:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_RING_VOICE\n\r");
break;
case ADL_CALL_EVENT_NEW_ID:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_NEW_ID\n\r");
break;
case ADL_CALL_EVENT_RELEASE_ID:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_RELEASE_ID\n\r");
break;
case ADL_CALL_EVENT_ALERTING:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_ALERTING\n\r");
break;
case ADL_CALL_EVENT_NO_CARRIER:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_NO_CARRIER\n\r");
break;
case ADL_CALL_EVENT_NO_ANSWER:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_NO_ANSWER\n\r");
break;
case ADL_CALL_EVENT_BUSY:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_BUSY\n\r");
break;
case ADL_CALL_EVENT_SETUP_OK:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_SETUP_OK\n\r");
break;
case ADL_CALL_EVENT_HANGUP_OK:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_HANGUP_OK\n\r");
break;
case ADL_CALL_EVENT_SETUP_OK_FROM_EXT:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_SETUP_OK_FROM_EXT\n\r");
break;
case ADL_CALL_EVENT_ANSWER_OK_FROM_EXT:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_ANSWER_OK_FROM_EXT\n\r");
break;
case ADL_CALL_EVENT_HANGUP_OK_FROM_EXT:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_HANGUP_OK_FROM_EXT\n\r");
break;
case ADL_CALL_EVENT_AUDIO_OPENNED:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_AUDIO_OPENNED\n\r");
break;
case ADL_CALL_EVENT_ANSWER_OK_AUTO:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_ANSWER_OK_AUTO\n\r");
break;
case ADL_CALL_EVENT_RING_GPRS:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_RING_GPRS\n\r");
break;
case ADL_CALL_EVENT_SETUP_FROM_EXT:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_SETUP_FROM_EXT\n\r");
break;
case ADL_CALL_EVENT_SETUP_ERROR_NO_SIM:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_SETUP_ERROR_NO_SIM\n\r");
break;
case ADL_CALL_EVENT_SETUP_ERROR_PIN_NOT_READY:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_SETUP_ERROR_PIN_NOT_READY\n\r");
break;
case ADL_CALL_EVENT_SETUP_ERROR:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_SETUP_ERROR\n\r");
break;
case ADL_CALL_EVENT_CIEV:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_CIEV\n\r");
break;
case ADL_CALL_EVENT_DTR_RELEASE:
adl_atSendResponse ( ADL_AT_UNS, "ADL_CALL_EVENT_DTR_RELEASE\n\r");
break;
}
}
/***************************************************************************/
/* Function : adl_main */
/*-------------------------------------------------------------------------*/
/* Object : Customer application initialisation */
/* */
/*-------------------------------------------------------------------------*/
/* Variable Name |IN |OUT|GLB| Utilisation */
/*--------------------+---+---+---+----------------------------------------*/
/* InitType | | | | Application start mode reason */
/*--------------------+---+---+---+----------------------------------------*/
/***************************************************************************/
void adl_main ( adl_InitType_e InitType )
{
//ret_value = adl_callSetup("24346***",ADL_CALL_MODE_DATA);
ret_value = adl_callSetup("50198***",ADL_CALL_MODE_VOICE);//
if (ret_value == OK )
adl_atSendResponse ( ADL_AT_UNS, "OK, Data phone call has been succeed\32\r\n" );
else if (ret_value == ADL_RET_ERR_PARAM )
adl_atSendResponse ( ADL_AT_UNS, "Some errors while calling ADL_RET_ERR_PARAM \32\r\n" );
else
adl_atSendResponse ( ADL_AT_UNS, "ADL_RET_ERR_SERVICE_LOCKED \32\r\n" );
adl_callSubscribe(MyCallHandler);
}
Thanks in advance for help.
Tom