[asterisk-users] Dialplan problem
Ioan Indreias
indreias at gmail.com
Thu Oct 8 09:40:20 CDT 2009
Hello Anahi,
1. Do not use the Answer
2. Use Goto(3005,1) instead of Dial
Thus I would write only the following line:
exten => 2001,1,Goto(3005)
I do not understand exactly what you want to do but hey...
HTH,
Ioan (Nini) Indreias
www.modulo.ro
2009/10/8 Anahi Ludueña <a_luduena at hotmail.com>:
> Hi people,
> I have the following dialplan, but it doesn't have the behavior that I think
> it should have.
>
> [default]
> exten => 2001,1,Answer
> exten => 2001,n,Dial(local/3005)
> exten => 2001,n,Hangup
> exten => 3005,1,Set(__RINGTIMER=10)
> exten => 3005,n,Macro(exten-vm,novm,3005)
> exten => 3005,n,Hangup
>
> When I execute the Originate (AMI) with the argument Channel=local/2001, It
> rings the local/3005 but 2 calls are generated...
> Why?
> Or how should the dialplan be to generate only one call on the local/3005?
>
> Thanks,
>
>
>
> The log is:
>
> -- Executing [2001 at default:1] Answer("Local/2001 at default-b60f,2", "") in
> new stack
> == Manager 'asteriskWS' logged off from ...
> -- Executing [2001 at default:2] Dial("Local/2001 at default-b60f,2",
> "local/3005") in new stack
> -- Called 3005
> -- Executing [2001 at default:1] Answer("Local/2001 at default-b60f,1", "") in
> new stack
> -- Executing [2001 at default:2] Dial("Local/2001 at default-b60f,1",
> "local/3005") in new stack
> -- Called 3005
> -- Executing [3005 at default:1] Set("Local/3005 at default-6cc4,2",
> "__RINGTIMER=10") in new stack
> -- Executing [3005 at default:2] Macro("Local/3005 at default-6cc4,2",
> "exten-vm|novm|3005") in new stack
> -- Executing [s at macro-exten-vm:1] Macro("Local/3005 at default-6cc4,2",
> "user-callerid") in new stack
> -- Executing [s at macro-user-callerid:1] NoOp("Local/3005 at default-6cc4,2",
> "user-callerid: ") in new stack
> -- Executing [s at macro-user-callerid:2] Set("Local/3005 at default-6cc4,2",
> "AMPUSER=") in new stack
> -- Executing [s at macro-user-callerid:3]
> GotoIf("Local/3005 at default-6cc4,2", "1?report") in new stack
> -- Goto (macro-user-callerid,s,13)
> -- Executing [s at macro-user-callerid:13]
> NoOp("Local/3005 at default-6cc4,2", "TTL: ARG1: novm") in new stack
> -- Executing [s at macro-user-callerid:14]
> GotoIf("Local/3005 at default-6cc4,2", "0?continue") in new stack
> -- Executing [s at macro-user-callerid:15] Set("Local/3005 at default-6cc4,2",
> "__TTL=64") in new stack
> -- Executing [s at macro-user-callerid:16]
> GotoIf("Local/3005 at default-6cc4,2", "1?continue") in new stack
> -- Goto (macro-user-callerid,s,23)
> -- Executing [s at macro-user-callerid:23]
> NoOp("Local/3005 at default-6cc4,2", "Using CallerID "" <>") in new stack
> -- Executing [s at macro-exten-vm:2] Set("Local/3005 at default-6cc4,2",
> "RingGroupMethod=none") in new stack
> -- Executing [s at macro-exten-vm:3] Set("Local/3005 at default-6cc4,2",
> "VMBOX=novm") in new stack
> -- Executing [s at macro-exten-vm:4] Set("Local/3005 at default-6cc4,2",
> "EXTTOCALL=3005") in new stack
> -- Executing [s at macro-exten-vm:5] Set("Local/3005 at default-6cc4,2",
> "CFUEXT=") in new stack
> -- Executing [s at macro-exten-vm:6] Set("Local/3005 at default-6cc4,2",
> "CFBEXT=") in new stack
> -- Executing [s at macro-exten-vm:7] Set("Local/3005 at default-6cc4,2",
> "RT=""") in new stack
> -- Executing [s at macro-exten-vm:8] Macro("Local/3005 at default-6cc4,2",
> "record-enable|3005|IN") in new stack
> -- Executing [s at macro-record-enable:1]
> GotoIf("Local/3005 at default-6cc4,2", "0?2:4") in new stack
> -- Goto (macro-record-enable,s,4)
> -- Executing [s at macro-record-enable:4] AGI("Local/3005 at default-6cc4,2",
> "recordingcheck|20091008-093826|1255009106.184") in new stack
> -- Executing [3005 at default:1] Set("Local/3005 at default-e393,2",
> "__RINGTIMER=10") in new stack
> -- Executing [3005 at default:2] Macro("Local/3005 at default-e393,2",
> "exten-vm|novm|3005") in new stack
> -- Executing [s at macro-exten-vm:1] Macro("Local/3005 at default-e393,2",
> "user-callerid") in new stack
> -- Executing [s at macro-user-callerid:1] NoOp("Local/3005 at default-e393,2",
> "user-callerid: ") in new stack
> -- Executing [s at macro-user-callerid:2] Set("Local/3005 at default-e393,2",
> "AMPUSER=") in new stack
> -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
> -- Executing [s at macro-user-callerid:3]
> GotoIf("Local/3005 at default-e393,2", "1?report") in new stack
> -- Goto (macro-user-callerid,s,13)
> -- Executing [s at macro-user-callerid:13]
> NoOp("Local/3005 at default-e393,2", "TTL: ARG1: novm") in new stack
> -- Executing [s at macro-user-callerid:14]
> GotoIf("Local/3005 at default-e393,2", "0?continue") in new stack
> -- Executing [s at macro-user-callerid:15] Set("Local/3005 at default-e393,2",
> "__TTL=64") in new stack
> -- Executing [s at macro-user-callerid:16]
> GotoIf("Local/3005 at default-e393,2", "1?continue") in new stack
> -- Goto (macro-user-callerid,s,23)
> -- Executing [s at macro-user-callerid:23]
> NoOp("Local/3005 at default-e393,2", "Using CallerID "" <>") in new stack
> -- Executing [s at macro-exten-vm:2] Set("Local/3005 at default-e393,2",
> "RingGroupMethod=none") in new stack
> -- Executing [s at macro-exten-vm:3] Set("Local/3005 at default-e393,2",
> "VMBOX=novm") in new stack
> -- Executing [s at macro-exten-vm:4] Set("Local/3005 at default-e393,2",
> "EXTTOCALL=3005") in new stack
> -- Executing [s at macro-exten-vm:5] Set("Local/3005 at default-e393,2",
> "CFUEXT=") in new stack
> -- Executing [s at macro-exten-vm:6] Set("Local/3005 at default-e393,2",
> "CFBEXT=") in new stack
> -- Executing [s at macro-exten-vm:7] Set("Local/3005 at default-e393,2",
> "RT=""") in new stack
> -- Executing [s at macro-exten-vm:8] Macro("Local/3005 at default-e393,2",
> "record-enable|3005|IN") in new stack
> -- Executing [s at macro-record-enable:1]
> GotoIf("Local/3005 at default-e393,2", "0?2:4") in new stack
> -- Goto (macro-record-enable,s,4)
> -- Executing [s at macro-record-enable:4] AGI("Local/3005 at default-e393,2",
> "recordingcheck|20091008-093826|1255009106.186") in new stack
> -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
> recordingcheck|20091008-093826|1255009106.186: Inbound recording not
> enabled
> -- AGI Script recordingcheck completed, returning 0
> -- Executing [s at macro-record-enable:5] NoOp("Local/3005 at default-e393,2",
> "No recording needed") in new stack
> -- Executing [s at macro-exten-vm:9] Macro("Local/3005 at default-e393,2",
> "dial||tr|3005") in new stack
> -- Executing [s at macro-dial:1] GotoIf("Local/3005 at default-e393,2",
> "1?dial") in new stack
> -- Goto (macro-dial,s,3)
> -- Executing [s at macro-dial:3] AGI("Local/3005 at default-e393,2",
> "dialparties.agi") in new stack
> -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
> recordingcheck|20091008-093826|1255009106.184: Inbound recording not
> enabled
> -- AGI Script recordingcheck completed, returning 0
> -- Executing [s at macro-record-enable:5] NoOp("Local/3005 at default-6cc4,2",
> "No recording needed") in new stack
> -- Executing [s at macro-exten-vm:9] Macro("Local/3005 at default-6cc4,2",
> "dial||tr|3005") in new stack
> -- Executing [s at macro-dial:1] GotoIf("Local/3005 at default-6cc4,2",
> "1?dial") in new stack
> -- Goto (macro-dial,s,3)
> -- Executing [s at macro-dial:3] AGI("Local/3005 at default-6cc4,2",
> "dialparties.agi") in new stack
> -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
> dialparties.agi: Starting New Dialparties.agi
> == Parsing '/etc/asterisk/manager.conf':Found
> == Manager 'admin' logged on from 127.0.0.1
> dialparties.agi: Caller ID name is 'unknown' number is 'unknown'
> dialparties.agi: Starting New Dialparties.agi
> dialparties.agi: Methodology of ring is 'none'
> -- dialparties.agi: Added extension 3005 to extension map
> -- dialparties.agi: Extension 3005 cf is disabled
> -- dialparties.agi: Extension 3005 do not disturb is disabled
> -- dialparties.agi: DbDel CALLTRACE/3005 - Caller ID is not defined
> -- dialparties.agi: Filtered ARG3: 3005
> == Manager 'admin' logged off from 127.0.0.1
> -- AGI Script dialparties.agi completed, returning 0
> -- Executing [s at macro-dial:7] Dial("Local/3005 at default-e393,2",
> "SIP/3005||tr") in new stack
> -- Called 3005
> -- Local/3005 at default-e393,1 is ringing
> == Parsing '/etc/asterisk/manager.conf':Found
> == Manager 'admin' logged on from 127.0.0.1
> dialparties.agi: Caller ID name is 'unknown' number is 'unknown'
> dialparties.agi: Methodology of ring is 'none'
> -- dialparties.agi: Added extension 3005 to extension map
> -- dialparties.agi: Extension 3005 cf is disabled
> -- dialparties.agi: Extension 3005 do not disturb is disabled
> -- dialparties.agi: DbDel CALLTRACE/3005 - Caller ID is not defined
> -- dialparties.agi: Filtered ARG3: 3005
> == Manager 'admin' logged off from 127.0.0.1
> -- AGI Script dialparties.agi completed, returning 0
> -- Executing [s at macro-dial:7] Dial("Local/3005 at default-6cc4,2",
> "SIP/3005||tr") in new stack
> -- Called 3005
> -- Local/3005 at default-6cc4,1 is ringing
> -- SIP/3005-099db550 is ringing
> -- SIP/3005-099dfcd0 is ringing
> -- Got SIP response 480 "Temporarily Unavailable" back from
> 200.45.103.72
> -- SIP/3005-099db550 is circuit-busy
>
>
>
> ________________________________
> ¿Para qué descargarte juegos, si tienes los más divertidos online? Entra ya
> en Juegos y prepárate para muchas horas de diversión
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2009 - October 13 - 15 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list