Bom dia<br><br>Criei uma regra de siga-me no meu asterisk com ativação e desativação pelos codigos *3 e #3.<br><br> _*3XXX => {<br> Set(DB(CFIM/${CALLERID(num)}=${EXTEN:2}));<br> PlayBack(sigameativa);<br>
Hangup();<br> }<br><br> _#3XXX => {<br> DBdel(CFIM/${CALLERID(num)}=${EXTEN:2});<br> PlayBack(sigamedesativa);<br> Hangup();<br> }<br><br>
<br>}<br><br>Quando ativo o siga-me do ramal 219 para o ramal 285 e ligo do ramal 207 para o 219, só da ocupado e no console do asterisk eu recebo os seguintes dados.<br><br> -- Executing [219@classe1:1] Macro("SIP/285-28038120", "recording|285") in new stack<br>
-- Executing [s@macro-recording:1] Set("SIP/285-28038120", "src=285") in new stack<br> -- Executing [s@macro-recording:2] GotoIf("SIP/285-28038120", "1?3:4") in new stack<br>
-- Goto (macro-recording,s,3)<br> -- Executing [s@macro-recording:3] MixMonitor("SIP/285-28038120", "OUT285-20090812-1250080969.88.wav|b|W(3)") in new stack<br> == Begin MixMonitor Recording SIP/285-28038120<br>
-- Executing [s@macro-recording:4] NoOp("SIP/285-28038120", "Finish if-recording-7") in new stack<br> -- Executing [219@classe1:2] Dial("SIP/285-28038120", "SIP/219|60|tTwWo") in new stack<br>
-- Called 219<br> -- Got SIP response 302 "Moved Temporarily" back from 172.25.0.40<br> -- Now forwarding SIP/285-28038120 to 'Local/85@classe1' (thanks to SIP/219-0272e9a0)<br>[Aug 12 09:42:49] NOTICE[15306]: chan_local.c:504 local_call: No such extension/context 85@classe1 while calling Local channel<br>
[Aug 12 09:42:49] NOTICE[15306]: app_dial.c:564 wait_for_answer: Failed to dial on local channel for call forward to '85@classe1'<br> == Everyone is busy/congested at this time (1:0/0/1)<br> -- Executing [219@classe1:3] Hangup("SIP/285-28038120", "") in new stack<br>
== Spawn extension (classe1, 219, 3) exited non-zero on 'SIP/285-28038120'<br> == Executing [W(3)]<br> == End MixMonitor Recording SIP/285-28038120<br><br>E se eu tento retirar o siga-me também não consigo o ramal 219 só da ocupado<br>
Bom galera se alguém tiver uma ideia..<br><br>desde já grato<br><br>