[asterisk-users] m switch in dialplan

Ian asterisk at iancoetzee.za.net
Wed Apr 9 05:30:19 CDT 2008


Hi all

I have a minor inconvenience here.

I want to use the "m" switch in the "dial" command on our outgoing lines 
to play music to the caller whilst asterisk and our telecoms provider 
connects the call. It works, as long as the called person is available. 
When the called  phone (my mobile in this case) is off and it redirects 
to voicemail, asterisk does not detect that the call is answered and 
continues to play the music.

The reason I want to use the switch is that sometimes there is a silence 
period that has been known to last up to 1 minute, before the called 
party's phone begins to ring, and I want to fill that gap with something 
else, I tried the "r" switch as well but for some reason the Grandstream 
I tested on did not like the "r" switch, my x-lite did however indicate 
ringing.

If any of you can direct me to the right site I would be realy greatfull.

If you need any more info, I will be only to happy to provide it, the 
piece of my dialplan is below.

Thanks in advance

Regards
Ian

>
> exten => 9876,1,Progress()
> exten => 9876,n,dial(ZAP/1/0720311294,,m(default))
> exten => 9876,n,Hangup(
>




More information about the asterisk-users mailing list