hissein
17/02/2015, 16h55
Bonjour a la communauté
J’essaie de faire un trunk entre deux serveurs asterisk ,mais j'ai ce message .j'ai passé la journée a essayer de trouver une solution mais sans succès .
jespere que le probleme a été déjà résolu .
mes deux machine tourne sous ubuntu 14.04 LTS
fichier sip.conf de la machine A
[general]
context=public ; Default context for incoming calls. Defaults to 'default'
;allowguest=no ; Allow or reject guest calls (default is yes)
register => serverabbo:passer@192.168.1.101
canreinvite=no
...
[hissein]
username=hissein
type=friend
secret=passer
context=travail
host=dynamic
[serverabbo]
username=serverabbo
type=friend
secret=passer
insecure=port,invite
allow=ulow
canreinvite=no
host=dynamic
context=work
fichier extensions.conf de la machine A
[travail]
exten => 7001,1,Dial(SIP/hissein,20,tr)
exten => _6XXX,1,Dial(SIP/serverabbo/${EXTEN},30,tr)
fichier sip.conf de la machine B
[general]
register => serverh:passer@192.168.1.107
context=public
bindport=5060 ;;;;;
bindaddr=0.0.0.0 ;;;; ; Default context for incoming calls. Defaults to 'default'
;allowguest=no ; Allow or reject guest calls (default is yes)
canreinvite=no
[abbo]
username=abbo
type=friend
secret=passer
context=work
host=dynamic
[serverh]
username=serverh
type=friend
secret=passer
insecure=port,invite
allow=ulow
canreinvite=no
host=dynamic
context=travail
fichier extensions.conf de la machine B
[work]
exten => 6002,1,Dial(SIP/abbo,20)
exten => _7XXX,1,Dial(SIP/serverh/${EXTEN},30,tr)
message d'erreur sur la machine A
Reloading unistim.conf...
== Parsing '/etc/asterisk/unistim.conf': Found
[Feb 17 15:12:22] WARNING[6981]: chan_sip.c:23355 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'serverabbo' to '192.168.1.116'
message derreur sur la machine B
[Feb 17 15:49:25] WARNING[4145]: chan_sip.c:23355 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'serverh' to '192.168.1.107'
machine A
sip show registry
Host dnsmgr Username Refresh State Reg.Time
192.168.1.116:5060 N serverabbo 120 No Authentication
1 SIP registrations.
machine B
sip show registry
Host dnsmgr Username Refresh State Reg.Time
192.168.1.107:5060 N serverh 120 No Authentication
1 SIP registrations.
J’essaie de faire un trunk entre deux serveurs asterisk ,mais j'ai ce message .j'ai passé la journée a essayer de trouver une solution mais sans succès .
jespere que le probleme a été déjà résolu .
mes deux machine tourne sous ubuntu 14.04 LTS
fichier sip.conf de la machine A
[general]
context=public ; Default context for incoming calls. Defaults to 'default'
;allowguest=no ; Allow or reject guest calls (default is yes)
register => serverabbo:passer@192.168.1.101
canreinvite=no
...
[hissein]
username=hissein
type=friend
secret=passer
context=travail
host=dynamic
[serverabbo]
username=serverabbo
type=friend
secret=passer
insecure=port,invite
allow=ulow
canreinvite=no
host=dynamic
context=work
fichier extensions.conf de la machine A
[travail]
exten => 7001,1,Dial(SIP/hissein,20,tr)
exten => _6XXX,1,Dial(SIP/serverabbo/${EXTEN},30,tr)
fichier sip.conf de la machine B
[general]
register => serverh:passer@192.168.1.107
context=public
bindport=5060 ;;;;;
bindaddr=0.0.0.0 ;;;; ; Default context for incoming calls. Defaults to 'default'
;allowguest=no ; Allow or reject guest calls (default is yes)
canreinvite=no
[abbo]
username=abbo
type=friend
secret=passer
context=work
host=dynamic
[serverh]
username=serverh
type=friend
secret=passer
insecure=port,invite
allow=ulow
canreinvite=no
host=dynamic
context=travail
fichier extensions.conf de la machine B
[work]
exten => 6002,1,Dial(SIP/abbo,20)
exten => _7XXX,1,Dial(SIP/serverh/${EXTEN},30,tr)
message d'erreur sur la machine A
Reloading unistim.conf...
== Parsing '/etc/asterisk/unistim.conf': Found
[Feb 17 15:12:22] WARNING[6981]: chan_sip.c:23355 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'serverabbo' to '192.168.1.116'
message derreur sur la machine B
[Feb 17 15:49:25] WARNING[4145]: chan_sip.c:23355 handle_response_register: Forbidden - wrong password on authentication for REGISTER for 'serverh' to '192.168.1.107'
machine A
sip show registry
Host dnsmgr Username Refresh State Reg.Time
192.168.1.116:5060 N serverabbo 120 No Authentication
1 SIP registrations.
machine B
sip show registry
Host dnsmgr Username Refresh State Reg.Time
192.168.1.107:5060 N serverh 120 No Authentication
1 SIP registrations.