[SR-Users] Via header line missing

2018-09-07 Thread Karlheinz Knapp
Hi,

hm the only reason why I'm playing with kamailio is that it should be
able to translate IPv6 from customer phones behind Fritz!Box (NAT) to IPv4
used by the provider (which is not able to handle IPv6).
But it looks that he accept in general the packet with 2 Via lines (also
with IPv6 as address) and send a normal reply. The second Via is not
needed, because he have to send to the first Via.
And if it really comes to trouble, I can remove it with kamailio :)

If it is not possible to make a complete translation with kamailio, then I
have to search again for an other solution.

But still: why is this one Via line not transmitted on the IPv6 side?
Only when I do some modifications it appears magically. That's not a normal
behaviour in my opinion.

If you or Henning can not reproduce this behaviour, then it's possible that
I start TeamViewer
and I can show this on our installation (only at normal working hours).
Btw. I use sngrep to display all the messages, but it works stable and
reliable.

Best regards,
i.A. Bernd
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Via header line missing

2018-09-06 Thread Karlheinz Knapp
Hi,

of course kamailio is listening on IPv4 and IPv6.

Register coming from IPv6 and goes out on IPv4:

REGISTER sip:sip.ggew-net.de SIP/2.0
Via: SIP/2.0/UDP
217.113.176.155;branch=z9hG4bK98fc.314c428d232717f129932376c83e2c02.0
Via: SIP/2.0/UDP
[2A05:E2C2:0:401:F40D:E8C5:5D85:2A95]:5060;received=2A05:E2C2:0:401:F40D:E8C5:5D85:2A95;branch=z9hG4bK001755af58b0e811a048bb9f393b8bfe;r
rt=5060
From: "PhonerLite" ;tag=4236924539
To: "PhonerLite" 
Call-ID: 8080BCAE-58B0-E811-A046-BB9F393B8BFE@2A05
:E2C2:0:401:F40D:E8C5:5D85:2A95
CSeq: 1 REGISTER
Contact: ;+sip.instance=""
Allow: INVITE, ACK, BYE, CANCEL, INFO, MESSAGE, NOTIFY, OPTIONS, REFER,
UPDATE, PRACK
Max-Forwards: 69
Allow-Events: org.3gpp.nwinitdereg
User-Agent: SIPPER for PhonerLite
Supported: replaces, from-change, gruu
Expires: 900
Content-Length: 0
P-hint: outbound

Answer on IPv4:
SIP/2.0 401 Unauthorized
Call-ID: 8080BCAE-58B0-E811-A046-BB9F393B8BFE@2A05
:E2C2:0:401:F40D:E8C5:5D85:2A95
CSeq: 1 REGISTER
From: "PhonerLite" ;tag=4236924539
Server: Cirpack/v4.76 (gw_sip)
To: "PhonerLite" ;tag=00-07683-7956ba80-5065f1a44
Via: SIP/2.0/UDP
217.113.176.155;received=217.113.176.155;rport=5060;branch=z9hG4bK98fc.314c428d232717f129932376c83e2c02.0
WWW-Authenticate: Digest realm="sip.ggew-net.de
",nonce="7956b03f7acf80ba100f00e723284f58",opaque="7950c9065c0c955",stale=false,algorithm=MD5
Content-Length: 0

The same answer on th IPv6 side after kamailio without something special:
SIP/2.0 401 Unauthorized
Call-ID: 8080BCAE-58B0-E811-A046-BB9F393B8BFE@2A05
:E2C2:0:401:F40D:E8C5:5D85:2A95
CSeq: 1 REGISTER
From: "PhonerLite" ;tag=4236924539
Server: Cirpack/v4.76 (gw_sip)
To: "PhonerLite" ;tag=00-07683-7956ba80-5065f1a44
WWW-Authenticate: Digest realm="sip.ggew-net.de
",nonce="7956b03f7acf80ba100f00e723284f58",opaque="7950c9065c0c955",stale=false,algorithm=MD5
Content-Length: 0

It contains no Via header!!!

If I add my append_hf()
append_hf("Via: SIP/2.0/UDP
[2a05:e2c1:2::111];branch=$sel(via[1].branch);rport=5060\r\n", "To");
msg_apply_changes();

I get:
SIP/2.0 401 Unauthorized
Call-ID: 8080BCAE-58B0-E811-A046-BB9F393B8BFE@2A05
:E2C2:0:401:F40D:E8C5:5D85:2A95
CSeq: 1 REGISTER
From: "PhonerLite" ;tag=4236924539
Server: Cirpack/v4.76 (gw_sip)
To: "PhonerLite" ;tag=00-07683-7956ba80-5065f1a44
Via: SIP/2.0/UDP
217.113.176.155;received=217.113.176.155;rport=5060;branch=z9hG4bK98fc.314c428d232717f129932376c83e2c02.0
WWW-Authenticate: Digest realm="sip.ggew-net.de
",nonce="7956b03f7acf80ba100f00e723284f58",opaque="7950c9065c0c955",stale=false,algorithm=MD5
Content-Length: 0

With the original Via header !!!

If I add a second Via with append_hf()

append_hf("Via: SIP/2.0/UDP
[2a05:e2c2:0:401:3002:AA:754A:F475]:5060;rport\r\n", "To");
append_hf("Via: SIP/2.0/UDP
[2a05:e2c1:2::111];branch=$sel(via[1].branch);rport=5060\r\n", "To");
msg_apply_changes();

I can see this additional line in the IPv6 packet too.


SIP/2.0 401 Unauthorized
Call-ID: 0038C332-5AB0-E811-ABC9-80F5AA6CB72C@2A05
:E2C2:0:401:F40D:E8C5:5D85:2A95
CSeq: 1 REGISTER
From: "PhonerLite" ;tag=2618219059
Server: Cirpack/v4.76 (gw_sip)
To: "PhonerLite" ;tag=00-07871-795b4386-0dc31d606
Via: SIP/2.0/UDP
[2a05:e2c1:2::111];branch=z9hG4bK0ce8.b94e5d3389049004487a8551ac2c8c41.0;rport=5060
Via: SIP/2.0/UDP
217.113.176.155;received=217.113.176.155;rport=5060;branch=z9hG4bK0ce8.b94e5d3389049004487a8551ac2c8c41.0
WWW-Authenticate: Digest realm="sip.ggew-net.de
",nonce="795b3345266c3dd57a52e3237f4276dd",opaque="7950c9065c0c955",stale=false,algorithm=MD5
Content-Length: 0

But since I don't have the right branch, PhonerLite starts a new
registration instead of reregister with username password.

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


[SR-Users] Via header line missing

2018-09-05 Thread Karlheinz Knapp
Hi,

we want to use kamailio as a IPv6 to IPv4 proxy.
IPv4 to IPv4 bridging with NAT works.

If we come from an IPv6 address, the registration packet is send via IPv4
to the provider.
He answers with 401 Unauthorized and one Via line in the header.
On the IPv6 side was no Via line in the packet.

So I tried to add one line by hand using an onreply_route and append_hf(),
msg_apply_changes()
To my suprise, this line does never appear, but the original Via line is
now in the packet !!!
If I add now additional Via header lines, they appear in the packet too.

This looks realy like a bug to me.

A solution is needed, because the phone does not respond to the 401 with
user and password.
It starts a new registration instead.

Maybe I can fix it with my additional Via linem but I need the original
branch ID (I think)
How can I get this?

Btw. we have this behaviour with 4.4.2 and 5.1.5

If I get no answer during the next 12 hours I'll try 3.3.7

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


[SR-Users] Ipv6_to_ipv4

2018-09-04 Thread Karlheinz Knapp
i have tested the sample config from:
https://kb.asipto.com/kamailio:kamailio-mixed-ipv4-ipv6

i found that i can register with v4 to kamailio and to the provider

if i user ipv6 to kamailio and ipv4 to provider i canĀ“t register.

the packet from the provider contain a via entry which is missing from
kamailio to my phone.

Someone have a solution ?
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] IPv6 2 Ipv4

2018-08-30 Thread Karlheinz Knapp
Hi i serach for a config to convert IPv6 to ipv4. My Provider give me only
IPv4 and i have 4000 Customer which have ipv6. Anybody have expierience and
a running config ?
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users