Thank you for that answer. That is what I have done and it 'quite' works. 'Quite' because I have encounter a strange behaviour :
- OpenSBC behave as a B2BUA with Upper registration for domain 'd', it consider 'd' as a trusted domain and add n 'opensbc route' declared as
sip:@d sip::5060
- my sipphone register to domain 'd' and it is declared to use opensbc as proxy : it works. Every REGISTER requests goes though openSBC and sipphone get authenticated.
- Opensbc routes each call coming from Portasip to the sipphone perfectly. Media proxy works fine. Great

- for calls coming from my sipphone :
SIPPhone issue an INVITE
this INVITE is forwarded to PortaSIP following the opensbc route
PortaSIP answers an 'SIP/2.0 401 Unauthorized' because no authentication information are available in the request
Here is the problem : O
PENSBC TRANSLATE IT INTO A 'SIP/2.0 407 Proxy Authentication Required'. As a result, my sipphone authenticate with a 'Proxy-Authorization:' header.
This answers is forwarded to my PortaSIP which is waiting for a 'Authorization:' header because it issued a 401 error code. As a result, PortaSIP does not authenticate my phone and call can not be established.
Do you think that it is normal to concert 401 responses to 407 responses when openSBC is not used as a proxy but as a B2BUA ? I do not think so but perhaps am I missing some other point ?
In fact, that conversion make it impossible for me to use opensbc as I wish. do you think that it would be possible to take my problem into account and at least offer the choice to convert or not 401 t0 407, depending of the targetted use for opensbc ?
thanks in advance,
best regards,
Cedric
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
opensipstack-devel mailing list
opensipstack-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensipstack-devel