[Asterisk-Dev] ringback after PlayBack()

Eric "ManxPower" Wieling eric at fnords.org
Wed Jan 18 10:19:52 MST 2006


Once you ANSWER the line, you need /etc/asterisk/indications.conf since 
then you need to transmit inband ringing.  At least I did on my systems.

Guo-Wei Chiuan wrote:
> Eric, thanks for your hints.
> 
> I checked wiki and it says indications.conf is related to Playtones(), 
> but I did not use Playtones().
> 
> 
> By the way, I went back to check source codes. In sip_indicate():
> 
>  
> 
> switch(condition) {
> 
> case AST_CONTROL_RINGING:
> 
>     if (AST_STATE_RING)
> 
>     {
> 
>         if(!p->progress)
> 
>         {
> 
>             transmit_response("180 Ringing");
> 
>             p->ringing=1;
> 
>             break;   
> 
>         }
> 
>         else
> 
>         {
> 
>             /* Oops, we have sent progress tones. Let Asterisk do it 
> instead */
> 
>         }
> 
>     }
> 
>     return -1;
> 
> ::::::
> 
> }//end of switch()
> 
>  
> 
> Hm...It looks like Asterisk would NOT send "180 Ringing" if "183 Session 
> Progress" has been sent. So, after Playback("forward, please 
> wait...",noanswer) which causes 183 to be sent, "180 Ringing" would not 
> be sent while Asterisk tries to indicate RINGING. As a result, caller 
> can not hear ringback tone any more. I guess that is the reason...
> 
>  
> 
> But, does anybody know why we do NOT send "180 Ringing" after "183 
> Session Progress"(w/ SDP)? I checked RFC3261 and it seems not to mention 
> "183" a lot. And, what does it mean by "Let Asterisk do it instead" if 
> p->progrss=1? What shall Asterisk do while p->progress=1(183 has been 
> sent)?
> 
>  
> 
>  
> 
> thanks a lot
> 
> Chuan
>  
> 
> On 1/18/06, *Eric ManxPower Wieling* <eric at fnords.org 
> <mailto:eric at fnords.org>> wrote:
> 
>     If you don't hear ringing by default putting "r" on Dial, or calling the
>     Ringing app (or playtones app) usually doesn't help.  I suspect you are
>     lacking /etc/asterisk/indications.conf
> 
>     _______________________________________________
>     --Bandwidth and Colocation provided by Easynews.com
>     <http://Easynews.com> --
> 
>     Asterisk-Dev mailing list
>     To UNSUBSCRIBE or update options visit:
>       http://lists.digium.com/mailman/listinfo/asterisk-dev
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> Asterisk-Dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev




More information about the asterisk-dev mailing list