[asterisk-users] Is there a variable for SIP response codes?

Eric Bishop asterisk.eric at gmail.com
Sun Apr 8 08:45:58 MST 2007


Once the call is hung up it is too late. I need to interpret the SIP
response codes prior to hangup so I can play an appropriate recorded voice
announcement.


On 4/9/07, Eric ManxPower Wieling <eric at fnords.org> wrote:
>
> Eric Bishop wrote:
> > Hi all,
> >
> > I want to implement certain actions based on SIP response codes. Is
> there a
> > similar variable such as ${DIALSTATUS} that comes back with the relevant
> > SIP
> > response code for a call?
>
> I believe there is SIPGetHeader, but Asterisk tries to translate
> whatever code it gets from the specific technology (PRI, SIP, IAS2,
> MGCP, SCCP, H323, etc) into an Asterisk HANGUPCAUSE which is mostly
> Q.931 codes.  HANGUPCAUSE will not tell you the SIP response code, but
> it will tell you much more than DIALSTATUS will.
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070408/0eab3a9f/attachment.htm


More information about the asterisk-users mailing list