I'm not sure why you would immediately jump to the conclusion that you
need to rewrite the To header. 

This is just a normal 407 challenge. The first and most straightforward
interpretation is that the provider expects you to provide digest
authentication credentials, or that they don't have your IP in their ACL
and are falling back to a digest challenge as a default behaviour for
that reason. 

On Tue, Apr 25, 2017 at 08:29:47AM +0200, [email protected] wrote:

> Hi,
> after Kamailio did a correct (INVITE sip:[email protected] SIP/2.0 looks
> good to me), to our Sip-Provider we get:
> "SIP/2.0 407 Proxy Authentication Required."
> 
> Could it be that i have to rewrite also the following line:
> To: <sip:[email protected]>.
> 
> To: <sip:089321608@provider_from_dispatcher_table>.
> 
> and how can i do that?
> 
> Until now i use just ds_select_domain("2", "4")
> 
> Thanks,
> Georg
> 
> 
> 
> U 130.255.76.95:5060 -> 5.9.87.18:5060
> INVITE sip:[email protected] SIP/2.0.
> Record-Route: <sip:130.255.76.95;lr;ftag=Wl3D6P2TkS5KuAGzo-9Z1Ezqy7NMRvco>.
> Via: SIP/2.0/UDP
> 130.255.76.95;branch=z9hG4bK7828.51fb03ff0ac02b01b2ba2bb73c1de051.0.
> Via: SIP/2.0/UDP
> 100.99.24.192:53230;received=91.186.0.208;rport=39126;branch=z9hG4bKPjnlNeJmB2Id2F2Tmypfaf5sdh47ir3wg8.
> Max-Forwards: 69.
> From: "4321"
> <sip:[email protected]>;tag=Wl3D6P2TkS5KuAGzo-9Z1Ezqy7NMRvco.
> To: <sip:[email protected]>.
> Contact: <sip:[email protected]:39126;ob>.
> Call-ID: -rgvfObl0VN39nEiZTf55yxxn8FemD52.
> CSeq: 5545 INVITE.
> Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY,
> REFER, MESSAGE, OPTIONS.
> Supported: replaces, 100rel, timer, norefersub.
> Session-Expires: 1800.
> Min-SE: 90.
> User-Agent: CSipSimple_acer_z520-19/r2457.
> Content-Type: application/sdp.
> Content-Length:   366.
> 
> U 5.9.87.18:5060 -> 130.255.76.95:5060
> SIP/2.0 100 Trying.
> Via: SIP/2.0/UDP
> 130.255.76.95;branch=z9hG4bK7828.51fb03ff0ac02b01b2ba2bb73c1de051.0.
> Via: SIP/2.0/UDP
> 100.99.24.192:53230;received=91.186.0.208;rport=39126;branch=z9hG4bKPjnlNeJmB2Id2F2Tmypfaf5sdh47ir3wg8.
> Record-Route: <sip:130.255.76.95;lr;ftag=Wl3D6P2TkS5KuAGzo-9Z1Ezqy7NMRvco>.
> From: "4321"
> <sip:[email protected]>;tag=Wl3D6P2TkS5KuAGzo-9Z1Ezqy7NMRvco.
> To: <sip:[email protected]>.
> Call-ID: -rgvfObl0VN39nEiZTf55yxxn8FemD52.
> CSeq: 5545 INVITE.
> User-Agent: einfachVoIP.de.
> Content-Length: 0.
> 
> U 5.9.87.18:5060 -> 130.255.76.95:5060
> SIP/2.0 407 Proxy Authentication Required.
> Via: SIP/2.0/UDP
> 130.255.76.95;branch=z9hG4bK7828.51fb03ff0ac02b01b2ba2bb73c1de051.0.
> 
> 
> 
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> [email protected]
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) 
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

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

Reply via email to