[asterisk-users] sip peering between 2 asterisk

Nhadie nhadie at tbgi.net.ph
Mon Aug 25 08:06:51 CDT 2008


Hi,

I have 2 asterisk on 2 separate location:

sip.conf of asterisk-1

[asterisk-2]
type=peer
host 10.20.30.2
context=from-remote-asterisk
insecure=port,invite

sip.conf of asterisk-2

[asterisk-1]
type=peer
host 10.20.30.1
context=from-remote-asterisk
insecure=port,invite

extensions.conf on asterisk-1

[from-remote-asterisk]
exten => _1XXXXX,1,Dial(SIP/${EXTEN})
exten => _1XXXXX,n,Hangup

extensions.conf on asterisk-2

[from-remote-asterisk]
exten => _1XXXXX,1,Dial(SIP/${EXTEN})
exten => _1XXXXX,n,Hangup


when i am registered on asterisk-1 i called an extension on asterisk-2, 
this is what happens;

ip phone --INVITE--> asterisk-1
asterisk-1 --407 Proxy Authentication Required--> ip phone
ip phone --ACK--> asterisk-1
ip phone --INVITE--> asterisk-1
asterisk-1 --Trying--> ip phone

since the extension is on asterisk-2, asterisk -1 will will send invite 
to asterisk-2

asterisk-1 --INVIITE--> asterisk-2
asterisk-2 --407 Proxy Authentication Required--> asterisk-1
asterisk-1 --ACK--> asterisk-2
asterisk-1 --Forbidden--> ip phone (this part i don't get, after sending 
ACK to asterisk-2 it suddenly send Forbidden to IP phone)

it seems like, asterisk-2 still trying to authenticate the IP phone even 
though it was already authenticated on asterisk-1.

on asterisk-1 this is a NOTICE on the console:

[Aug 25 21:00:30]     -- Called 100200 at asterisk-2
[Aug 25 21:00:30] NOTICE[840]: chan_sip.c:12322 handle_response_invite: 
Failed to authenticate on INVITE

what could i be doing wrong? having insecure=port,invite i think should 
not authenticate calls from the other asterisk anymore, at least that's 
how i understand it.

regards,
nhadie






More information about the asterisk-users mailing list