On Thu, 2007-05-10 at 13:03 +0200, Roy Sigurd Karlsbakk wrote:
> Den 10.5.2007 kl. 12:48 skrev CtRiX:
> 
> > Roy Sigurd Karlsbakk wrote:
> >> hi all
> >>
> >> there's something terribly wrong with chan_sip. some clients fail to
> >> authenticate on INVITE after registering, and the debug logs show
> >>
> >> May 10 13:59:51 DEBUG[1092139360] res_config_mysql.c: MySQL RealTime:
> >> Retrieve SQL: SELECT * FROM sipfriends WHERE ipaddr = '80.239.107.70'
> >> AND port = '7873'
> >>
> >> now, why on earth would chan_sip lookup a client from its IP? the
> >> peer name is given in the INVITE! this bug is a bastard, and although
> >> it did help a little when ctrix added the port, it's still not good.
> >>
> > It fails because the nat masquerading that host is broken and changes
> > the port.
> > Or the nat router has been rebooted and the phone hasn't re-registered
> > (so a new port is assigned).
> 
> Now, why does it not use the name? And why does this happen with CW  
> and not *?

Because you haven't written a patch yet :-) ?

Look at function realtime_peer in channels/chan_sip.c at approximately
line 2388.

Damjan


_______________________________________________
Callweaver-dev mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-dev

Reply via email to