[Asterisk-Users] GotoIf sample...

Bruno De Luca bdeluca at fgasoftware.com
Tue Sep 6 08:21:48 MST 2005


my example:

[i_day]
exten => _X.,1,Answer
exten => _X.,2,NoOp(${DNID})
; FIMLA_TEL
exten => _X.,3,GotoIf($[${DNID} = ${TEL_FIMLA_1}]?4:8) ; Se tel_fimla_1 => call FIMLA
exten => _X.,4,Dial(${FIMLA},${RING_4X_TIME})
exten => _X.,5,GotoIf($[${DIALSTATUS} = NOANSWER]?6:15)
exten => _X.,6,SetCIDName(FIMLA)
exten => _X.,7,Dial(${SOCON},${RING_TIME})
; FIMLA_FAX
;exten => _X.,7,GotoIf($[${DNID} = ${TEL_FIMLA_2}]?8:9) ; Se tel_fimla_2 => call FAX_FIMLA
;exten => _X.,8,Dial(${FAX_FIMLA},${RING_TIME})
; SOCON_TEL
exten => _X.,8,GotoIf($[${DNID} = ${TEL_SOCON_1}] ? 11:9)
exten => _X.,9,GotoIf($[${DNID} = ${TEL_SOCON_2}] ? 11:10)
exten => _X.,10,GotoIf($[${DNID} = ${TEL_SOCON_3}] ? 11:15)
exten => _X.,11,Dial(${SOCON},${RING_4X_TIME})
exten => _X.,12,GotoIf($[${DIALSTATUS} = NOANSWER]?13:15)
exten => _X.,13,SetCIDName(SOCON)
exten => _X.,14,Dial(${FIMLA},${RING_TIME})
; FIMLA_FAX
; TODO: IMPLEMENTARE.
exten => _X.,15,Hangup
exten => t,1,Hangup


Terry Wilson wrote:

> On 9/5/05, *ryan nalupa* <ryanalupa at yahoo.com.ph 
> <mailto:ryanalupa at yahoo.com.ph>> wrote:
>
>     hi everyone. can anyone provide me concrete examples on how to use
>     the GotoIf application? can't figure out how to use it in my
>     dialplan coz im having errors....thanks! : )
>
>
>  
>
> http://www.voip-info.org/tiki-index.php?page=Asterisk%20cmd%20GotoIf
>
>------------------------------------------------------------------------
>
>_______________________________________________
>--Bandwidth and Colocation sponsored by Easynews.com --
>
>Asterisk-Users mailing list
>Asterisk-Users at lists.digium.com
>http://lists.digium.com/mailman/listinfo/asterisk-users
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>


-- 
____________________________________________________________________

 BRUNO DE LUCA
 Tel. +39 02 9350 4780 (102)
 
 FG&A Software
 20017 Rho - Via Puccini, 8

 E-Mail :
bdeluca at fgasoftware.com
 Internet:
http://www.fgasoftware.com

====================================================================
CONFIDENTIALITY NOTICE
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Thank you
====================================================================

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050906/11585a33/attachment.htm


More information about the asterisk-users mailing list