Re: [OpenSIPStack] [ATLSIP] Ringing Sounds
Brought to you by:
joegenbaclor
From: H.Kropf <mai...@gl...> - 2008-03-25 11:15:36
|
Sorry This "quick hack" method does not work, because after void SoftPhoneSIPEndPoint::OnProgress(...) { ... m_Manager.GetSoftPhoneInterface()->StopRingBackTone(); ... } is called void SoftPhoneSIPEndPoint::OnAlert(...) { ... m_Manager.GetSoftPhoneInterface()->PlayRingBackTone(); ... } and the RingBackTone does not interrupt It can be necessary (for example) to add a boolean variable m_NoRingBack in class CallSession and to use it so: void SoftPhoneSIPEndPoint::OnProgress( CallSession & session, const SIPMessage & alerting ) { ... if( session.GetType() == CallSession::Client ) session->m_NoRingBack = true; ... } void SoftPhoneSIPEndPoint::OnAlert( CallSession & session, const SIPMessage & alerting ) { ... if(!session->m_NoRingBack) m_Manager.GetSoftPhoneInterface()->PlayRingBackTone(); session->m_NoRingBack = false; ... } Joegen E. Baclor wrote: > This may happen if your gateway sends a 180 without SDP followed by 180 > or a 183 with SDP. This can be corrected by stopping the false ring > in OnProgress() > > void SoftPhoneSIPEndPoint::OnProgress( > CallSession & session, > const SIPMessage & alerting > ) > { > OpalOSSEndPoint::OnProgress( session, alerting ); > PString info = session.GetTargetURI().AsString(); > if( session.GetType() == CallSession::Client ) > m_Manager.GetSoftPhoneInterface()->Event_OutgoingCallRinging( (const > char *)info ); > } > > Just insert m_Manager.GetSoftPhoneInterface()->StopRingBackTone(); in > this method as a quick hack. I think a cleaner way of doing this is to > not honor early media at all and retain the false ring if the call has > already received a no-media Alerting packet prior to the 183. perhaps > we can set this in the stack level. I am open to suggestions. > > What's your view Ilian? > > Joegen > > Whit Thiele wrote: > >> Hey guys, >> >> Where and when should the ringing sounds be generated? I use Asterisk so >> when a call is launched, asterisk generates the ringing sound. If I don't >> disable the PlayRingingSound methods, I get "double" rings. >> >> >> Should this be a configurable setting in the ATLSIP library? >> >> Whit >> >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? Stop. >> Now Search log events and configuration files using AJAX and a browser. >> Download your FREE copy of Splunk now >> http://get.splunk.com/ >> _______________________________________________ >> opensipstack-devel mailing list >> ope...@li... >> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel >> >> >> >> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > > |