[asterisk-users] PJSIP hangupcause how to

Joshua Colp jcolp at digium.com
Thu Feb 2 06:22:40 CST 2017


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



More information about the asterisk-users mailing list