[OpenSIPS-Users] outbound routing

Jeff Pyle jeff.pyle at fidelityvoice.com
Wed Jun 24 03:55:50 CEST 2015


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 <juliank at vazycomm.com> 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:* users-bounces at lists.opensips.org [mailto:
> users-bounces at lists.opensips.org] *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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150623/e2ed7d87/attachment.htm>


More information about the Users mailing list