[Asterisk-Users] SIP registration between *'s
Jamie Carl
geek at jazz-inc.net
Fri Sep 19 03:12:55 MST 2003
Why?
Use IAX2, it is soooo much better...
J
On Fri, 19 Sep 2003 11:54:23 +0200
"Xisco" <xmateu at dtpspain.com> wrote:
>Hi everybody,
>
>I'm trying to SIP register between two asterisk, each one
>have a Public IP. Asterisk told me that Unathorizae
>
>In * one sip.conf
>
> register =>usuario1:pass1@<public_ip_2>
>
>In * two sip.conf
>
> [usuario1]
> type=friend
> username=usuario1
> secret=pass1
> host=<public_ip_1>
> dtmfmode=inband
>
>Logs in * are the followings
>
>In * one logs:
>
> Sip read: >
> SIP/2.0 401 Unauthorized
> Via: SIP/2.0/UDP
><public_ip_1>:5060;branch=z9hG4bK488fe503;received=<public_ip_1>
> From: <sip:usuario1@<public_ip_2>>;tag=as504a35d0
> To: <sip:usuario1@<public_ip_2>>;tag=as2a0e47ce
> Call-ID:
>77064d8f2fdfe4746d509dc2488fe503@<public_ip_1>
> CSeq: 103 REGISTER
> User-Agent: Asterisk PBX
> Contact: <sip:usuario1@<public_ip_2>>
> Content-Length: 0
>
>
> 9 headers, 0 lines
> 11 headers, 0 lines
> Reliably Transmitting:
> REGISTER sip:<public_ip_2>SIP/2.0
> Via: SIP/2.0/UDP
><public_ip_1>:5060;branch=z9hG4bK59f913b2
> From: <sip:usuario1@<public_ip_2>>;tag=as4f879ac7
> To: <sip:usuario1@<public_ip_2>>
> Call-ID:
>77064d8f2fdfe4746d509dc2488fe503@<public_ip_1>
> CSeq: 104 REGISTER
> User-Agent: Asterisk PBX
> Expires: 120
> Contact: <sip:s@<public_ip_1>>
> Event: registration
> Content-length: 0
>
> (no NAT) to<public_ip_2>:5060
> Sip read: >
> SIP/2.0 401 Unauthorized
> Via: SIP/2.0/UDP
><public_ip_1>:5060;branch=z9hG4bK59f913b2;received=<public_ip_1>
> From: <sip:usuario1@<public_ip_2>>;tag=as4f879ac7
> To: <sip:usuario1@<public_ip_2>>;tag=as13445743
> Call-ID:
>77064d8f2fdfe4746d509dc2488fe503@<public_ip_1>
> CSeq: 104 REGISTER
> User-Agent: Asterisk PBX
> Contact: <sip:usuario1@<public_ip_2>>
> Content-Length: 0
>
>In * two logs:
>
> NOTICE[81926]: File chan_sip.c, Line 4816
>(handle_request): Registration from
>'<sip:usuario1@<public_ip_2>>' failed for '<public_ip_1>'
>
> Sip read:
> REGISTER sip:<public_ip_2>SIP/2.0
> Via: SIP/2.0/UDP
><public_ip_1>:5060;branch=z9hG4bK0f194106
> From: <sip:usuario1@<public_ip_2>>;tag=as35957f60
> To: <sip:usuario1@<public_ip_2>>
> Call-ID:
>77064d8f2fdfe4746d509dc2488fe503@<public_ip_1>
> CSeq: 119 REGISTER
> User-Agent: Asterisk PBX
> Expires: 120
> Contact: <sip:s@<public_ip_1>>
> Event: registration
> Content-length: 0
>
>
> 11 headers, 0 lines
> Using latest request as basis request
> Sending to <public_ip_1>: 5060 (NAT)
> Transmitting (NAT):
> SIP/2.0 401 Unauthorized
> Via: SIP/2.0/UDP
><public_ip_1>:5060;branch=z9hG4bK0f194106;received=<public_ip_1>
> From: <sip:usuario1@<public_ip_2>>;tag=as35957f60
> To: <sip:usuario1@<public_ip_2>>;tag=as1538b8a6
> Call-ID:
>77064d8f2fdfe4746d509dc2488fe503@<public_ip_1>
> CSeq: 119 REGISTER
> User-Agent: Asterisk PBX
> Contact: <sip:usuario1@<public_ip_2>>
> Content-Length: 0
>Any idea to fix the problem???? Any special configuration
>in sip.conf????
>
>Thanks a lot.
>
Regards,
Jamie Carl
Jazz Inc.
Email: me at jazz-inc.net
Web: www.jazz-inc.net
Phone: +61-414-365-466
Jabber: jazz at netmindz.net
More information about the asterisk-users
mailing list