1 msgOT: But telephony related and funny
3 msgtrouble recording calls
4 msgRe: asterisk-users Digest, Vol 33, Issue 33
6 msgPolycom 330/320
2 msgReceived mini frame before first full voice frame
5 msgPrivacy Manager w/ No Recording
3 msgDTMF auto detection bug?
1 msgRe: asterisk-users Digest, Vol 33, Issue 32
7 msgincoming zaptel calls fail
9 msgUpgrade 4 to 8 Analog Lines Question
8 msgAsterisk installation issue - CLI showing 0 act...
13 msgsip_header=value?
3 msgintermittent choppy sound over wifi link
1 msgRe: asterisk-users Digest, Vol 33, Issue 31

Is there a variable for SIP response codes?
\ Eric Bishop (8 Apr 2007)
. \ Eric \ManxPower\ Wieling (8 Apr 2007)
. . \ Eric Bishop (8 Apr 2007)
. . . \ Eric \ManxPower\ Wieling (8 Apr 2007)

2 msgManager Originate and Var to long
3 msgAdding Noise or background noise
1 msgRe: asterisk-users Digest, Vol 33, Issue 30
1 msgLinux IAX client to zaptel voice quality issue
1 msgWhat is wink, prewink, start and preflash time
Subject:Re: Is there a variable for SIP response codes?
Group:Asterisk-users
From:Eric \ManxPower\ Wieling
Date:8 Apr 2007


 
I am assuming this:

Call comes in, the Dial happens and for whatever reason the destination
cannot be reached. You then want to play a message to the caller.

Just put the "g" option on the end of Dial and then check the
HANGUPCAUSE. The destination has already hungup, but the caller has not.

The extensions.conf.sample has something similar in the (I think)
[macro-stdexten]

Eric Bishop wrote:
> 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> 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


© 2004-2008 readlist.com