[asterisk-users] Asterisk refuses INVITE (401) and I don't know why

Jonas Kellens jonas.kellens at telenet.be
Tue Nov 22 10:39:03 CST 2011


On 11/22/2011 05:31 PM, Alex Vishnev wrote:
> Your registration should have also have the flow
>
> PEER                 ASTERISK
> REGISTER------->
> <----------------------401
> REGISTER(nonce) ->
> <------------------------200OK
>
> Then the server controls the life of the registration and 200 Expires 
> Header gives you this timeout. If the invite is sent within that 
> window, then Asterisk should not challenge anymore. If Invite is 
> challenged and the peer responds with the correctly calculated NONCE, 
> domain and other Auth params, then something is wrong with your 
> Authentication. I suggest trapping the traffic with Ethereal or any 
> other packet capture programs and examining that carefully from the 
> start of the session (i.e. register) to the invite. I would also check 
> where the 401 is coming from (i.e. IP address).
>
> Hope that helps
>
> Alex


I've already captured with Wireshark, but what to do with it if I don't 
know what I'm looking for ??

Registration goes without problem, but every INVITE is answered with a 
401-Unauthorized.

Like I already said : there is no problem with Avaya, Panasonic and 
Alcatel-Lucent.
The only difference I see between an INVITE from Avaya and the INVITE 
from Aastra PBX is the presence of the SIP-header : "P-Behind-Gsi: 
192.168.6.1".

Could this header mess up Asterisk ?

Jonas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111122/3287fb40/attachment.htm>


More information about the asterisk-users mailing list