resending cause codes

Home » Asterisk Users » resending cause codes
Asterisk Users No Comments

hello,

i’m testing sending ISDN cause codes to customer pbx (test scenario for
unallocated number)

topology:
PSTN-E1-AsteriskA-AsteriskB-SOMEPBX

INVITE from SOMEPBX to PSTN

AsteriskA sends to AsteriskB
Status-Line: SIP/2.0 503 Service Unavailable
X-Asterisk-HangupCause: Unallocated (unassigned) number
X-Asterisk-HangupCauseCode: 1

how can i resend HangupCauseCode from AsteriskB to SOMEPBX?

i’m tried this on AsteriskB
exten => _X.,1,Dial(SIP/AsteriskA,${EXTEN})
exten => _X.,n,Hangup(${SIP_HEADER(X-Asterisk-HangupCauseCode)})

thanks