Buenos dias, hace poco decidi probar a asterisk 1.8 con FreePBX instale todo normal y compramos una Sangoma A200 para hacer una nueva instalacion instalamos la tarjeta y todo normal pero a la hora de configurar las llamadas salientes me encontre con un detalle.
Si en lugar de usar el grupo default g0 en las troncales configuro una troncal para cada canal fxo a la hora de ponerlos en mi ruta de salida unicamente me toma el primer canal, digamos que si el primer canal no tiene linea no se pasa al siguiente y simplemente me manda tono de ocupado,
si en lugar de poner los canales por separado uso el g0 si busca en los 4 canales antes de marcarme tono de no disponible, las pruebas las hice conectando una sola linea en lugar de las cuatro y a menos que ponga la linea de telmex en el canal que busca como primero en la ruta de salida la llamada no sale.
Alguien tiene idea de como solucionar este problema sin usar el grupo default g0 o tener que asignar un grupo a cada canal? en versiones anteriores simplemente ponia el numero de canal a la troncal creada y se pasaba sin problemas, revise la consola cuando ago la llamada y vi que siempre intenta salir por la primer linea que se definio en la ruta de salida e ignora los demas canales, alguna idea de como solucionar esto?, Saludos.
CLI:
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [97165610@from-internal:1] Macro("SIP/212-00000013", "user-callerid,LIMIT,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/212-00000013", "AMPUSER=212") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/212-00000013", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/212-00000013", "1?Set(REALCALLERIDNUM=212)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/212-00000013", "AMPUSER=212") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/212-00000013", "AMPUSERCIDNAME=Jorge") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/212-00000013", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/212-00000013", "AMPUSERCID=212") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/212-00000013", "CALLERID(all)="Jorge" <212>") in new stack
-- Executing [s@macro-user-callerid:9] GotoIf("SIP/212-00000013", "0?limit") in new stack
-- Executing [s@macro-user-callerid:10] ExecIf("SIP/212-00000013", "1?Set(GROUP(concurrency_limit)=212)") in new stack
-- Executing [s@macro-user-callerid:11] GosubIf("SIP/212-00000013", "0?sub-ccss,s,1(from-internal,97165610)") in new stack
-- Executing [s@macro-user-callerid:12] ExecIf("SIP/212-00000013", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:13] GotoIf("SIP/212-00000013", "1?continue") in new stack
-- Goto (macro-user-callerid,s,26)
-- Executing [s@macro-user-callerid:26] Set("SIP/212-00000013", "CALLERID(number)=212") in new stack
-- Executing [s@macro-user-callerid:27] Set("SIP/212-00000013", "CALLERID(name)=Jorge") in new stack
-- Executing [s@macro-user-callerid:28] Set("SIP/212-00000013", "CHANNEL(language)=en") in new stack
-- Executing [97165610@from-internal:2] Set("SIP/212-00000013", "MOHCLASS=default") in new stack
-- Executing [97165610@from-internal:3] Set("SIP/212-00000013", "_NODEST=") in new stack
-- Executing [97165610@from-internal:4] Gosub("SIP/212-00000013", "sub-record-check,s,1(out,97165610,)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("SIP/212-00000013", "1?check") in new stack
-- Goto (sub-record-check,s,6)
-- Executing [s@sub-record-check:6] Set("SIP/212-00000013", "MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:7] GotoIf("SIP/212-00000013", "1?next") in new stack
-- Goto (sub-record-check,s,10)
-- Executing [s@sub-record-check:10] ExecIf("SIP/212-00000013", "0?Return()") in new stack
-- Executing [s@sub-record-check:11] GotoIf("SIP/212-00000013", "0?out,1") in new stack
-- Executing [s@sub-record-check:12] Set("SIP/212-00000013", "REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:13] ExecIf("SIP/212-00000013", "0?Set(REC_POLICY_MODE=)") in new stack
-- Executing [s@sub-record-check:14] Set("SIP/212-00000013", "NOW=1339174081") in new stack
-- Executing [s@sub-record-check:15] Set("SIP/212-00000013", "DAY=08") in new stack
-- Executing [s@sub-record-check:16] Set("SIP/212-00000013", "MONTH=06") in new stack
-- Executing [s@sub-record-check:17] Set("SIP/212-00000013", "YEAR=2012") in new stack
-- Executing [s@sub-record-check:18] Set("SIP/212-00000013", "TIMESTR=20120608-104801") in new stack
-- Executing [s@sub-record-check:19] Set("SIP/212-00000013", "FROMEXTEN=212") in new stack
-- Executing [s@sub-record-check:20] Set("SIP/212-00000013", "CALLFILENAME=out-97165610-212-20120608-104801-1339174081.24") in new stack
-- Executing [s@sub-record-check:21] Goto("SIP/212-00000013", "out,1") in new stack
-- Goto (sub-record-check,out,1)
-- Executing [out@sub-record-check:1] ExecIf("SIP/212-00000013", "1?Set(REC_POLICY_MODE=dontcare)") in new stack
-- Executing [out@sub-record-check:2] GosubIf("SIP/212-00000013", "0?record,1(exten,97165610,212)") in new stack
-- Executing [out@sub-record-check:3] Return("SIP/212-00000013", "") in new stack
-- Executing [97165610@from-internal:5] Macro("SIP/212-00000013", "dialout-trunk,2,7165610,") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/212-00000013", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/212-00000013", "0?sub-pincheck,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/212-00000013", "0?disabletrunk,1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/212-00000013", "DIAL_NUMBER=7165610") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/212-00000013", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/212-00000013", "OUTBOUND_GROUP=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/212-00000013", "0?nomax") in new stack
-- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/212-00000013", "0?chanfull") in new stack
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/212-00000013", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/212-00000013", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/212-00000013", "outbound-callerid,2") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/212-00000013", "0?Set(CALLERPRES()=)") in new stack
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/212-00000013", "0?Set(REALCALLERIDNUM=212)") in new stack
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/212-00000013", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,6)
-- Executing [s@macro-outbound-callerid:6] Set("SIP/212-00000013", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:7] Set("SIP/212-00000013", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:8] Set("SIP/212-00000013", "TRUNKOUTCID=12345") in new stack
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/212-00000013", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,12)
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/212-00000013", "1?Set(CALLERID(all)=12345)") in new stack
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/212-00000013", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/212-00000013", "0?Set(CALLERID(all)=)") in new stack
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/212-00000013", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
-- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/212-00000013", "0?sub-flp-2,s,1()") in new stack
-- Executing [s@macro-dialout-trunk:13] Set("SIP/212-00000013", "OUTNUM=7165610") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/212-00000013", "custom=DAHDI/1") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/212-00000013", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusicdefault))") in new stack
-- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/212-00000013", "0?Set(DIAL_TRUNK_OPTIONS=M(confirm))") in new stack
-- Executing [s@macro-dialout-trunk:17] Macro("SIP/212-00000013", "dialout-trunk-predial-hook,") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/212-00000013", "") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/212-00000013", "0?bypass,1") in new stack
-- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/212-00000013", "1?Set(CONNECTEDLINE(num,i)=7165610)") in new stack
-- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/212-00000013", "1?Set(CONNECTEDLINE(name,i)=CID:12345)") in new stack
-- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/212-00000013", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:22] Dial("SIP/212-00000013", "DAHDI/1/7165610,300,") in new stack
[2012-06-08 10:48:01] WARNING[-1]: app_dial.c:2277 dial_exec_full: Unable to create channel of type 'DAHDI' (cause 17 - User busy)
== Everyone is busy/congested at this time (1:1/0/0)
-- Executing [s@macro-dialout-trunk:23] NoOp("SIP/212-00000013", "Dial failed for some reason with DIALSTATUS = BUSY and HANGUPCAUSE = 17") in new stack
-- Executing [s@macro-dialout-trunk:24] Goto("SIP/212-00000013", "s-BUSY,1") in new stack
-- Goto (macro-dialout-trunk,s-BUSY,1)
-- Executing [s-BUSY@macro-dialout-trunk:1] NoOp("SIP/212-00000013", "Dial failed due to trunk reporting BUSY - giving up") in new stack
-- Executing [s-BUSY@macro-dialout-trunk:2] PlayTones("SIP/212-00000013", "busy") in new stack
-- Executing [s-BUSY@macro-dialout-trunk:3] Busy("SIP/212-00000013", "20") in new stack
== Spawn extension (macro-dialout-trunk, s-BUSY, 3) exited non-zero on 'SIP/212-00000013' in macro 'dialout-trunk'
== Spawn extension (from-internal, 97165610, 5) exited non-zero on 'SIP/212-00000013'
-- Executing [h@from-internal:1] Hangup("SIP/212-00000013", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/212-00000013'