Hi Daniel,


Thanks for the response.


My problem appears to be kamailio proxying the 407 response to the originating SIP trunk, which I appreciate it will do as its a proxy.


I presume if I want to absorb the 407 and handle only on the kamailio proxy which is the last point to the SIP carrier, this is more B2BUA, as I would normally have FreeSWITCH/ASterisk registering with the outbound sip provider and proxy the request via kamailio, where as in this case I am registering direct from kamailio so making it a little more complex in terms of handling the 407.


Jon 




From: sr-users <sr-users-bounces@lists.kamailio.org> on behalf of Daniel Tryba <d.tryba@pocos.nl>
Sent: 13 September 2017 15:44
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] kamailio 4.4 registering to a SIP trunk provider using UAC then outbound routing to it.
 
On Wed, Sep 13, 2017 at 03:33:19PM +0000, Jonathan Hunter wrote:
> I have a SIP provider who only accept registrations from users, so I
> have registered my kamailio Server with them using the uac module.
>
> It is registered fine, and I can get inbound calls on the trunk.
>
> My query is the best way to send outbound calls out via the registered
> sip gateway?

Normally there is no correlation between REGISTERs (to tell an other
server where to send incoming INVITEs) and outgoing INVITEs. So just do
whatever you normally do and be prepared to respond to a challend (with
auc_auth).


_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users