On Thu, Feb 2, 2017, at 08:11 AM, Saint Michael wrote:> if a PJSIP call fails, how can I capture SIP code, like 503,603 etc?
> in old SIP channel, we had ${HASH(SIP_CAUSE,<channel-name>)}
> but in PJSIP it has to be the outbound channel, which is gone when the
> control returns to the calling channel.
This functionality was replaced quite some time ago with HANGUPCAUSE[1].
[1] https://wiki.asterisk.org/wiki/display/AST/Hangup+Cause
--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org