Sorry for the late response.
Philipp,
I've checked the file below and also the suggested voip-info link. None of 
those describe how or why Asterisk assumed that 402 should be mapped to "NORMAL 
TERMINATION" status. Both places refer to how Asterisk status should be mapped 
to SIP cause and not vice-versa. Could you (or someone) please take another 
look to locate the correct file?
Thanks
Harel

------------------------------

Message: 4
Date: Wed, 04 Aug 2010 15:20:05 +0200
From: Philipp von Klitzing <[email protected]>
Subject: Re: [asterisk-users] mapping of disconnect reasons
To: Asterisk Users Mailing List - Non-Commercial Discussion
        <[email protected]>
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset=US-ASCII

> The mapping in Asterisk 1.4.24 is the problem: 402 "Payment Required"
> is mapped to 16 "Normal termination" instead of 21 "Call Rejected".
> Could you direct me to the relevant file of code where these mappings 
> are done? Before reporting a bug I would like to confirm whether this 
> issue has been addressed on newer releases.

Look in channels/chan_sip.c and search for "3398"

See also:
http://www.voip-
info.org/wiki/index.php?page=Asterisk+variable+hangupcause

Philipp




------------------------------


-- 
_____________________________________________________________________
-- 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