jcalderin
Nuevo
Karma: 0
Mensajes: 1
|
 |
« : Diciembre 30, 2009, 12:13:13 » |
|
Como configuro el Trunk en Asterisk para conectar con proveedor de VOIP en Puerto Rico?
Así lo tengo configurado:
Trunk Name Phonemaxpr
PEERS Details:
host=phonemaxpr.com username=Myusername secret=mypassword type=peer
Al tratar de hacer una llamada dice: All Circuit are busy now.
Esto es lo que sale en la terminal de Asterisk:
-- Executing [78778700228@from-internal:1] Macro("SIP/200-b77093c8", "user-callerid|SKIPTTL|") in new stack -- Executing [s@macro-user-callerid:1] Set("SIP/200-b77093c8", "AMPUSER=200") in new stack -- Executing [s@macro-user-callerid:2] GotoIf("SIP/200-b77093c8", "0?report") in new stack -- Executing [s@macro-user-callerid:3] ExecIf("SIP/200-b77093c8", "1|Set|REALCALLERIDNUM=200") in new stack -- Executing [s@macro-user-callerid:4] Set("SIP/200-b77093c8", "AMPUSER=200") in new stack -- Executing [s@macro-user-callerid:5] Set("SIP/200-b77093c8", "AMPUSERCIDNAME=Jaime Calderin") in new stack -- Executing [s@macro-user-callerid:6] GotoIf("SIP/200-b77093c8", "0?report") in new stack -- Executing [s@macro-user-callerid:7] Set("SIP/200-b77093c8", "AMPUSERCID=200") in new stack -- Executing [s@macro-user-callerid:8] Set("SIP/200-b77093c8", "CALLERID(all)="Jaime Calderin" <200>") in new stack -- Executing [s@macro-user-callerid:9] ExecIf("SIP/200-b77093c8", "0|Set|CHANNEL(language)=") in new stack -- Executing [s@macro-user-callerid:10] GotoIf("SIP/200-b77093c8", "1?continue") in new stack -- Goto (macro-user-callerid,s,19) -- Executing [s@macro-user-callerid:19] NoOp("SIP/200-b77093c8", "Using CallerID "Jaime Calderin" <200>") in new stack -- Executing [78778700228@from-internal:2] Set("SIP/200-b77093c8", "_NODEST=") in new stack -- Executing [78778700228@from-internal:3] Macro("SIP/200-b77093c8", "record-enable|200|OUT|") in new stack -- Executing [s@macro-record-enable:1] GotoIf("SIP/200-b77093c8", "1?check") in new stack -- Goto (macro-record-enable,s,4) -- Executing [s@macro-record-enable:4] AGI("SIP/200-b77093c8", "recordingcheck|20091230-140949|1262196589.118") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck recordingcheck|20091230-140949|1262196589.118: Outbound recording not enabled -- AGI Script recordingcheck completed, returning 0 -- Executing [s@macro-record-enable:5] MacroExit("SIP/200-b77093c8", "") in new stack -- Executing [78778700228@from-internal:4] Macro("SIP/200-b77093c8", "dialout-trunk|1|78778700228||") in new stack -- Executing [s@macro-dialout-trunk:1] Set("SIP/200-b77093c8", "DIAL_TRUNK=1") in new stack -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/200-b77093c8", "0?sub-pincheck|s|1") in new stack -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/200-b77093c8", "0?disabletrunk|1") in new stack -- Executing [s@macro-dialout-trunk:4] Set("SIP/200-b77093c8", "DIAL_NUMBER=78778700228") in new stack -- Executing [s@macro-dialout-trunk:5] Set("SIP/200-b77093c8", "DIAL_TRUNK_OPTIONS=tr") in new stack -- Executing [s@macro-dialout-trunk:6] Set("SIP/200-b77093c8", "OUTBOUND_GROUP=OUT_1") in new stack -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/200-b77093c8", "1?nomax") in new stack -- Goto (macro-dialout-trunk,s,9) -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/200-b77093c8", "0?skipoutcid") in new stack -- Executing [s@macro-dialout-trunk:10] Set("SIP/200-b77093c8", "DIAL_TRUNK_OPTIONS=") in new stack -- Executing [s@macro-dialout-trunk:11] Macro("SIP/200-b77093c8", "outbound-callerid|1") in new stack -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/200-b77093c8", "0|SetCallerPres|") in new stack -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/200-b77093c8", "0|Set|REALCALLERIDNUM=200") in new stack -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/200-b77093c8", "1?normcid") in new stack -- Goto (macro-outbound-callerid,s,6) -- Executing [s@macro-outbound-callerid:6] Set("SIP/200-b77093c8", "USEROUTCID=") in new stack -- Executing [s@macro-outbound-callerid:7] Set("SIP/200-b77093c8", "EMERGENCYCID=") in new stack -- Executing [s@macro-outbound-callerid:8] Set("SIP/200-b77093c8", "TRUNKOUTCID=") in new stack -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/200-b77093c8", "1?trunkcid") in new stack -- Goto (macro-outbound-callerid,s,12) -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/200-b77093c8", "0|Set|CALLERID(all)=") in new stack -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/200-b77093c8", "0|Set|CALLERID(all)=") in new stack -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/200-b77093c8", "0|SetCallerPres|prohib_passed_screen") in new stack -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/200-b77093c8", "0|AGI|fixlocalprefix") in new stack -- Executing [s@macro-dialout-trunk:13] Set("SIP/200-b77093c8", "OUTNUM=78778700228") in new stack -- Executing [s@macro-dialout-trunk:14] Set("SIP/200-b77093c8", "custom=SIP/Phonemaxpr") in new stack -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/200-b77093c8", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)") in new stack -- Executing [s@macro-dialout-trunk:16] Macro("SIP/200-b77093c8", "dialout-trunk-predial-hook|") in new stack -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/200-b77093c8", "") in new stack -- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/200-b77093c8", "0?bypass|1") in new stack -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/200-b77093c8", "0?customtrunk") in new stack -- Executing [s@macro-dialout-trunk:19] Dial("SIP/200-b77093c8", "SIP/Phonemaxpr/78778700228|300|") in new stack -- Called Phonemaxpr/78778700228 -- SIP/Phonemaxpr-098d5a08 is circuit-busy == Everyone is busy/congested at this time (1:0/1/0) -- Executing [s@macro-dialout-trunk:20] Goto("SIP/200-b77093c8", "s-CONGESTION|1") in new stack -- Goto (macro-dialout-trunk,s-CONGESTION,1) -- Executing [s-CONGESTION@macro-dialout-trunk:1] GotoIf("SIP/200-b77093c8", "1?noreport") in new stack -- Goto (macro-dialout-trunk,s-CONGESTION,3) -- Executing [s-CONGESTION@macro-dialout-trunk:3] NoOp("SIP/200-b77093c8", "TRUNK Dial failed due to CONGESTION - failing through to other trunks") in new stack -- Executing [78778700228@from-internal:5] Macro("SIP/200-b77093c8", "outisbusy|") in new stack -- Executing [s@macro-outisbusy:1] GotoIf("SIP/200-b77093c8", "0?emergency|1") in new stack -- Executing [s@macro-outisbusy:2] GotoIf("SIP/200-b77093c8", "0?intracompany|1") in new stack -- Executing [s@macro-outisbusy:3] Playback("SIP/200-b77093c8", "all-circuits-busy-now&pls-try-call-later| noanswer") in new stack -- <SIP/200-b77093c8> Playing 'all-circuits-busy-now' (language 'en') == Spawn extension (macro-outisbusy, s, 3) exited non-zero on 'SIP/200-b77093c8' in macro 'outisbusy' == Spawn extension (from-internal, 78778700228, 5) exited non-zero on 'SIP/200-b77093c8' -- Executing [h@from-internal:1] Macro("SIP/200-b77093c8", "hangupcall") in new stack -- Executing [s@macro-hangupcall:1] GotoIf("SIP/200-b77093c8", "1?skiprg") in new stack -- Goto (macro-hangupcall,s,4) -- Executing [s@macro-hangupcall:4] GotoIf("SIP/200-b77093c8", "1?skipblkvm") in new stack -- Goto (macro-hangupcall,s,7) -- Executing [s@macro-hangupcall:7] GotoIf("SIP/200-b77093c8", "1?theend") in new stack -- Goto (macro-hangupcall,s,9) -- Executing [s@macro-hangupcall:9] Hangup("SIP/200-b77093c8", "") in new stack == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/200-b77093c8' in macro 'hangupcall' == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/200-b77093c8'
Post Merge: Diciembre 30, 2009, 06:39:23 Bueno por ahora yo mismo me voy a seguir respondiendo mientras voy avanzando en configurar el Trunk de mi Asterisk, resulta que pude configurar el trunk y esta online, aquí la configuración:
Trunk Name: Aquí le damos el nombre del trunk en mi caso es phonemaxpr
PEERS Details:
username=puse mi username type=friend secret=puse mi clave host=phonemaxpr.com fromuser=puse mi username otra vez context=from-Phonemaxpr fromdomain=phonemaxpr.com insecure=very
USER Context: Puse mi nombre de usuario
USER Details:
username=mi username otra vez secret=mi password context=from-Phonemaxpr
Con esto en el FreePBX System Status mi Trunk sale Registrada y Online
El problema que hay ahora es que no recibe llamadas y al tratar de hacer una llamada sale un mensaje de voz que dice: "Your call cannot be complete as dial" y si llamas de algún teléfono como desde un celular no sale nada. Creo que debe ser algun error de configuracion en outbound routes.
Continuare buscando tutoriales sobre esto!
Aquí lo que sale en la terminal de Asterisk cuando marco a un numero aquí en Puerto Rico:
-- Executing [7872252930@from-internal:1] ResetCDR("SIP/200-08ad9608", "") in new stack -- Executing [7872252930@from-internal:2] NoCDR("SIP/200-08ad9608", "") in new stack -- Executing [7872252930@from-internal:3] Wait("SIP/200-08ad9608", "1") in new stack -- Executing [7872252930@from-internal:4] Playback("SIP/200-08ad9608", "silence/1&cannot-complete-as-dialed&check-number-dial-again|noanswer") in new stack -- <SIP/200-08ad9608> Playing 'silence/1' (language 'en') -- <SIP/200-08ad9608> Playing 'cannot-complete-as-dialed' (language 'en') -- <SIP/200-08ad9608> Playing 'check-number-dial-again' (language 'en') -- Executing [7872252930@from-internal:5] Wait("SIP/200-08ad9608", "1") in new stack -- Executing [7872252930@from-internal:6] Congestion("SIP/200-08ad9608", "20") in new stack == Spawn extension (from-internal, 7872252930, 6) exited non-zero on 'SIP/200-08ad9608' -- Executing [h@from-internal:1] Macro("SIP/200-08ad9608", "hangupcall") in new stack -- Executing [s@macro-hangupcall:1] GotoIf("SIP/200-08ad9608", "1?skiprg") in new stack -- Goto (macro-hangupcall,s,4) -- Executing [s@macro-hangupcall:4] GotoIf("SIP/200-08ad9608", "1?skipblkvm") in new stack -- Goto (macro-hangupcall,s,7) -- Executing [s@macro-hangupcall:7] GotoIf("SIP/200-08ad9608", "1?theend") in new stack -- Goto (macro-hangupcall,s,9) -- Executing [s@macro-hangupcall:9] Hangup("SIP/200-08ad9608", "") in new stack == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/200-08ad9608' in macro 'hangupcall' == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/200-08ad9608'
En lo que me puedan ayudar se los voy agradecer!
|