[Asterisk-video] Wrong disconnect response

Reza Fatahillah ezhot_95 at yahoo.com
Fri Nov 16 03:55:03 CST 2007


--- Sergio Garcia Murillo
<sergio.garcia at fontventa.com> wrote:

> Hi Reza,
> 
> According to the code in chan_sip the 603 response
> is correct:
> 
>                 case 603:       /* Decline */
>                         return
> AST_CAUSE_CALL_REJECTED;
>                 case 486:       /* Busy everywhere
> */
>                         return AST_CAUSE_BUSY;
> 
> So the 603 is the correct code to be sent when a
> call is rejected.

Is there any way to differentiate the cause of call
hangup?
Is it because of rejected or busy or any other reason?
Not only 603 response message.
the mapping to SIP message is inside sip_hangup(struct
ast_channel *ast) function.
I think around these lines:
} else {        /* Incoming call, not up */
  const char *res;
  if (ast->hangupcause && (res =
hangup_cause2sip(ast->hangupcause)))
    transmit_response_reliable(p, res, &p->initreq);
  else
    transmit_response_reliable(p, "603 Declined",
&p->initreq);
                        }
Since the hangupcause always 0 it will always go to
603 Declined part.

Regards,
Reza


      ____________________________________________________________________________________
Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. See how.  http://overview.mail.yahoo.com/



More information about the asterisk-video mailing list