[asterisk-users] resending cause codes

marek cervenka
Mon, 29 Nov 2010 10:23:06 -0000

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

--
---------------------------------------
Marek Cervenka
=======================================