[ previous ] [ next ] [ threads ]
 To :  Paul Chitescu <paulc@v...>
 From :  Maciek Kaminski <maciejka@t...>
 Subject :  Re: [yate] no authenticated BYEs
 Date :  Wed, 25 Mar 2009 20:11:24 +0100
Paul Chitescu wrote:
> Hi!

Hi,
Thanks for response.

> Can you check if the in_line parameter is set in the call.preroute / 
> call.route message?
> 
> In incoming calls the registered line is detected by a host+port+URI (user 
> part only) match. If that fails the call will not know it was made from a 
> server we have credentials for.

It seems that username from "From" header is used to find line. 
Shouldn't it be username from "To" header? In context of incoming call 
"From" username seems unrelated to line used.

Alas It does not solve my problem as my provider adds zeros to "To" header.

Another idea is to allow to set the line during routing stage. Here is 
modification proposal:

bool YateSIPConnection::callRouted(Message& msg)
{
     //set line from call.route
     if(!m_line && msg.getParam("in_line")) {
       YateSIPLine* line = plugin.findLine(msg.getParam("in_line"));
       if(line) {
         m_line = *line;
       }
     }
...

Should I send a patch?

mk