On 7/14/06, Luca Colantonio <[EMAIL PROTECTED]> wrote:
> hi I have a doubt about the function nta_agent_create.
>  if i write:
>  context->c_agent =
>  nta_agent_create(context->c_root,
>  URL_STRING_MAKE(o_bind),
>  process_request,context,
>  TAG_END());
> it should create an nta agent that binds it self to the address specified by
> o_bind.

That is right.

>  what i think it's it should reject SIP Messages that are not adressed to
> the URI written in o_bind.

Currently, we do no checks. This is because 1) nta might be used by a
proxy, redirect server or UA supporting multiple endpoints where it is
perfectly normal and 2) it is not so easy to check. Particulartly,
some SIP clients might remove transport-specific parameters (including
port number) from the request URI before sending it.

So, checking the URI is left to the application.

>  but the callback function is called even if the TO header has a different
> URI.

"To" header just contains the original recipient, the intermediate
proxies and other elements might change the request URI but leave "To"
to its original value.

-- 
Pekka.Pessi mail at nokia.com

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to