<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi people,<br>I have the following dialplan, but it doesn't have the behavior that I think it should have.<br><br>[default]<br>exten => 2001,1,Answer<br>exten => 2001,n,Dial(local/3005)<br>exten => 2001,n,Hangup<br>exten => 3005,1,Set(__RINGTIMER=10)<br>exten => 3005,n,Macro(exten-vm,novm,3005)<br>exten => 3005,n,Hangup<br><br>When I execute the Originate (AMI) with the argument Channel=local/2001, It rings the local/3005 but 2 calls are generated...<br>Why? <br>Or how should the dialplan be to generate only one call on the local/3005?<br><br>Thanks,<br><br><br><br>The log is:<br><br> -- Executing [2001@default:1] Answer("Local/2001@default-b60f,2", "") in new stack<br> == Manager 'asteriskWS' logged off from ...<br> -- Executing [2001@default:2] Dial("Local/2001@default-b60f,2", "local/3005") in new stack<br> -- Called 3005<br> -- Executing [2001@default:1] Answer("Local/2001@default-b60f,1", "") in new stack<br> -- Executing [2001@default:2] Dial("Local/2001@default-b60f,1", "local/3005") in new stack<br> -- Called 3005<br> -- Executing [3005@default:1] Set("Local/3005@default-6cc4,2", "__RINGTIMER=10") in new stack<br> -- Executing [3005@default:2] Macro("Local/3005@default-6cc4,2", "exten-vm|novm|3005") in new stack<br> -- Executing [s@macro-exten-vm:1] Macro("Local/3005@default-6cc4,2", "user-callerid") in new stack<br> -- Executing [s@macro-user-callerid:1] NoOp("Local/3005@default-6cc4,2", "user-callerid: ") in new stack<br> -- Executing [s@macro-user-callerid:2] Set("Local/3005@default-6cc4,2", "AMPUSER=") in new stack<br> -- Executing [s@macro-user-callerid:3] GotoIf("Local/3005@default-6cc4,2", "1?report") in new stack<br> -- Goto (macro-user-callerid,s,13)<br> -- Executing [s@macro-user-callerid:13] NoOp("Local/3005@default-6cc4,2", "TTL: ARG1: novm") in new stack<br> -- Executing [s@macro-user-callerid:14] GotoIf("Local/3005@default-6cc4,2", "0?continue") in new stack<br> -- Executing [s@macro-user-callerid:15] Set("Local/3005@default-6cc4,2", "__TTL=64") in new stack<br> -- Executing [s@macro-user-callerid:16] GotoIf("Local/3005@default-6cc4,2", "1?continue") in new stack<br> -- Goto (macro-user-callerid,s,23)<br> -- Executing [s@macro-user-callerid:23] NoOp("Local/3005@default-6cc4,2", "Using CallerID "" <>") in new stack<br> -- Executing [s@macro-exten-vm:2] Set("Local/3005@default-6cc4,2", "RingGroupMethod=none") in new stack<br> -- Executing [s@macro-exten-vm:3] Set("Local/3005@default-6cc4,2", "VMBOX=novm") in new stack<br> -- Executing [s@macro-exten-vm:4] Set("Local/3005@default-6cc4,2", "EXTTOCALL=3005") in new stack<br> -- Executing [s@macro-exten-vm:5] Set("Local/3005@default-6cc4,2", "CFUEXT=") in new stack<br> -- Executing [s@macro-exten-vm:6] Set("Local/3005@default-6cc4,2", "CFBEXT=") in new stack<br> -- Executing [s@macro-exten-vm:7] Set("Local/3005@default-6cc4,2", "RT=""") in new stack<br> -- Executing [s@macro-exten-vm:8] Macro("Local/3005@default-6cc4,2", "record-enable|3005|IN") in new stack<br> -- Executing [s@macro-record-enable:1] GotoIf("Local/3005@default-6cc4,2", "0?2:4") in new stack<br> -- Goto (macro-record-enable,s,4)<br> -- Executing [s@macro-record-enable:4] AGI("Local/3005@default-6cc4,2", "recordingcheck|20091008-093826|1255009106.184") in new stack<br> -- Executing [3005@default:1] Set("Local/3005@default-e393,2", "__RINGTIMER=10") in new stack<br> -- Executing [3005@default:2] Macro("Local/3005@default-e393,2", "exten-vm|novm|3005") in new stack<br> -- Executing [s@macro-exten-vm:1] Macro("Local/3005@default-e393,2", "user-callerid") in new stack<br> -- Executing [s@macro-user-callerid:1] NoOp("Local/3005@default-e393,2", "user-callerid: ") in new stack<br> -- Executing [s@macro-user-callerid:2] Set("Local/3005@default-e393,2", "AMPUSER=") in new stack<br> -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck<br> -- Executing [s@macro-user-callerid:3] GotoIf("Local/3005@default-e393,2", "1?report") in new stack<br> -- Goto (macro-user-callerid,s,13)<br> -- Executing [s@macro-user-callerid:13] NoOp("Local/3005@default-e393,2", "TTL: ARG1: novm") in new stack<br> -- Executing [s@macro-user-callerid:14] GotoIf("Local/3005@default-e393,2", "0?continue") in new stack<br> -- Executing [s@macro-user-callerid:15] Set("Local/3005@default-e393,2", "__TTL=64") in new stack<br> -- Executing [s@macro-user-callerid:16] GotoIf("Local/3005@default-e393,2", "1?continue") in new stack<br> -- Goto (macro-user-callerid,s,23)<br> -- Executing [s@macro-user-callerid:23] NoOp("Local/3005@default-e393,2", "Using CallerID "" <>") in new stack<br> -- Executing [s@macro-exten-vm:2] Set("Local/3005@default-e393,2", "RingGroupMethod=none") in new stack<br> -- Executing [s@macro-exten-vm:3] Set("Local/3005@default-e393,2", "VMBOX=novm") in new stack<br> -- Executing [s@macro-exten-vm:4] Set("Local/3005@default-e393,2", "EXTTOCALL=3005") in new stack<br> -- Executing [s@macro-exten-vm:5] Set("Local/3005@default-e393,2", "CFUEXT=") in new stack<br> -- Executing [s@macro-exten-vm:6] Set("Local/3005@default-e393,2", "CFBEXT=") in new stack<br> -- Executing [s@macro-exten-vm:7] Set("Local/3005@default-e393,2", "RT=""") in new stack<br> -- Executing [s@macro-exten-vm:8] Macro("Local/3005@default-e393,2", "record-enable|3005|IN") in new stack<br> -- Executing [s@macro-record-enable:1] GotoIf("Local/3005@default-e393,2", "0?2:4") in new stack<br> -- Goto (macro-record-enable,s,4)<br> -- Executing [s@macro-record-enable:4] AGI("Local/3005@default-e393,2", "recordingcheck|20091008-093826|1255009106.186") in new stack<br> -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck<br> recordingcheck|20091008-093826|1255009106.186: Inbound recording not enabled<br> -- AGI Script recordingcheck completed, returning 0<br> -- Executing [s@macro-record-enable:5] NoOp("Local/3005@default-e393,2", "No recording needed") in new stack<br> -- Executing [s@macro-exten-vm:9] Macro("Local/3005@default-e393,2", "dial||tr|3005") in new stack<br> -- Executing [s@macro-dial:1] GotoIf("Local/3005@default-e393,2", "1?dial") in new stack<br> -- Goto (macro-dial,s,3)<br> -- Executing [s@macro-dial:3] AGI("Local/3005@default-e393,2", "dialparties.agi") in new stack<br> -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi<br> recordingcheck|20091008-093826|1255009106.184: Inbound recording not enabled<br> -- AGI Script recordingcheck completed, returning 0<br> -- Executing [s@macro-record-enable:5] NoOp("Local/3005@default-6cc4,2", "No recording needed") in new stack<br> -- Executing [s@macro-exten-vm:9] Macro("Local/3005@default-6cc4,2", "dial||tr|3005") in new stack<br> -- Executing [s@macro-dial:1] GotoIf("Local/3005@default-6cc4,2", "1?dial") in new stack<br> -- Goto (macro-dial,s,3)<br> -- Executing [s@macro-dial:3] AGI("Local/3005@default-6cc4,2", "dialparties.agi") in new stack<br> -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi<br> dialparties.agi: Starting New Dialparties.agi<br> == Parsing '/etc/asterisk/manager.conf':Found<br> == Manager 'admin' logged on from 127.0.0.1<br> dialparties.agi: Caller ID name is 'unknown' number is 'unknown'<br> dialparties.agi: Starting New Dialparties.agi<br> dialparties.agi: Methodology of ring is 'none'<br> -- dialparties.agi: Added extension 3005 to extension map<br> -- dialparties.agi: Extension 3005 cf is disabled<br> -- dialparties.agi: Extension 3005 do not disturb is disabled<br> -- dialparties.agi: DbDel CALLTRACE/3005 - Caller ID is not defined<br> -- dialparties.agi: Filtered ARG3: 3005<br> == Manager 'admin' logged off from 127.0.0.1<br> -- AGI Script dialparties.agi completed, returning 0<br> -- Executing [s@macro-dial:7] Dial("Local/3005@default-e393,2", "SIP/3005||tr") in new stack<br> -- Called 3005<br> -- Local/3005@default-e393,1 is ringing<br> == Parsing '/etc/asterisk/manager.conf':Found<br> == Manager 'admin' logged on from 127.0.0.1<br> dialparties.agi: Caller ID name is 'unknown' number is 'unknown'<br> dialparties.agi: Methodology of ring is 'none'<br> -- dialparties.agi: Added extension 3005 to extension map<br> -- dialparties.agi: Extension 3005 cf is disabled<br> -- dialparties.agi: Extension 3005 do not disturb is disabled<br> -- dialparties.agi: DbDel CALLTRACE/3005 - Caller ID is not defined<br> -- dialparties.agi: Filtered ARG3: 3005<br> == Manager 'admin' logged off from 127.0.0.1<br> -- AGI Script dialparties.agi completed, returning 0<br> -- Executing [s@macro-dial:7] Dial("Local/3005@default-6cc4,2", "SIP/3005||tr") in new stack<br> -- Called 3005<br> -- Local/3005@default-6cc4,1 is ringing<br> -- SIP/3005-099db550 is ringing<br> -- SIP/3005-099dfcd0 is ringing<br> -- Got SIP response 480 "Temporarily Unavailable" back from 200.45.103.72<br> -- SIP/3005-099db550 is circuit-busy<br> <br><br>                                            <br /><hr />¿Para qué descargarte juegos, si tienes los más divertidos online? <a href='http://juegosonline.es.msn.com/' target='_new'>Entra ya en Juegos y prepárate para muchas horas de diversión</a></body>
</html>