[Spce-user] SIP 302 Redirect to different IP

Marc Storck mstorck at voipgate.com
Tue Jul 1 16:57:52 EDT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Andrex,

this is the relevant proxy log:

Jul  1 21:22:26 sipwise1 proxy[3840]: NOTICE: <script>: New request - M=INVITE R=sip:123456789 at 203.0.113.34 F=sip:99887766554 at 198.51.100.36 T=sip:123456789 at 203.0.113.34 IP=198.51.100.36:5060 (203.0.113.113:5060) ID=4083209706-27201 at SVIGateway
Jul  1 21:22:26 sipwise1 proxy[3840]: NOTICE: <script>: Call from PSTN - R=sip:123456789 at 203.0.113.34 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:26 sipwise1 proxy[3840]: NOTICE: <script>: User-Provided CLI '99887766554' taken from From-User - R=sip:123456789 at 203.0.113.34 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:26 sipwise1 proxy[3840]: NOTICE: <script>: Network-Provided CLI '99887766554' taken from PAI - R=sip:123456789 at 203.0.113.34 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:26 sipwise1 proxy[3840]: NOTICE: <script>: Setting '99887766554 at 198.51.100.36' as initiating user-provided CLI - R=sip:123456789 at 203.0.113.34 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:26 sipwise1 proxy[3840]: NOTICE: <script>: Setting '99887766554 at 198.51.100.36' as initiating network-provided CLI - R=sip:123456789 at 203.0.113.34 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:26 sipwise1 proxy[3840]: NOTICE: <script>: Callee was aliased with base '123456789' - R=sip:SIPuserNAME at sip.domain.example ID=4083209706-27201 at SVIGateway
Jul  1 21:22:26 sipwise1 proxy[3840]: NOTICE: <script>: Callee is local, uuid='4458b9ea-ab9e-4845-98ff-1e5deeced08c' - R=sip:SIPuserNAME at sip.domain.example ID=4083209706-27201 at SVIGateway
Jul  1 21:22:26 sipwise1 proxy[3840]: NOTICE: <script>: Setting acc source-leg for uuid '0': '0|99887766554|198.51.100.36|99887766554|||0|||0|call|198.51.100.36|1404242546.848140' - R=sip:209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:26 sipwise1 proxy[3840]: NOTICE: <script>: Setting acc destination-leg for uuid '4458b9ea-ab9e-4845-98ff-1e5deeced08c': '0|Example Redirect Server 1|Example Customer|75|123456789|4458b9ea-ab9e-4845-98ff-1e5deeced08c|SIPuserNAME|sip.domain.example|123456789|203.0.113.34' - R=sip:209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:26 sipwise1 proxy[3840]: NOTICE: <script>: Local user online, using alias as user - R=sip:123456789 at 209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:26 sipwise1 proxy[3840]: NOTICE: <script>: Setting caller_cli_userprov/caller_domain_userprov '99887766554 at sip.domain.example' for upn - R=sip:123456789 at 209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:26 sipwise1 proxy[3840]: NOTICE: <script>: Setting From to '<sip:99887766554 at sip.domain.example>' - R=sip:123456789 at 209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:26 sipwise1 proxy[3840]: NOTICE: <script>: Setting caller_cli_netprov/caller_domain_netprov '99887766554 at 198.51.100.36' for npn - R=sip:123456789 at 209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:26 sipwise1 proxy[3840]: NOTICE: <script>: Setting PAI to '<sip:99887766554 at 198.51.100.36>' - R=sip:123456789 at 209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:26 sipwise1 proxy[3840]: NOTICE: <script>: Setting P-Called-Party-ID '<sip:123456789 at sip.domain.example>' - R=sip:123456789 at 209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:26 sipwise1 proxy[3840]: NOTICE: <script>: Appending P-D-URI 'sip:203.0.113.113:5060;lr' - R=sip:123456789 at 209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:26 sipwise1 proxy[3840]: NOTICE: <script>: Forcing request via B2BUA 'sip:203.0.113.113:5080' - R=sip:123456789 at 209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:26 sipwise1 proxy[3840]: NOTICE: <script>: Request leaving server, D-URI='sip:203.0.113.113:5080' - R=sip:123456789 at 209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:26 sipwise1 proxy[3839]: NOTICE: <script>: NAT-Reply - S=100 - Connecting M=INVITE IP=198.51.100.36:5060 (203.0.113.113:5080) ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3845]: NOTICE: <script>: NAT-Reply - S=302 - Moved Temporarily M=INVITE IP=198.51.100.36:5060 (203.0.113.113:5080) ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3845]: NOTICE: <script>: Failure route for local call - R=sip:123456789 at 203.0.113.34 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3845]: NOTICE: <script>: Redirect from UAC intercepted - R=sip:123456789 at 209.119.178.96 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3845]: WARNING: <script>: Allow call to foreign domain by preference - R=sip:123456789 at 209.119.178.96 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3845]: NOTICE: <script>: Callee was aliased with base '123456789' - R=sip:SIPuserNAME at sip.domain.example ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3845]: NOTICE: <script>: Callee is local, uuid='4458b9ea-ab9e-4845-98ff-1e5deeced08c' - R=sip:SIPuserNAME at sip.domain.example ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3845]: NOTICE: <script>: Setting acc source-leg for uuid '4458b9ea-ab9e-4845-98ff-1e5deeced08c': '4458b9ea-ab9e-4845-98ff-1e5deeced08c|SIPuserNAME|198.51.100.36|883510001210113|Example Redirect Server 1|Example Customer|75|||<null>|cfb|198.51.100.36|1404242547.079584' - R=sip:209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3845]: NOTICE: <script>: Setting acc destination-leg for uuid '4458b9ea-ab9e-4845-98ff-1e5deeced08c': '0|Example Redirect Server 1|Example Customer|75|123456789|4458b9ea-ab9e-4845-98ff-1e5deeced08c|SIPuserNAME|sip.domain.example|123456789|209.119.178.96' - R=sip:209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3845]: NOTICE: <script>: Local user online, using alias as user - R=sip:123456789 at 209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3845]: NOTICE: <script>: Setting caller_cli_userprov/caller_domain_userprov '99887766554 at sip.domain.example' for upn - R=sip:123456789 at 209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3845]: NOTICE: <script>: Setting From to '<sip:99887766554 at sip.domain.example>' - R=sip:123456789 at 209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3845]: NOTICE: <script>: Setting caller_cli_netprov/caller_domain_netprov '99887766554 at 198.51.100.36' for npn - R=sip:123456789 at 209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3845]: NOTICE: <script>: Setting PAI to '<sip:99887766554 at 198.51.100.36>' - R=sip:123456789 at 209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3845]: NOTICE: <script>: Setting P-Called-Party-ID '<sip:123456789 at sip.domain.example>' - R=sip:123456789 at 209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3845]: NOTICE: <script>: Appending P-D-URI 'sip:203.0.113.113:5060;lr' - R=sip:123456789 at 209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3845]: NOTICE: <script>: Forcing request via B2BUA 'sip:203.0.113.113:5080' - R=sip:123456789 at 209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3845]: NOTICE: <script>: Request leaving server, D-URI='sip:203.0.113.113:5080' - R=sip:123456789 at 209.119.178.89 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3842]: NOTICE: <script>: NAT-Reply - S=100 - Connecting M=INVITE IP=198.51.100.36:5060 (203.0.113.113:5080) ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3841]: NOTICE: <script>: NAT-Reply - S=302 - Moved Temporarily M=INVITE IP=198.51.100.36:5060 (203.0.113.113:5080) ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3841]: NOTICE: <script>: Failure route for local call - R=sip:123456789 at 203.0.113.34 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3841]: NOTICE: <script>: Local user online, using alias as user - R=sip:123456789 at 209.119.178.96 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3841]: NOTICE: <script>: Setting caller_cli_userprov/caller_domain_userprov '99887766554 at sip.domain.example' for upn - R=sip:123456789 at 209.119.178.96 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3841]: NOTICE: <script>: Setting From to '<sip:99887766554 at sip.domain.example>' - R=sip:123456789 at 209.119.178.96 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3841]: NOTICE: <script>: Setting caller_cli_netprov/caller_domain_netprov '99887766554 at 198.51.100.36' for npn - R=sip:123456789 at 209.119.178.96 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3841]: NOTICE: <script>: Setting PAI to '<sip:99887766554 at 198.51.100.36>' - R=sip:123456789 at 209.119.178.96 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3841]: NOTICE: <script>: Setting P-Called-Party-ID '<sip:123456789 at sip.domain.example>' - R=sip:123456789 at 209.119.178.96 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3841]: NOTICE: <script>: Appending P-D-URI '<null>' - R=sip:123456789 at 209.119.178.96 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3841]: NOTICE: <script>: Forcing request via B2BUA 'sip:203.0.113.113:5080' - R=sip:12345679988776655489 at 209.119.178.96 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3841]: NOTICE: <script>: Request leaving server, D-URI='sip:203.0.113.113:5080' - R=sip:123456789 at 209.119.178.96 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3840]: NOTICE: <script>: NAT-Reply - S=100 - Connecting M=INVITE IP=198.51.100.36:5060 (203.0.113.113:5080) ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3839]: NOTICE: <script>: NAT-Reply - S=400 - Bad Request M=INVITE IP=198.51.100.36:5060 (203.0.113.113:5080) ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3839]: NOTICE: <script>: Failure route for local call - R=sip:123456789 at 203.0.113.34 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3839]: NOTICE: <script>: Local user online, using alias as user - R=sip:123456789 at 209.119.178.96 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3839]: NOTICE: <script>: Setting caller_cli_userprov/caller_domain_userprov '99887766554 at sip.domain.example' for upn - R=sip:123456789 at 209.119.178.96 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3839]: NOTICE: <script>: Setting From to '<sip:99887766554 at sip.domain.example>' - R=sip:123456789 at 209.119.178.96 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3839]: NOTICE: <script>: Setting caller_cli_netprov/caller_domain_netprov '99887766554 at 198.51.100.36' for npn - R=sip:123456789 at 209.119.178.96 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3839]: NOTICE: <script>: Setting PAI to '<sip:99887766554 at 198.51.100.36>' - R=sip:123456789 at 209.119.178.96 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3839]: NOTICE: <script>: Setting P-Called-Party-ID '<sip:123456789 at sip.domain.example>' - R=sip:123456789 at 209.119.178.96 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3839]: NOTICE: <script>: Appending P-D-URI '<null>' - R=sip:123456789 at 209.119.178.96 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3839]: NOTICE: <script>: Forcing request via B2BUA 'sip:203.0.113.113:5080' - R=sip:123456789 at 209.119.178.96 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3839]: NOTICE: <script>: Request leaving server, D-URI='sip:203.0.113.113:5080' - R=sip:123456789 at 209.119.178.96 ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3838]: NOTICE: <script>: NAT-Reply - S=100 - Connecting M=INVITE IP=198.51.100.36:5060 (203.0.113.113:5080) ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3844]: NOTICE: <script>: NAT-Reply - S=400 - Bad Request M=INVITE IP=198.51.100.36:5060 (203.0.113.113:5080) ID=4083209706-27201 at SVIGateway
Jul  1 21:22:27 sipwise1 proxy[3844]: NOTICE: <script>: Failure route for local call - R=sip:123456789 at 203.0.113.34 ID=4083209706-27201 at SVIGateway

Regards,

Marc Storck

On Jul 1, 2014, at 10:34 PM, Andrew Pogrebennyk <apogrebennyk at sipwise.com> wrote:

Signed PGP part
Hello Marc,

our proxy processes the 302 redirect in the new context, so what
happens is that it should try to load the peers, or send the call to
an external domain. I need to see the kamailio-proxy.log to tell you
what happened, especially after the "Redirect from UAC intercepted"
lines..

Note: in mr3.3.1, we had a bug till templates version mr3.3.1.6
released earlier today because of which the context wasn't set
properly (some variables and avps were not initialized) and this can
lead to quite some side effects. If you are running MR3.3, try latest
version.

Andrew

On 01/07/14 22:12, Marc Storck wrote:
> Good evening,
>
> User has a SIP Redirect Server and wants to “redirect” incoming
> calls to one of his many other servers.
>
> The DID used in this example is 123456789. The Redirect Server has
> IP 192.0.2.1.
>
> The Contact to reach the SIP Redirect Server is
> sip:123456789 at 192.0.2.1:5060.
>
> The Redirection goes to sip:123456789 at 192.0.2.99:5060 (only the IP
> changes).
>
> I have activated “allow_out_foreign_domain”, so the LB accepts the
> SIP Message.
>
> But the PROXY tries to redirect the call to the very first contact
> (e.g. IP 192.0.2.1) and not the contact provided via the SIP 302
> Message.
>
> Is it possible to have the PROXY use the full contact during a
> redirect?
>
> Regards,
>
> Marc


-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org

iQIcBAEBAgAGBQJTsyFjAAoJEBqZdpQUXtTC4YEQAJsph71H5O3oXkrdVP84ksV8
I6Fhp2e1Qn7GleKS7v807WUmqAZfFYLOmW5NfF8HIgSzO2CqSPDngcYvSJGtKui/
rwGK1+sbc/wLsXXoLmygdnKfBAr+b0DYzpYpaaBhZIr3bq6BDILXnvqmaYTdKe6M
9lkpL6sI/LGftrnAxqFavf+KQPHk1onaN9EppkvaUN6NXpfs5MaZkcM+W5+6Bbae
W10VnBIDNAvulni+WB7kMo+QylQnxiOiL+suKA8HUKr+Z++Lxjij/0wuemrlywdt
+wa8d2DHawqwwv1Byoo9caur/0C441js8tb/Z7IYj/2+Y0g1FPXn3xIJXLB95c5k
EIuD0Kj/DV+BSmViJX2JjVQOTC4NDEYF3zqVfigfc9BcGfT6zVJQM/kH6eKXSkBE
CX3/sSuJ+NdbtRAyAAuShwC2oS0sSK6cxvwIyEmxDgbqh+Wa3C7C7bVdC7Xb1MQO
Vkv4VqcYjvZ/FOxw2ZTqobWItU4EcX5LKELph+EH+T7Kp39ZCB9O30cGwLUPpbf4
WqZu++qTXRmrBrpPsqpxCtUZxTMyv3teUVREJ+1YI+JvjRtBCOV2CuKMQO0le5+f
6kROuA++NYSYazXxVpx/Z+8+WCgqijfy+5MBYwNwR+pBa5Yobtl9OYusOwjRf+kY
WlsZMWcTCDdQ7sJUzrl8
=fw+5
-----END PGP SIGNATURE-----


More information about the Spce-user mailing list