Re: [asterisk-users] PJSIP hangupcause how to

2017-02-02 Thread Joshua Colp
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,)}
> 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

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] PJSIP hangupcause how to

2017-02-02 Thread Saint Michael
if a PJSIP call fails, how can I capture SIP code, like 503,603 etc?
in old SIP channel, we had ${HASH(SIP_CAUSE,)}
but in PJSIP it has to be the outbound channel, which is gone when the
control returns to the calling channel.
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users