On 10/25/06, Borislav Pechenyashki <[EMAIL PROTECTED]> wrote:
> I is it possible to register a couple of accounts using nua and then receive 
> incoming calls for all the registered account (I need not only to receive the 
> incoming calls, but also to know for which of the regstered accounts is the 
> incoming call). All advices are appreciated

Currently there is little support for different identities. What you
can do is to use unique NUTAG_M_USERNAME(id) with each registration.
The stack will use its IP address and port in the Contact URI sent in
REGISTER requests, but the URI will contain the id in the username
field. The incoming initial requests will contain the Contact URI as
their request URI. You can then find the account by using the request
URI sip->sip_request->rq_url and the username will in url_user field.

Colin reported problems with From and Contact headers, I'd recommend
you to include the SIP_FROM() or SIP_FROM_STR() tag as well as correct
NUTAG_M_USERNAME() as a parameter to nua_handle() when you create the
handle for outgoing calls and other requests.

-- 
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

Reply via email to