[Asterisk-Users] If Then Else Statements - Outbound Dialling on ISDN using CAPI -Individual Dial out Plans using msns

Steven Critchfield critch at basesys.com
Mon May 3 11:26:28 MST 2004


On Tue, 2004-05-04 at 06:46, Nick Grindley wrote:
> Hi All,
> 
> Many thanks to Marc who helped me with a previous Capi Dialout plan -
> however.....
> 
> What I now would like to be able to do is: -
> 
> We have 8 msn's 383590, 383591 383592 etc.
> 
> What I would like to do is set up an If Then Else type statement along the
> following lines: -
> 
> If extension 7957 Then
> Dialout on Capi msn 383590
> ElseIf extension 7958 Then
> Dialout on Capi msn 383591
> ElseIf extension 7959 Then
> Dialout on Capi msn 383592
> Etc Etc

Sounds like you are basically trying to set outbound callerid. Don't
think of this as by extension, the extension number is an arbitrary
number you placed on the physical port. Think of it as ports, or as a
property of the line.

You could do a lookup in a dbput/dbget manner to store the MSN. You
could set each port to start in it's own context that defines the MSN.
OR there is probably a few other easy to define ways also. 

-- 
Steven Critchfield  <critch at basesys.com>




More information about the asterisk-users mailing list