In my case I used the range 200. It used the same rage when I tested Trixbox and it was working.
Now I installed asterisk+freepbx on my debian server: witch I am using for other Internet services.
I created the 2 extensions and 2 trunks. One trunk has a number for incoming calls; the other trunk is used when calling external numbers.
I can connect to asterisk trough a softphone. I can call external numbers.
My problem is : I cannot call the other extension! I got a speech "All service is busy now. Please try again later"
I think it is a default configuration issue. I installed the system twice and have the same behaviour!
Below the log (using asterisk -rvvvv) when I call an extension from another:
– Executing [[email protected]:1] Macro(“SIP/202-b5f098d8”, “exten-vm|novm|201”) in new stack
– Executing [[email protected]:1] Macro(“SIP/202-b5f098d8”, “user-callerid”) in new stack
– Executing [[email protected]:1] Set(“SIP/202-b5f098d8”, “AMPUSER=202”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/202-b5f098d8”, “0?report”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/202-b5f098d8”, “1|Set|REALCALLERIDNUM=202”) in new stack
– Executing [[email protected]:4] Set(“SIP/202-b5f098d8”, “AMPUSER=202”) in new stack
– Executing [[email protected]:5] Set(“SIP/202-b5f098d8”, “AMPUSERCIDNAME=202”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/202-b5f098d8”, “0?report”) in new stack
– Executing [[email protected]:7] Set(“SIP/202-b5f098d8”, “AMPUSERCID=202”) in new stack
– Executing [[email protected]:8] Set(“SIP/202-b5f098d8”, “CALLERID(all)=“202” <202>”) in new stack
– Executing [[email protected]:9] Set(“SIP/202-b5f098d8”, “REALCALLERIDNUM=202”) in new stack
– Executing [[email protected]:10] GotoIf(“SIP/202-b5f098d8”, “0?continue”) in new stack
– Executing [[email protected]:11] Set(“SIP/202-b5f098d8”, “__TTL=64”) in new stack
– Executing [[email protected]:12] GotoIf(“SIP/202-b5f098d8”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing [[email protected]:19] NoOp(“SIP/202-b5f098d8”, “Using CallerID “202” <202>”) in new stack
– Executing [[email protected]:2] Set(“SIP/202-b5f098d8”, “RingGroupMethod=none”) in new stack
– Executing [[email protected]:3] Set(“SIP/202-b5f098d8”, “VMBOX=novm”) in new stack
– Executing [[email protected]:4] Set(“SIP/202-b5f098d8”, “EXTTOCALL=201”) in new stack
– Executing [[email protected]:5] Set(“SIP/202-b5f098d8”, “CFUEXT=”) in new stack
– Executing [[email protected]:6] Set(“SIP/202-b5f098d8”, “CFBEXT=”) in new stack
– Executing [[email protected]:7] Set(“SIP/202-b5f098d8”, “RT=”"") in new stack
– Executing [[email protected]:8] Macro(“SIP/202-b5f098d8”, “record-enable|201|IN”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/202-b5f098d8”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [[email protected]:4] AGI(“SIP/202-b5f098d8”, “recordingcheck|20090802-131622|asterisk-1249211782.95”) in new stack
– Launched AGI Script /usr/share/asterisk/agi-bin/recordingcheck
== recordingcheck|20090802-131622|asterisk-1249211782.95: Failed to execute ‘/usr/share/asterisk/agi-bin/recordingcheck’: No such file or directory
– Executing [[email protected]:5] MacroExit(“SIP/202-b5f098d8”, “”) in new stack
– Executing [[email protected]:9] Macro(“SIP/202-b5f098d8”, “dial||tr|201”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/202-b5f098d8”, “1?dial”) in new stack
– Goto (macro-dial,s,3)
– Executing [[email protected]:3] AGI(“SIP/202-b5f098d8”, “dialparties.agi”) in new stack
– Launched AGI Script /usr/share/asterisk/agi-bin/dialparties.agi
== dialparties.agi: Failed to execute ‘/usr/share/asterisk/agi-bin/dialparties.agi’: No such file or directory
– Executing [[email protected]:4] NoOp(“SIP/202-b5f098d8”, "Returned from dialparties with no extensions to call and DIALSTATUS: ") in new stack
– Executing [[email protected]:10] GotoIf(“SIP/202-b5f098d8”, “0?exit|return”) in new stack
– Executing [[email protected]:11] Set(“SIP/202-b5f098d8”, “SV_DIALSTATUS=”) in new stack
– Executing [[email protected]:12] GosubIf(“SIP/202-b5f098d8”, “0?docfu|1”) in new stack
– Executing [[email protected]:13] GosubIf(“SIP/202-b5f098d8”, “0?docfb|1”) in new stack
– Executing [[email protected]:14] Set(“SIP/202-b5f098d8”, “DIALSTATUS=”) in new stack
– Executing [[email protected]:15] NoOp(“SIP/202-b5f098d8”, “Voicemail is novm”) in new stack
– Executing [[email protected]:16] GotoIf(“SIP/202-b5f098d8”, “1?s-|1”) in new stack
– Goto (macro-exten-vm,s-,1)
– Executing [[email protected]:2] Goto(“SIP/202-b5f098d8”, “|return|1”) in new stack
– Goto (from-internal,return,1)
– Executing [[email protected]:1] Macro(“SIP/202-b5f098d8”, “user-callerid|SKIPTTL|”) in new stack
– Executing [[email protected]:1] Set(“SIP/202-b5f098d8”, “AMPUSER=202”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/202-b5f098d8”, “0?report”) in new stack
– Executing [[email protected]:3] ExecIf(“SIP/202-b5f098d8”, “0|Set|REALCALLERIDNUM=202”) in new stack
– Executing [[email protected]:4] Set(“SIP/202-b5f098d8”, “AMPUSER=202”) in new stack
– Executing [[email protected]:5] Set(“SIP/202-b5f098d8”, “AMPUSERCIDNAME=202”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/202-b5f098d8”, “0?report”) in new stack
– Executing [[email protected]:7] Set(“SIP/202-b5f098d8”, “AMPUSERCID=202”) in new stack
– Executing [[email protected]:8] Set(“SIP/202-b5f098d8”, “CALLERID(all)=“202” <202>”) in new stack
– Executing [[email protected]:9] Set(“SIP/202-b5f098d8”, “REALCALLERIDNUM=202”) in new stack
– Executing [[email protected]:10] GotoIf(“SIP/202-b5f098d8”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,19)
– Executing [[email protected]:19] NoOp(“SIP/202-b5f098d8”, “Using CallerID “202” <202>”) in new stack
– Executing [[email protected]:2] Set(“SIP/202-b5f098d8”, “_NODEST=”) in new stack
– Executing [[email protected]:3] Macro(“SIP/202-b5f098d8”, “record-enable|202|OUT|”) in new stack
– Executing [[email protected]:1] GotoIf(“SIP/202-b5f098d8”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [[email protected]:4] AGI(“SIP/202-b5f098d8”, “recordingcheck|20090802-131622|asterisk-1249211782.95”) in new stack
– Launched AGI Script /usr/share/asterisk/agi-bin/recordingcheck
== recordingcheck|20090802-131622|asterisk-1249211782.95: Failed to execute ‘/usr/share/asterisk/agi-bin/recordingcheck’: No such file or directory
– Executing [[email protected]:5] MacroExit(“SIP/202-b5f098d8”, “”) in new stack
– Executing [[email protected]:4] Macro(“SIP/202-b5f098d8”, “dialout-trunk|5|return||”) in new stack
– Executing [[email protected]:1] Set(“SIP/202-b5f098d8”, “DIAL_TRUNK=5”) in new stack
– Executing [[email protected]:2] GosubIf(“SIP/202-b5f098d8”, “0?sub-pincheck|s|1”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/202-b5f098d8”, “0?disabletrunk|1”) in new stack
– Executing [[email protected]:4] Set(“SIP/202-b5f098d8”, “DIAL_NUMBER=return”) in new stack
– Executing [[email protected]:5] Set(“SIP/202-b5f098d8”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [[email protected]:6] Set(“SIP/202-b5f098d8”, “OUTBOUND_GROUP=OUT_5”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/202-b5f098d8”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [[email protected]:9] GotoIf(“SIP/202-b5f098d8”, “0?skipoutcid”) in new stack
– Executing [[email protected]:10] Set(“SIP/202-b5f098d8”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [[email protected]:11] Macro(“SIP/202-b5f098d8”, “outbound-callerid|5”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/202-b5f098d8”, “0|SetCallerPres|”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/202-b5f098d8”, “0|Set|REALCALLERIDNUM=202”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/202-b5f098d8”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [[email protected]:6] Set(“SIP/202-b5f098d8”, “USEROUTCID=”) in new stack
– Executing [[email protected]:7] Set(“SIP/202-b5f098d8”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:8] Set(“SIP/202-b5f098d8”, “TRUNKOUTCID=”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/202-b5f098d8”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [[email protected]:12] ExecIf(“SIP/202-b5f098d8”, “0|Set|CALLERID(all)=”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/202-b5f098d8”, “0|Set|CALLERID(all)=”) in new stack
– Executing [[email protected]:14] ExecIf(“SIP/202-b5f098d8”, “0|SetCallerPres|prohib_passed_screen”) in new stack
– Executing [[email protected]:12] ExecIf(“SIP/202-b5f098d8”, “0|AGI|fixlocalprefix”) in new stack
– Executing [[email protected]:13] Set(“SIP/202-b5f098d8”, “OUTNUM=return”) in new stack
– Executing [[email protected]:14] Set(“SIP/202-b5f098d8”, “custom=SIP/voipbuster”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/202-b5f098d8”, “0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)”) in new stack
– Executing [[email protected]:16] Macro(“SIP/202-b5f098d8”, “dialout-trunk-predial-hook|”) in new stack
– Executing [[email protected]:1] MacroExit(“SIP/202-b5f098d8”, “”) in new stack
– Executing [[email protected]:17] GotoIf(“SIP/202-b5f098d8”, “0?bypass|1”) in new stack
– Executing [[email protected]:18] GotoIf(“SIP/202-b5f098d8”, “0?customtrunk”) in new stack
– Executing [[email protected]:19] Dial(“SIP/202-b5f098d8”, “SIP/voipbuster/return|300|”) in new stack
– Called voipbuster/return
– SIP/voipbuster-09e4fd48 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [[email protected]:20] Goto(“SIP/202-b5f098d8”, “s-CONGESTION|1”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,1)
– Executing [[email protected]:1] GotoIf(“SIP/202-b5f098d8”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,3)
– Executing [[email protected]:3] NoOp(“SIP/202-b5f098d8”, “TRUNK Dial failed due to CONGESTION - failing through to other trunks”) in new stack
– Executing [[email protected]:5] Macro(“SIP/202-b5f098d8”, “dialout-trunk|2|return||”) in new stack
– Executing [[email protected]:1] Set(“SIP/202-b5f098d8”, “DIAL_TRUNK=2”) in new stack
– Executing [[email protected]:2] GosubIf(“SIP/202-b5f098d8”, “0?sub-pincheck|s|1”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/202-b5f098d8”, “0?disabletrunk|1”) in new stack
– Executing [[email protected]:4] Set(“SIP/202-b5f098d8”, “DIAL_NUMBER=return”) in new stack
– Executing [[email protected]:5] Set(“SIP/202-b5f098d8”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [[email protected]:6] Set(“SIP/202-b5f098d8”, “OUTBOUND_GROUP=OUT_2”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/202-b5f098d8”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [[email protected]:9] GotoIf(“SIP/202-b5f098d8”, “0?skipoutcid”) in new stack
– Executing [[email protected]:10] Set(“SIP/202-b5f098d8”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [[email protected]:11] Macro(“SIP/202-b5f098d8”, “outbound-callerid|2”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/202-b5f098d8”, “0|SetCallerPres|”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/202-b5f098d8”, “0|Set|REALCALLERIDNUM=202”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/202-b5f098d8”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [[email protected]:6] Set(“SIP/202-b5f098d8”, “USEROUTCID=”) in new stack
– Executing [[email protected]:7] Set(“SIP/202-b5f098d8”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:8] Set(“SIP/202-b5f098d8”, “TRUNKOUTCID=”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/202-b5f098d8”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [[email protected]:12] ExecIf(“SIP/202-b5f098d8”, “0|Set|CALLERID(all)=”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/202-b5f098d8”, “0|Set|CALLERID(all)=”) in new stack
– Executing [[email protected]:14] ExecIf(“SIP/202-b5f098d8”, “0|SetCallerPres|prohib_passed_screen”) in new stack
– Executing [[email protected]:12] ExecIf(“SIP/202-b5f098d8”, “0|AGI|fixlocalprefix”) in new stack
– Executing [[email protected]:13] Set(“SIP/202-b5f098d8”, “OUTNUM=return”) in new stack
– Executing [[email protected]:14] Set(“SIP/202-b5f098d8”, “custom=SIP/freephonie”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/202-b5f098d8”, “0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)”) in new stack
– Executing [[email protected]:16] Macro(“SIP/202-b5f098d8”, “dialout-trunk-predial-hook|”) in new stack
– Executing [[email protected]:1] MacroExit(“SIP/202-b5f098d8”, “”) in new stack
– Executing [[email protected]:17] GotoIf(“SIP/202-b5f098d8”, “0?bypass|1”) in new stack
– Executing [[email protected]:18] GotoIf(“SIP/202-b5f098d8”, “0?customtrunk”) in new stack
– Executing [[email protected]:19] Dial(“SIP/202-b5f098d8”, “SIP/freephonie/return|300|”) in new stack
– Called freephonie/return
– SIP/freephonie-09e5e4c0 is circuit-busy
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [[email protected]:20] Goto(“SIP/202-b5f098d8”, “s-CONGESTION|1”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,1)
– Executing [[email protected]:1] GotoIf(“SIP/202-b5f098d8”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,3)
– Executing [[email protected]:3] NoOp(“SIP/202-b5f098d8”, “TRUNK Dial failed due to CONGESTION - failing through to other trunks”) in new stack
– Executing [[email protected]:6] Macro(“SIP/202-b5f098d8”, “dialout-trunk|1|return||”) in new stack
– Executing [[email protected]:1] Set(“SIP/202-b5f098d8”, “DIAL_TRUNK=1”) in new stack
– Executing [[email protected]:2] GosubIf(“SIP/202-b5f098d8”, “0?sub-pincheck|s|1”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/202-b5f098d8”, “0?disabletrunk|1”) in new stack
– Executing [[email protected]:4] Set(“SIP/202-b5f098d8”, “DIAL_NUMBER=return”) in new stack
– Executing [[email protected]:5] Set(“SIP/202-b5f098d8”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [[email protected]:6] Set(“SIP/202-b5f098d8”, “OUTBOUND_GROUP=OUT_1”) in new stack
– Executing [[email protected]:7] GotoIf(“SIP/202-b5f098d8”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [[email protected]:9] GotoIf(“SIP/202-b5f098d8”, “0?skipoutcid”) in new stack
– Executing [[email protected]:10] Set(“SIP/202-b5f098d8”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [[email protected]:11] Macro(“SIP/202-b5f098d8”, “outbound-callerid|1”) in new stack
– Executing [[email protected]:1] ExecIf(“SIP/202-b5f098d8”, “0|SetCallerPres|”) in new stack
– Executing [[email protected]:2] ExecIf(“SIP/202-b5f098d8”, “0|Set|REALCALLERIDNUM=202”) in new stack
– Executing [[email protected]:3] GotoIf(“SIP/202-b5f098d8”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [[email protected]:6] Set(“SIP/202-b5f098d8”, “USEROUTCID=”) in new stack
– Executing [[email protected]:7] Set(“SIP/202-b5f098d8”, “EMERGENCYCID=”) in new stack
– Executing [[email protected]:8] Set(“SIP/202-b5f098d8”, “TRUNKOUTCID=”) in new stack
– Executing [[email protected]:9] GotoIf(“SIP/202-b5f098d8”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [[email protected]:12] ExecIf(“SIP/202-b5f098d8”, “0|Set|CALLERID(all)=”) in new stack
– Executing [[email protected]:13] ExecIf(“SIP/202-b5f098d8”, “0|Set|CALLERID(all)=”) in new stack
– Executing [[email protected]:14] ExecIf(“SIP/202-b5f098d8”, “0|SetCallerPres|prohib_passed_screen”) in new stack
– Executing [[email protected]:12] ExecIf(“SIP/202-b5f098d8”, “0|AGI|fixlocalprefix”) in new stack
– Executing [[email protected]:13] Set(“SIP/202-b5f098d8”, “OUTNUM=return”) in new stack
– Executing [[email protected]:14] Set(“SIP/202-b5f098d8”, “custom=ZAP/g0”) in new stack
– Executing [[email protected]:15] ExecIf(“SIP/202-b5f098d8”, “0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)”) in new stack
– Executing [[email protected]:16] Macro(“SIP/202-b5f098d8”, “dialout-trunk-predial-hook|”) in new stack
– Executing [[email protected]:1] MacroExit(“SIP/202-b5f098d8”, “”) in new stack
– Executing [[email protected]:17] GotoIf(“SIP/202-b5f098d8”, “0?bypass|1”) in new stack
– Executing [[email protected]:18] GotoIf(“SIP/202-b5f098d8”, “0?customtrunk”) in new stack
– Executing [[email protected]:19] Dial(“SIP/202-b5f098d8”, “ZAP/g0/return|300|”) in new stack
== Everyone is busy/congested at this time (1:0/1/0)
– Executing [[email protected]:20] Goto(“SIP/202-b5f098d8”, “s-CONGESTION|1”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,1)
– Executing [[email protected]:1] GotoIf(“SIP/202-b5f098d8”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,s-CONGESTION,3)
– Executing [[email protected]:3] NoOp(“SIP/202-b5f098d8”, “TRUNK Dial failed due to CONGESTION - failing through to other trunks”) in new stack
– Executing [[email protected]:7] Macro(“SIP/202-b5f098d8”, “outisbusy|”) in new stack
– Executing [[email protected]:1] Playback(“SIP/202-b5f098d8”, “all-circuits-busy-now|noanswer”) in new stack
– <SIP/202-b5f098d8> Playing ‘all-circuits-busy-now’ (language ‘en’)
– Executing [[email protected]:2] Playback(“SIP/202-b5f098d8”, “pls-try-call-later|noanswer”) in new stack
– <SIP/202-b5f098d8> Playing ‘pls-try-call-later’ (language ‘en’)
== Spawn extension (macro-outisbusy, s, 2) exited non-zero on ‘SIP/202-b5f098d8’ in macro ‘outisbusy’
== Spawn extension (macro-outisbusy, s, 2) exited non-zero on ‘SIP/202-b5f098d8’
Thanks for your help