add PI handling in alerting.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15936 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
33dce1a621
commit
a683e4e7e7
|
@ -1,3 +1,4 @@
|
||||||
|
add PI handling in alerting.
|
||||||
fix slow start handling
|
fix slow start handling
|
||||||
move faststart to callproceeding due to some broken hardware not anderstand
|
move faststart to callproceeding due to some broken hardware not anderstand
|
||||||
correclty faststart in progress.
|
correclty faststart in progress.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Version 0.0.18
|
Version 0.0.19
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "mod_h323.h"
|
#include "mod_h323.h"
|
||||||
|
@ -859,8 +859,20 @@ bool FSH323Connection::OnReceivedCapabilitySet(const H323Capabilities & remoteCa
|
||||||
bool FSH323Connection::OnAlerting(const H323SignalPDU &alertingPDU, const PString &user){
|
bool FSH323Connection::OnAlerting(const H323SignalPDU &alertingPDU, const PString &user){
|
||||||
|
|
||||||
PTRACE(4, "mod_h323\t======>PFSH323Connection::OnAlerting user = "<<(const char *)user<<" ["<<*this<<"]");
|
PTRACE(4, "mod_h323\t======>PFSH323Connection::OnAlerting user = "<<(const char *)user<<" ["<<*this<<"]");
|
||||||
|
unsigned pi;
|
||||||
switch_status_t status = switch_channel_mark_ring_ready(m_fsChannel);
|
switch_status_t status = switch_channel_mark_ring_ready(m_fsChannel);
|
||||||
PTRACE(4, "mod_h323\t----------->OnAlerting return = "<<status);
|
PTRACE(4, "mod_h323\t----------->OnAlerting return = "<<status);
|
||||||
|
|
||||||
|
if (!alertingPDU.GetQ931().GetProgressIndicator(pi))
|
||||||
|
pi = 0;
|
||||||
|
PTRACE(4, "mod_h323\t----------->OnAlerting PI = "<<pi);
|
||||||
|
if (pi > 0){
|
||||||
|
if ((m_rxChennel && m_txChennel) || (m_ChennelProgress && m_rxChennel))
|
||||||
|
switch_channel_mark_pre_answered(m_fsChannel);
|
||||||
|
else{
|
||||||
|
m_ChennelProgress = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
return ( status == SWITCH_STATUS_SUCCESS);
|
return ( status == SWITCH_STATUS_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue