Nick Olsen wrote:
Hey everyone,
Currently, I've got a PBX that is emailing me on call failures to an
international SIP provider of ours.
I'm doing this with exten => 1,1,System(mail -s "Call from
${CALLERID(num)} to ${DNID} Failed with DialStatus ${DIALSTATUS}"
n...@flhsi.com < /dev/null)
This works fine, However it's a little lacking. For Instance,
Our INTL SIP provider will bounce back SIP status messages if the call
is rejected. 503 Service unavailable. 6XX over rate limit. 6XX blocked
destination..etc. Anyone have any ideas about how I might capture that
and include it in my email. Right now they just all bounce CHANUNAVAIL
which is expected.

If you are using Asterisk 11 or above you can use the hangup causes functionality[1] to get more detail including the protocol specific reason.

Cheers,

[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 --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

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

Reply via email to