Incoming call - number does not exist

Hello. How to make it so that when an incoming call is received, the one who calls receives an answer - such a number does not exist? Thank you

Hi,

App playback.

https://wiki.asterisk.org/wiki/display/AST/Answer%2C+Playback%2C+and+Hangup+Applications

Regards,

This can result in their being charged for the failed call.

Here is what I use
please note you need to record them all

  same => n,Dial(PJSIP/${EXTEN})
  same => n,Goto(HangupCauses,${HANGUPCAUSE},1)

[HangupCauses]
 ; Description: Handles what should happen depending on the hangup cause code.

 exten => _X!,1,Progress()
  same => n,Wait(1)
  same => n,Log(NOTICE,${CallFlowID}@SIP_CAUSE=${HASH(SIP_CAUSE,${HASHKEYS(SIP_CAUSE)})})
  same => n,Playback(AST_CAUSE_UNSPECIFIED,noanswer)
  same => n,Hangup(${HANGUPCAUSE})
 exten => 0,4,Hangup(17); Playback(AST_CAUSE_UNSPECIFIED,noanswer) ;Dialplan Busy()  "${HANGUPCAUSE}"="0" Grrr it should have been 17
 exten => 1,4,Playback(AST_CAUSE_UNALLOCATED,noanswer)
 exten => 2,4,Playback(AST_CAUSE_NO_ROUTE_TRANSIT_NET,noanswer)
 exten => 3,4,Playback(AST_CAUSE_NO_ROUTE_DESTINATION,noanswer)
 exten => 5,4,Playback(AST_CAUSE_MISDIALLED_TRUNK_PREFIX,noanswer)
 exten => 6,4,Playback(AST_CAUSE_CHANNEL_UNACCEPTABLE,noanswer)
 exten => 7,4,Playback(AST_CAUSE_CALL_AWARDED_DELIVERED,noanswer)
 exten => 14,4,Playback(AST_CAUSE_NUMBER_PORTED_NOT_HERE,noanswer)
 exten => 16,1,Hangup(${HANGUPCAUSE}); (AST_CAUSE_NORMAL_CLEARING,noanswer)
 exten => 17,1,Hangup(${HANGUPCAUSE}); (AST_CAUSE_USER_BUSY,noanswer)
 exten => 18,1,Hangup(${HANGUPCAUSE}); (AST_CAUSE_NO_USER_RESPONSE,noanswer)
 exten => 19,1,Hangup(${HANGUPCAUSE}); (AST_CAUSE_NO_ANSWER,noanswer)
 exten => 20,1,Hangup(${HANGUPCAUSE}); (AST_CAUSE_SUBSCRIBER_ABSENT,noanswer)
 exten => 21,1,Hangup(${HANGUPCAUSE}); (AST_CAUSE_CALL_REJECTED,noanswer)
 exten => 22,4,Playback(AST_CAUSE_NUMBER_CHANGED,noanswer)
 exten => 23,4,Playback(AST_CAUSE_REDIRECTED_TO_NEW_DESTINATION,noanswer)
 exten => 25,4,Playback(AST_CAUSE_EXCHANGE_ROUTING_ERROR,noanswer)
 exten => 26,4,NoOP(AST_CAUSE_ANSWERED_ELSEWHERE,noanswer)
 exten => 27,4,Playback(AST_CAUSE_DESTINATION_OUT_OF_ORDER,noanswer)
 exten => 28,4,Playback(AST_CAUSE_INVALID_NUMBER_FORMAT,noanswer)
 exten => 29,4,Playback(AST_CAUSE_FACILITY_REJECTED,noanswer)
 exten => 30,4,Playback(AST_CAUSE_RESPONSE_TO_STATUS_ENQUIRY,noanswer)
 exten => 31,4,Playback(AST_CAUSE_NORMAL_UNSPECIFIED,noanswer)
 exten => 34,4,Playback(AST_CAUSE_NORMAL_CIRCUIT_CONGESTION,noanswer)
 exten => 38,4,Playback(AST_CAUSE_NETWORK_OUT_OF_ORDER,noanswer)
 exten => 41,4,Playback(AST_CAUSE_NORMAL_TEMPORARY_FAILURE,noanswer)
 exten => 42,4,Playback(AST_CAUSE_SWITCH_CONGESTION,noanswer)
 exten => 43,4,Playback(AST_CAUSE_ACCESS_INFO_DISCARDED,noanswer)
 exten => 44,4,Playback(AST_CAUSE_REQUESTED_CHAN_UNAVAIL,noanswer)
 exten => 45,4,Playback(AST_CAUSE_PRE_EMPTED,noanswer)
 exten => 50,4,Playback(AST_CAUSE_FACILITY_NOT_SUBSCRIBED,noanswer)
 exten => 52,4,Playback(AST_CAUSE_OUTGOING_CALL_BARRED,noanswer)
 exten => 54,4,Playback(AST_CAUSE_INCOMING_CALL_BARRED,noanswer)
 exten => 57,4,Playback(AST_CAUSE_BEARERCAPABILITY_NOTAUTH,noanswer)
 exten => 58,4,Playback(AST_CAUSE_BEARERCAPABILITY_NOTAVAIL,noanswer)
 exten => 63,4,Playback(AST_CAUSE_SERVICE_UNAVAILABLE,noanswer)
 exten => 65,4,Playback(AST_CAUSE_BEARERCAPABILITY_NOTIMPL,noanswer)
 exten => 66,4,Playback(AST_CAUSE_CHAN_NOT_IMPLEMENTED,noanswer)
 exten => 69,4,Playback(AST_CAUSE_FACILITY_NOT_IMPLEMENTED,noanswer)
 exten => 79,4,Playback(AST_CAUSE_SERVICE_NOT_IMPLEMENTED,noanswer)
 exten => 81,4,Playback(AST_CAUSE_INVALID_CALL_REFERENCE,noanswer)
 exten => 88,4,Playback(AST_CAUSE_INCOMPATIBLE_DESTINATION,noanswer)
 exten => 95,4,Playback(AST_CAUSE_INVALID_MSG_UNSPECIFIED,noanswer)
 exten => 96,4,Playback(AST_CAUSE_MANDATORY_IE_MISSING,noanswer)
 exten => 97,4,Playback(AST_CAUSE_MESSAGE_TYPE_NONEXIST,noanswer)
 exten => 98,4,Playback(AST_CAUSE_WRONG_MESSAGE,noanswer)
 exten => 99,4,Playback(AST_CAUSE_IE_NONEXIST,noanswer)
 exten => 100,4,Playback(AST_CAUSE_INVALID_IE_CONTENTS,noanswer)
 exten => 101,4,Playback(AST_CAUSE_WRONG_CALL_STATE,noanswer)
 exten => 102,4,Playback(AST_CAUSE_RECOVERY_ON_TIMER_EXPIRE,noanswer)
 exten => 103,4,Playback(AST_CAUSE_MANDATORY_IE_LENGTH_ERROR,noanswer)
 exten => 111,4,Playback(AST_CAUSE_PROTOCOL_ERROR,noanswer)
 exten => 127,4,GotoIf(${EXISTS(${HASH(SIP_CAUSE,${HASHKEYS(SIP_CAUSE)}):4:3})}?${HASH(SIP_CAUSE,${HASHKEYS(SIP_CAUSE)}):4:3},4) ; Try SIP Reason

 exten => _[2-6]XX,4,Playback(SIP_${EXTEN},noanswer)
 exten => _[4-6]XX,5,Hangup(63);SERVICE_UNAVAILABLE )

This assumes that the network will support early media back to the caller. I’d not expect many parts of the PSTN to support that, because of the ability to get free calls.

yes, but that is mostly non EU/US providers where the cost per min is high
and preferably you should also only do this for your own users
as calls from PSTN should receive an error code so there provide can it for where users (in their language)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.