MOR forward Q.850 Reason header

From Kolmisoft Wiki
Jump to navigationJump to search

About

By default, MOR does not generate and/or forward Q.850 Reason header

How to enable

Add the following line in /etc/asterisk/sip.conf:

use_q850_reason=yes

Execute command (this does NOT interrupt calls):

asterisk -rx 'sip reload keeprt'

Important

With this setting enabled:

  • If the Provider does not send Q.850 reason header, Asterisk (MOR) will add this header using internal Asterisk ISDN <--> SIP mapping.
  • If the Provider sends Q.850 reason header for a failed call, then:
    • MOR hangup cause code in Last Calls will reflect Q.850 code. For example, by default, Asterisk maps SIP 503 to ISDN code 34, so if the Provider rejected the call with SIP 503, Last Call will show HGC 34. However, with this option enabled, if the Provider rejects the call with SIP 503, and adds, for example, Reason:Q.850;cause=27, MOR will show hangupcause 27 in Last Calls, not 34.
    • If the Provider adds text in the Reason header, for example, 'Reason: Q.850;cause=21;text="Call rejected"', Asterisk (MOR) will forward to the originating device Reason header without text part, like this 'Reason: Q.850;cause=21'. Text part will be forwarded in a separate header X-Asterisk-HangupCause, in this example 'X-Asterisk-HangupCause: Call Rejected'.

See Also