[asterisk-users] Strange behaviour with Dial cmd

Eric "ManxPower" Wieling eric at fnords.org
Sun Feb 18 15:09:16 MST 2007


Check the value of DIALSTATUS then decide of you want to dial the 2nd 
number.  See [macro-std-exten] in extensions.conf for an example of 
checking the value of DIALSTATUS.

The only time you might want two Dial lines in a row is if you always, 
not matter what, want to dial the 2nd number.

Il Neofita wrote:
> Yes, but I would like to try a number and after to try a second one.
> Any Idea how to avoid this.
> 
> On 2/18/07, *Eric ManxPower Wieling* < eric at fnords.org 
> <mailto:eric at fnords.org>> wrote:
> 
>     C F wrote:
>      > Asterisk supports this directly by issuing the hangup command before
>      > the answer command.  However, when using an analog interface like FXO
>      > the line has no way of knowing you just hung up and will continue to
>      > ring, which asterisk will see as a new call. in my experience even
>      > when using a PRI if i dont give the pri cause the provider re
>      > initiates the call.
> 
>     This would only happen if you blindly run two Dial lines in sequence in
>     your dialplan.  Don't do this.



More information about the asterisk-users mailing list