Hola a todos,
tengo un servidor Asterisk en la red local con un SPA3102 de voip gateway hacia la linea normal de telefónica.
Ésto es una locura, he probado varios tutoriales como:
http://www.forowifi.com/forum/showthread.php?p=133
http://blog.eduardopagan.com/blog/2008/06/
y con el que he llegado más lejos, que me permite recibir llamadas: http://www.freepbx.org/support/document ... 00-freepbx
Muy de vez en cuando hace llamadas salientes, pero normalmente antes de sonar el tono se cuelga, en los teléfonos destino aparecen las llamadas perdidas. Alguna que otra vez también me dice lo "all circuits are busy".
He probado bajar la Line-in-use-voltage a 20 como he leido por ahí, lo he probado todo. No hay manera.
Por favor si alguien me puede ayudar me quitará un enorme peso de encima, sueño con las extensiones y los trunks.
Se aceptan links a tutoriales comprobados.
El servidor asterisk es 192.168.2.100 y el spa3102 es el 192.168.2.60. El usuario desde el que intento llamar es la extension 101, son un softphone bria (tambien he probado el x-lite, me hace lo mismo).
La configuración del spa3102 es la que indica en éste tutorial http://www.freepbx.org/support/document ... 00-freepbx, con dialplan (S0)
Copio algunos resultados y configuraciones del servidor Asterisk:
[root@localhost asterisk]# cat var/log/asterisk/full
[Dec 18 17:10:02] VERBOSE[8278] logger.c: -- Executing [h@macro-dialout-trunk:1] Macro("SIP /101-095bca58", "hangupcall|") in new stack
[Dec 18 17:10:02] VERBOSE[8278] logger.c: -- Executing [s@macro-hangupcall:1] ResetCDR("SIP /101-095bca58", "w") in new stack
[Dec 18 17:10:02] DEBUG[8278] app_macro.c: Executed application: ResetCDR
[Dec 18 17:10:02] VERBOSE[8278] logger.c: -- Executing [s@macro-hangupcall:2] NoCDR("SIP/10 1-095bca58", "") in new stack
[Dec 18 17:10:02] DEBUG[8278] app_macro.c: Executed application: NoCDR
[Dec 18 17:10:02] VERBOSE[8278] logger.c: -- Executing [s@macro-hangupcall:3] GotoIf("SIP/1 01-095bca58", "1?skiprg") in new stack
[Dec 18 17:10:02] VERBOSE[8278] logger.c: -- Goto (macro-hangupcall,s,6)
[Dec 18 17:10:02] DEBUG[8278] app_macro.c: Executed application: GotoIf
[Dec 18 17:10:02] VERBOSE[8278] logger.c: -- Executing [s@macro-hangupcall:6] GotoIf("SIP/1 01-095bca58", "1?skipblkvm") in new stack
[Dec 18 17:10:02] VERBOSE[8278] logger.c: -- Goto (macro-hangupcall,s,9)
[Dec 18 17:10:02] DEBUG[8278] app_macro.c: Executed application: GotoIf
[Dec 18 17:10:02] VERBOSE[8278] logger.c: -- Executing [s@macro-hangupcall:9] GotoIf("SIP/1 01-095bca58", "1?theend") in new stack
[Dec 18 17:10:02] VERBOSE[8278] logger.c: -- Goto (macro-hangupcall,s,11)
[Dec 18 17:10:02] DEBUG[8278] app_macro.c: Executed application: GotoIf
[Dec 18 17:10:02] VERBOSE[8278] logger.c: -- Executing [s@macro-hangupcall:11] Hangup("SIP/ 101-095bca58", "") in new stack
[Dec 18 17:10:02] VERBOSE[8278] logger.c: == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/101-095bca58' in macro 'hangupcall'
[Dec 18 17:10:02] VERBOSE[8278] logger.c: == Spawn h extension (macro-dialout-trunk, h, 1) ex ited non-zero on 'SIP/101-095bca58'
[Dec 18 17:10:02] VERBOSE[8278] logger.c: == Spawn extension (macro-dialout-trunk, s, 19) exi ted non-zero on 'SIP/101-095bca58' in macro 'dialout-trunk'
[Dec 18 17:10:02] VERBOSE[8278] logger.c: == Spawn extension (from-internal, 123620798635, 4) exited non-zero on 'SIP/101-095bca58'
[root@localhost asterisk]#
[root@localhost asterisk]# cat sip_additional.conf
;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;
[1-pstn]
disallow=all
allow=ulaw
canreinvite=no
context=from-pstn
dtmfmode=rfc2833
host=192.168.2.60
incominglimit=1
nat=never
port=5061
qualify=yes
secret=xxxxxxxxxx
type=friend
username=1-pstn
[100]
type=friend
secret=xxxxxxxxxxx
qualify=yes
port=5061
pickupgroup=
nat=yes
mailbox=100@device
host=dynamic
dtmfmode=rfc2833
dial=SIP/100
context=from-internal
canreinvite=no
callgroup=
callerid=device
accountcode=
call-limit=50
[101]
type=friend
secret=xxxxxxx
qualify=yes
port=5061
pickupgroup=
nat=yes
mailbox=101@device
host=dynamic
dtmfmode=rfc2833
dial=SIP/101
context=from-internal
canreinvite=no
callgroup=
callerid=device
accountcode=
call-limit=50
gracias por adelantado
tengo un servidor Asterisk en la red local con un SPA3102 de voip gateway hacia la linea normal de telefónica.
Ésto es una locura, he probado varios tutoriales como:
http://www.forowifi.com/forum/showthread.php?p=133
http://blog.eduardopagan.com/blog/2008/06/
y con el que he llegado más lejos, que me permite recibir llamadas: http://www.freepbx.org/support/document ... 00-freepbx
Muy de vez en cuando hace llamadas salientes, pero normalmente antes de sonar el tono se cuelga, en los teléfonos destino aparecen las llamadas perdidas. Alguna que otra vez también me dice lo "all circuits are busy".
He probado bajar la Line-in-use-voltage a 20 como he leido por ahí, lo he probado todo. No hay manera.
Por favor si alguien me puede ayudar me quitará un enorme peso de encima, sueño con las extensiones y los trunks.
Se aceptan links a tutoriales comprobados.
El servidor asterisk es 192.168.2.100 y el spa3102 es el 192.168.2.60. El usuario desde el que intento llamar es la extension 101, son un softphone bria (tambien he probado el x-lite, me hace lo mismo).
La configuración del spa3102 es la que indica en éste tutorial http://www.freepbx.org/support/document ... 00-freepbx, con dialplan (S0)
Copio algunos resultados y configuraciones del servidor Asterisk:
[root@localhost asterisk]# cat var/log/asterisk/full
[Dec 18 17:10:02] VERBOSE[8278] logger.c: -- Executing [h@macro-dialout-trunk:1] Macro("SIP /101-095bca58", "hangupcall|") in new stack
[Dec 18 17:10:02] VERBOSE[8278] logger.c: -- Executing [s@macro-hangupcall:1] ResetCDR("SIP /101-095bca58", "w") in new stack
[Dec 18 17:10:02] DEBUG[8278] app_macro.c: Executed application: ResetCDR
[Dec 18 17:10:02] VERBOSE[8278] logger.c: -- Executing [s@macro-hangupcall:2] NoCDR("SIP/10 1-095bca58", "") in new stack
[Dec 18 17:10:02] DEBUG[8278] app_macro.c: Executed application: NoCDR
[Dec 18 17:10:02] VERBOSE[8278] logger.c: -- Executing [s@macro-hangupcall:3] GotoIf("SIP/1 01-095bca58", "1?skiprg") in new stack
[Dec 18 17:10:02] VERBOSE[8278] logger.c: -- Goto (macro-hangupcall,s,6)
[Dec 18 17:10:02] DEBUG[8278] app_macro.c: Executed application: GotoIf
[Dec 18 17:10:02] VERBOSE[8278] logger.c: -- Executing [s@macro-hangupcall:6] GotoIf("SIP/1 01-095bca58", "1?skipblkvm") in new stack
[Dec 18 17:10:02] VERBOSE[8278] logger.c: -- Goto (macro-hangupcall,s,9)
[Dec 18 17:10:02] DEBUG[8278] app_macro.c: Executed application: GotoIf
[Dec 18 17:10:02] VERBOSE[8278] logger.c: -- Executing [s@macro-hangupcall:9] GotoIf("SIP/1 01-095bca58", "1?theend") in new stack
[Dec 18 17:10:02] VERBOSE[8278] logger.c: -- Goto (macro-hangupcall,s,11)
[Dec 18 17:10:02] DEBUG[8278] app_macro.c: Executed application: GotoIf
[Dec 18 17:10:02] VERBOSE[8278] logger.c: -- Executing [s@macro-hangupcall:11] Hangup("SIP/ 101-095bca58", "") in new stack
[Dec 18 17:10:02] VERBOSE[8278] logger.c: == Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/101-095bca58' in macro 'hangupcall'
[Dec 18 17:10:02] VERBOSE[8278] logger.c: == Spawn h extension (macro-dialout-trunk, h, 1) ex ited non-zero on 'SIP/101-095bca58'
[Dec 18 17:10:02] VERBOSE[8278] logger.c: == Spawn extension (macro-dialout-trunk, s, 19) exi ted non-zero on 'SIP/101-095bca58' in macro 'dialout-trunk'
[Dec 18 17:10:02] VERBOSE[8278] logger.c: == Spawn extension (from-internal, 123620798635, 4) exited non-zero on 'SIP/101-095bca58'
[root@localhost asterisk]#
[root@localhost asterisk]# cat sip_additional.conf
;--------------------------------------------------------------------------------;
; Do NOT edit this file as it is auto-generated by FreePBX. All modifications to ;
; this file must be done via the web gui. There are alternative files to make ;
; custom modifications, details at: http://freepbx.org/configuration_files ;
;--------------------------------------------------------------------------------;
;
[1-pstn]
disallow=all
allow=ulaw
canreinvite=no
context=from-pstn
dtmfmode=rfc2833
host=192.168.2.60
incominglimit=1
nat=never
port=5061
qualify=yes
secret=xxxxxxxxxx
type=friend
username=1-pstn
[100]
type=friend
secret=xxxxxxxxxxx
qualify=yes
port=5061
pickupgroup=
nat=yes
mailbox=100@device
host=dynamic
dtmfmode=rfc2833
dial=SIP/100
context=from-internal
canreinvite=no
callgroup=
callerid=device
accountcode=
call-limit=50
[101]
type=friend
secret=xxxxxxx
qualify=yes
port=5061
pickupgroup=
nat=yes
mailbox=101@device
host=dynamic
dtmfmode=rfc2833
dial=SIP/101
context=from-internal
canreinvite=no
callgroup=
callerid=device
accountcode=
call-limit=50
gracias por adelantado

