On 9/14/06, Henrik Nordstrom <[EMAIL PROTECTED]> wrote: > > Just now the contact is selected based on the From header (when > > sending INVITE) or To header (when responding to INVITE). If the > > From/To URI matches with the AoR URI used with nua_register(), the > > contact from that registration is used. Or so it is supposed to work. > > AoR? Can you expand that thanks..
> Would think you used the SIPTAG_FROM URI from nua_register to match the > user. What's AoR? Sorry. Address-of-Record. It is actually the URI in the To header of REGISTER request. The idea is that you have two different kinds of URIs, Contact URIs owned by a user-agent and AoR URIs, which are URIs owned by a proxy. When you register, the registrar binds a contact URI with AoR. While the registration is valid, proxy forwards the incoming request which have AoR as request-URI to the registered contact URI. Or to be more precise, one or more of the registered contact URIs selected by proxy's internal routing logic. Which makes them one of the most brain-damaged inventions in SIP. The From URI in REGISTER is usually just ignored by proxy, or it is checked that it is same as the To URI. > Hmm.. so what's the need to NUTAG_IDENTITY then if NUA can automaticaly > deduce the correct local contact details from existing nua_register > calls? You may want to make anonymous calls (using From: <sip:[EMAIL PROTECTED]>). Or an incoming calls might have got redirected, so the To header contains someone else's URI. >From and To URI are about as reliable indicator about the real sender and destination as in e-mail. You could as well ignore them. -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel