[asterisk-users] Inform callers on recorded/monitored number.

Anselm Martin Hoffmeister anselm at hoffmeister-online.de
Tue Dec 19 02:30:03 MST 2006


Am Dienstag, den 19.12.2006, 01:13 -0800 schrieb Angel Heart:
> Hi Paul & Eric,
>  
> Thank you for you information and quick response. I had enabled
> Monitoring in every SIP phone already. Made some Playback see below
> truncated config;
>  
> exten => s,21,Dial(${pre_num:4}${the_num}${post_num},120,
> ${TRUNK_OPTIONS})
> exten => s,22,Goto(s-${DIALSTATUS},1)
> exten => s,108,Noop(max channels used up)
> exten => s-BUSY,1,NoOp(Trunk is reporting BUSY)
> exten => s-BUSY,2,Busy()
> exten => s-BUSY,3,Wait(60)
> exten => s-BUSY,4,NoOp()
> ;Below was an added codes for the purpose of advising caller status of
> their call.
> exten => s-NOANSWER,1,Playback(user)
> exten => s-NOANSWER,n,Playback(is-curntly-unavail)
> exten => s-NOANSWER,n,Hangup()
>  
> exten => s-ANSWER,1,Background(for-quality-purposes)
> exten => s-ANSWER,n,Background(this-call-may-be)
> exten => s-ANSWER,n,Background(recorded)
>      
> exten => s-CHANUNAVAIL,1,Playback(is-curntly-unavail)
> exten => s-CHANUNAVAIL,n,Hangup()
>      
> exten => s-CONGESTION,1,PlayTones(congestion)
> exten => s-CONGESTION,n,Wait(5)
> exten => s-CONGESTION,n,StopPlayTones()
> exten => s-CONGESTION,n,Hangup()
>  
> All the value of  DIALSTATUS are working except if its ANSWER, it not
> working neither the caller or callee doen't hear anything. I might
> inserted the message at the wrong .conf file. I just thought that
> somebody out there had tried doing these before.

I think the DIALSTATUS will be available only after the DIAL command
ends, which means the call either aborted (BUSY...) or one of the two
users hung up (and even then, you would have to set special flag to Dial
to continue in the dialplan instead of end connection).

You might want to test the A() or M() parameters to the dial command,
as mentioned in http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial

Sorry I cannot offer dialplan excerpts. Perhaps you can write something
like on the wiki page mentioned. Possibly you would have to use A() for
outgoing calls and M() for incoming, or the other way around - I am not
sure wether those macros run on the bridged call (both sides listen to
the announcement) or to one side only.


Best regards
Anselm



More information about the asterisk-users mailing list