Julian, The uac_registrant process to handle the registration to the remote proxy and handling the 407 response on INVITE are unrelated operations. You need to catch the 407 in a failure_route and use the uac_auth() <http://www.opensips.org/html/docs/modules/2.1.x/uac.html#id293810> function to build the authentication header the 407 is looking for. I've found it to be finicky, particularly with respect to realm. Look at the uac_auth <http://www.opensips.org/html/docs/modules/2.1.x/uac_auth.html> module to set the credentials.
Alternatively, you could use the b2b modules to answer the 407. If you're already using B2BUA-based topology hiding, this could make sense for you. The b2b_entities documentation page says, "The module is able to respond to authentication challenges if the uac_auth module is loaded first. The list of credentials for b2b authentication is also provided by the uac_auth module." If you're doing lots of proxy-esque operations already, such as dialog-based operations or accounting, then this most likely does not make sense for you. Stick with the first option. - Jeff On Tue, Jun 23, 2015 at 12:29 PM, Julian Kay <[email protected]> wrote: > Hi; > > > > I'm not looking for step by step instructions, but the invite is sent to > the remote proxy of the sip trunk, it returns "407 proxy authentication > required" > > I'm using OpensIPS 1.11 and the module UAC_Registrant to register with the > sip trunk, I am able to receive calls... but the sending is stumping me. > > > > > > Thx > > Juls > > > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Julian Kay > *Sent:* Sunday, June 21, 2015 1:24 AM > *To:* 'OpenSIPS users mailling list' > *Subject:* [OpenSIPS-Users] outbound routing > > > > Hi; > > > > I've been looking for a while, but I haven't been able to find too much > info on routing outbound called through a SIP Trunk... can someone point me > to where I can find info / examples / tutorials / etc. > > > > I would really appreciate some direction, and sorry if it's an elementary > grade question!! > > > > Thx > > Juls > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
