Hallo,
ich versuche zwei Asterisk miteinander zu verbinden.
Ich gehe nach diesem Beispiel vor:
http://lists.digium.com/pipermail/asterisk-users/2005-May/107436.html
Ich habe jeweils gegenseitig das eingerichtet:
Mit sip show registry kann ich bei beiden sehen das alles ok ist.
Hier die Fehlermeldung die ich bekomme wenn ich von
[email protected] (Obelix) nach [email protected] (asterisk) anrufe:
log Obelix
Connected to Asterisk CVS-05/31/04-22:00:51 currently running on asterisk (pid = 452)
May 16 11:42:02 ERROR[65552]: cdr_csv.c:219 csv_log: Unable to re-open master file /var/log/asterisk//cdr-csv//Master.csv
May 16 11:42:10 NOTICE[5126]: chan_sip.c:5066 handle_response: Failed to authenticate on INVITE to '"16" <sip:[email protected]>;tag=as7a9c2c8e'
May 16 11:42:31 ERROR[67600]: cdr_csv.c:219 csv_log: Unable to re-open master file /var/log/asterisk//cdr-csv//Master.csv
Log Asterix:
May 18 01:39:28 NOTICE[33808]: indications.c:394 ast_unregister_indication_country: Removed default indication country 'us'
May 18 01:39:53 NOTICE[5126]: chan_sip.c:5344 handle_request: Failed to authenticate user "16" <sip:[email protected]>;tag=as1f5da3de
May 18 01:39:54 NOTICE[5126]: chan_sip.c:5344 handle_request: Failed to authenticate user "16" <sip:[email protected]>;tag=as1f5da3de
May 18 01:40:13 NOTICE[5126]: chan_sip.c:5344 handle_request: Failed to authenticate user "16" <sip:[email protected]>;tag=as7a9c2c8e
May 18 01:40:14 NOTICE[5126]: chan_sip.c:5344 handle_request: Failed to authenticate user "16" <sip:[email protected]>;tag=as7a9c2c8e
Nebenbei:
Wenn ich eine iax2-Verbindung (ohne register) mache funktioniert es zwar aber erst nach 3-4 viermal anwählen kommt erst eine verstehbarer Sound an.
Deshalb bin ich auf die SIP-Variante gewechselt.
Gebt mir bitte einen Tip.
Danke
Joachim
ich versuche zwei Asterisk miteinander zu verbinden.
Ich gehe nach diesem Beispiel vor:
http://lists.digium.com/pipermail/asterisk-users/2005-May/107436.html
Code:
Server2 (name obelix) should register at server1 (name asterix)
1. Enter in asterix: /etc/sip.conf - Server 1
[obelix]
;secret=
username=obelix
from_user=obelix
type=friend
context=default
host=dynamic
nat=no
2. in obelix: /etc/sip.conf enter
the following in the section - server 2
[general]
register => obelix at asterix
3. in obelix: To forward a call to asterix
simply use the following: - Server 2
exten => s,1,Dial(SIP/${user}@asterix,30,Ttr)
(*ich gehe davon aus dass mit asterisk hier ein Hostname gemeint ist.)
Ich habe jeweils gegenseitig das eingerichtet:
Mit sip show registry kann ich bei beiden sehen das alles ok ist.
Hier die Fehlermeldung die ich bekomme wenn ich von
[email protected] (Obelix) nach [email protected] (asterisk) anrufe:
log Obelix
Connected to Asterisk CVS-05/31/04-22:00:51 currently running on asterisk (pid = 452)
May 16 11:42:02 ERROR[65552]: cdr_csv.c:219 csv_log: Unable to re-open master file /var/log/asterisk//cdr-csv//Master.csv
May 16 11:42:10 NOTICE[5126]: chan_sip.c:5066 handle_response: Failed to authenticate on INVITE to '"16" <sip:[email protected]>;tag=as7a9c2c8e'
May 16 11:42:31 ERROR[67600]: cdr_csv.c:219 csv_log: Unable to re-open master file /var/log/asterisk//cdr-csv//Master.csv
Log Asterix:
May 18 01:39:28 NOTICE[33808]: indications.c:394 ast_unregister_indication_country: Removed default indication country 'us'
May 18 01:39:53 NOTICE[5126]: chan_sip.c:5344 handle_request: Failed to authenticate user "16" <sip:[email protected]>;tag=as1f5da3de
May 18 01:39:54 NOTICE[5126]: chan_sip.c:5344 handle_request: Failed to authenticate user "16" <sip:[email protected]>;tag=as1f5da3de
May 18 01:40:13 NOTICE[5126]: chan_sip.c:5344 handle_request: Failed to authenticate user "16" <sip:[email protected]>;tag=as7a9c2c8e
May 18 01:40:14 NOTICE[5126]: chan_sip.c:5344 handle_request: Failed to authenticate user "16" <sip:[email protected]>;tag=as7a9c2c8e
Nebenbei:
Wenn ich eine iax2-Verbindung (ohne register) mache funktioniert es zwar aber erst nach 3-4 viermal anwählen kommt erst eine verstehbarer Sound an.
Deshalb bin ich auf die SIP-Variante gewechselt.
Gebt mir bitte einen Tip.
Danke
Joachim