Hi list,

I am just dig in Sofia code, very nice stuff here !

I would like to have some kind of design advices for a SIP registrar. I
have currently base my code on nua/test_proxy.c as playground test (so
using NTA). This code handle SIP REGISTER locally according to its own
auth_db. In my case I must perform kind of register relay auth with
remote SIP gateway/registrar. First stage is done localy as present in
test_proxy.c, if auth success, instead of reply SIP_200_OK code reply
SIP_100_TRYING. So SIP_100_TRYING means that local auth is successfull
so jump next stage and perform remote SIP gateway md5-auth.

So my question is here, what is the best design to adopt with sofia
framework to implement this relay auth. AFAIK, we have 2 alternatives :

1. On SIP_100_TRYING reception generate a nta_outgoing_mcreate(..) in
   sip_proxy_request(...) and create sip message incrementaly/manually.
   When remote auth proxy succeed then reply SIP_200_OK to register.

2. Use a nua agent to perform md5-auth for us and generate SIP_200_OK
   on success.


Best regards,
Alexandre



-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to