<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
heheh esqueci do português<br>
<br>
obrigado, mas não saberia como fazer isso, tem como me informar.<br>
<br>
<br>
Edson Gellert Schubert escreveu:
<blockquote cite="mid444f777b.1adfcd3e.20bc.1908@mx.gmail.com"
type="cite">
<pre wrap="">Fábio,
Que tal vc incluir este 'dialplan' no wiki? Mas, por favor, é 'cadeado' e
não 'cadiado'... ;)
Edson
</pre>
<blockquote type="cite">
<pre wrap="">-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org">asteriskbrasil-bounces@listas.asteriskbrasil.org</a>
[<a class="moz-txt-link-freetext" href="mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org">mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org</a>] On Behalf Of
fabio
Sent: terça-feira, 25 de abril de 2006 08:38
To: <a class="moz-txt-link-abbreviated" href="mailto:asteriskbrasil@listas.asteriskbrasil.org">asteriskbrasil@listas.asteriskbrasil.org</a>
Subject: [AsteriskBrasil] siga me. e cadeado ramal.
Bom dia.
Fiz uma programação em meu asterisk para siga-me e cadiado no ramal.
espero que ajude
[sigame]
;sigame do meu ramal
exten => _*21*.,1,NoCDR()
exten => _*21*.,2,DBput(CFIM/${CALLERIDNUM}=${EXTEN:4})
exten => _*21*.,3,Hangup
;retira
exten => *22*,1,NoCDR()
exten => *22*,2,DBdel(CFIM/${CALLERIDNUM})
exten => *22*,3,Hangup
;sigame se ocupado do meu ramal
exten => _*23*.,1,NoCDR()
exten => _*23*.,2,DBput(CFBS/${CALLERIDNUM}=${EXTEN:4})
exten => _*23*.,3,Hangup
;retira
exten => *24*,1,NoCDR()
exten => *24*,2,DBdel(CFBS/${CALLERIDNUM})
exten => *24*,3,Hangup
;sigame do ramal onde estou
exten => _*25*.,1,NoCDR()
exten => _*25*.,2,DBput(CFIM/${EXTEN:4}=${CALLERIDNUM})
exten => _*25*.,3,Hangup
;retira
exten => _*26*,1,NoCDR()
exten => _*26*,2,DBdel(CFIM/${EXTEN:4})
exten => _*26*,3,Hangup
;sigame do ramal onde estou
exten => _*26*.,1,NoCDR()
exten => _*26*.,2,DBput(CFBS/${EXTEN:4}=${CALLERIDNUM})
exten => _*26*.,3,Hangup
;retira sigame do ramal onde estou
exten => _*27*,1,NoCDR()
exten => _*27*,2,DBdel(CFBS/${EXTEN:4})
exten => _*27*,3,Hangup
[cadiado]
;cadastrar senha cadiado
exten => _*97*xxxx,1,NoCDR()
exten => _*97*xxxx,2,DBget(senha=CADIPASS/${CALLERIDNUM})
exten => _*97*xxxx,3,GoToIf($["${senha}" = ""]?5:4)
exten => _*97*xxxx,4,Hangup
exten => _*97*xxxx,5,DBput(CADIPASS/${CALLERIDNUM}=${EXTEN:4})
exten => _*97*xxxx,6,Wait(2)
exten => _*97*xxxx,7,Playback(beep)
exten => _*97*xxxx,8,Playback(beep)
exten => _*97*xxxx,9,Playback(beep)
exten => _*97*xxxx,10,Hangup
;trocar senha cadiado
exten => _*96*xxxxxxxx,1,NoCDR()
exten => _*96*xxxxxxxx,2,DBget(cadp=CADIPASS/${CALLERIDNUM})
exten => _*96*xxxxxxxx,3,GoToIf($["${cadp}" = "${EXTEN:4:4}"]?4:9)
exten => _*96*xxxxxxxx,4,DBput(CADIPASS/${CALLERIDNUM}=${EXTEN:8})
exten => _*96*xxxxxxxx,5,Wait(2)
exten => _*96*xxxxxxxx,6,Playback(beep)
exten => _*96*xxxxxxxx,7,Playback(beep)
exten => _*96*xxxxxxxx,8,Playback(beep)
exten => _*96*xxxxxxxx,9,Hangup
exten => _*96*xxxxxxxx,10,Hangup
;colocar cadiado
exten => _*98*xxxx,1,NoCDR()
exten => _*98*xxxx,2,DBget(cadp=CADIPASS/${CALLERIDNUM})
exten => _*98*xxxx,3,GoToIf($["${cadp}" = "${EXTEN:4}"]?4:9)
exten => _*98*xxxx,4,DBput(CADIADO/${CALLERIDNUM}=y)
exten => _*98*xxxx,5,Wait(2)
exten => _*98*xxxx,6,Playback(beep)
exten => _*98*xxxx,7,Playback(beep)
exten => _*98*xxxx,8,Playback(beep)
exten => _*98*xxxx,9,Hangup
exten => _*98*xxxx,10,Hangup
;retirar cadiado
exten => _*99*xxxx,1,NoCDR()
exten => _*99*xxxx,2,DBget(cad=CADIPASS/${CALLERIDNUM})
exten => _*99*xxxx,3,GoToIf($["${cad}" = "${EXTEN:4}"]?4:10)
exten => _*99*xxxx,4,DBdel(CADIADO/${CALLERIDNUM})
exten => _*99*xxxx,5,Wait(2)
exten => _*99*xxxx,6,Playback(beep)
exten => _*99*xxxx,7,Playback(beep)
exten => _*99*xxxx,8,Playback(beep)
exten => _*99*xxxx,9,Hangup
exten => _*99*xxxx,10,Hangup
;extensao de ligação que verificar se o ramal tem cadiado
exten => _xxxxxxxx,1,DBget(cad=CADIADO/${CALLERIDNUM})
exten => _xxxxxxxx,2,GoToIf($["${cad}" = "y"]?4:3)
exten => _xxxxxxxx,3,dial(Unicall/g2/${EXTEN:2},50,tT)
exten => _xxxxxxxx,4,Hangup()
;extensão de ramal que verifica se o ramal tem siga-m
exten => _9xxx,1,SetAccount(${CALLERIDNUM})
exten => _9xxx,2,DBget(siga=CFIM/${EXTEN})
exten => _9xxx,3,GoToIf($["${siga}" = ""]?5:4)
exten =>
_9xxx,4,Macro(gravarligacaoramal,${siga},${CALLERIDNUM},${DATETIME})
exten =>
_9xxx,5,Macro(gravarligacaoramal,${EXTEN},${CALLERIDNUM},${DATETIME})
exten => _9xxx,6,GotoIf($["${DIALSTATUS}" = "BUSY"]?8:14)
exten => _9xxx,8,DBget(sigao=CFBS/${EXTEN})
exten => _9xxx,9,GoToIf($["${sigao}" = ""]?12:10)
exten =>
_9xxx,10,Macro(gravarligacaoramal,${sigao},${CALLERIDNUM},${DATETIME})
exten => _9xxx,12,GoToIf($["${BLINDTRANSFER}" = ""]?14:16)
exten => _9xxx,14,BUSY()
exten => _9xxx,16,Wait(5)
exten => _9xxx,17,Dial(${BLINDTRANSFER:0:8},45,Ttr)
_______________________________________________
LIsta de discussões AsteriskBrasil.org
<a class="moz-txt-link-abbreviated" href="mailto:AsteriskBrasil@listas.asteriskbrasil.org">AsteriskBrasil@listas.asteriskbrasil.org</a>
<a class="moz-txt-link-freetext" href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil">http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</a>
_______________________________________________
Acesse o wiki AsteriskBrasil.org:
<a class="moz-txt-link-freetext" href="http://www.asteriskbrasil.org">http://www.asteriskbrasil.org</a>
</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
LIsta de discussões AsteriskBrasil.org
<a class="moz-txt-link-abbreviated" href="mailto:AsteriskBrasil@listas.asteriskbrasil.org">AsteriskBrasil@listas.asteriskbrasil.org</a>
<a class="moz-txt-link-freetext" href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil">http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</a>
_______________________________________________
Acesse o wiki AsteriskBrasil.org:
<a class="moz-txt-link-freetext" href="http://www.asteriskbrasil.org">http://www.asteriskbrasil.org</a>
</pre>
</blockquote>
<br>
</body>
</html>