[asterisk-users] Re: Call waiting tone

Yehavi Bourvine +972-8-9489444 YEHAVI at VMS.HUJI.AC.IL
Tue May 8 21:33:00 MST 2007


Hello,

  A few days ago I've asked about the ability to play a stuttered "ringing"
tone when the called party is already on the phone. I've found a partial
solution for it.

  To describe again the problem: When a user is on a call and someone else
calls him, the caller does not know that the called party is on the phone
(while the called party wants to know that someone else is calling him/her and
not just play busy). On our public PSTN the caller is notified by a stuttered
ringing tone (thus he can decide whether to wait or hangup and call later).

What's I've done is that when the called party is on the phone a short message
is sent to the caller (may be also a recording of the stuttered ringing) and
then the call is passed. Here is the code fragment:

exten => _806XX,n,Set(Status=${DEVSTATE(SIP/${EXTEN})}) ; Get his status
exten => _806XX,n,GotoIf($["${Status}" == "NOT_INUSE"]?OK:WAITING_CALL)
exten => _806XX,n(WAITING_CALL),Playback(waiting-call)
exten => _806XX,n(OK),Dial(SIP/${EXTEN}${aEXTEN},20,)   ; Dial the phone for 20

Hope it helps someone...

                             Regards, __Yehavi:


More information about the asterisk-users mailing list