Yes, its an Inbound call. And following is the simple example which am using for my inbound calls,
exten => _X.,1,Answer()
exten => _X.,n,Set(QUEUE_NAME=TESTQUEUE)
exten => _X.,n,Set(START_TIME=${STRFTIME(${EPOCH},,%Y-%m-%d_%H-%M-%S)})
exten => _X.,n,Set(MONITOR_FILENAME=TESTQUEUE/IN/${STRFTIME(${EPOCH},,%Y-%m)}/${STRFTIME(${EPOCH},,%d)}/${CALLERID(number)}-${START_TIME}-${EXTEN}-IN)
exten => _X.,n,Queue(TESTQUEUE,t,,,30000,queue_log.agi,macro(beep))
exten => _X.,n,NoOp(${QUEUESTATUS})
exten => _X.,n,GotoIf($["${QUEUESTATUS}" = "TIMEOUT"]?lbl_project_0:)
exten => _X.,n,GotoIf($["${QUEUESTATUS}" = "FULL"]?lbl_project_0:)
exten => _X.,n,GotoIf($["${QUEUESTATUS}" = "JOINEMPTY"]?lbl_project_0:)
exten => _X.,n,GotoIf($["${QUEUESTATUS}" = "LEAVEEMPTY"]?lbl_project_0:)
exten => _X.,n,GotoIf($["${QUEUESTATUS}" = "JOINUNAVAIL"]?lbl_project_0:)
exten => _X.,n,GotoIf($["${QUEUESTATUS}" = "LEAVEUNAVAIL"]?lbl_project_0:)
exten => _X.,n(lbl_project_0),Hangup()
Thanks.