Page 1 of 1

[SOLVED] SIP trunk : error wrong password

PostPosted: Mon Apr 06, 2009 9:21 am
by willbordoni
As mentionned in the title, I want to trunk my 2 asterisk servers but i get this error on the local server:
Code: Select all
 -- Executing Dial("SIP/cc100-09cf45e8", "sip/trunk-up/301|20|to") in new stack
    -- Called trunk-up/301
Apr  6 05:11:32 WARNING[2101]: chan_sip.c:9890 handle_response_invite: Forbidden - wrong password on authentication for INVITE to '"cc100" <sip:cc100@192.168.1.2>;tag=as25cf789c'
    -- SIP/trunk-up-09cf9b28 is circuit-busy


and this one on the remote server :
Code: Select all
 NOTICE[2313]: chan_sip.c:10704 handle_request_invite: Failed to authenticate user "cc100" <sip:cc100@192.168.1.2>;tag=as25cf789c


I think my configuration is OK, here it is :
sip.conf on local server:
Code: Select all
[trunk-up]
type=peer
host=192.168.1.99
context=default
username=trunk-down
secret=test


sip.conf on remote server:
Code: Select all
[trunk-down]
type=peer
host=192.168.1.2
username=trunk-up
context=default
secret=test


extensions.conf on local server :
Code: Select all
exten => _3[0-5]X,1,Dial(sip/trunk-up/${EXTEN},20,to)


extensions.conf on remote server :
Code: Select all
exten => _1[0-5]X,1,Dial(sip/trunk-down/${EXTEN},20,to)


phone 100 is on local server, phone 300 is on remote server
Of course both phones are on the 2 sip.conf

When make a call from 100 to 300, I get the error above.

Please help.

PostPosted: Tue Apr 07, 2009 2:41 am
by willbordoni
Ok i solved the problem on my own.

My extensions.conf was bad.
I added the prefix "cc" two times instead of one (one inside the trunk, and one after beeing received in the other server)

[SOLVED]