Hi All and Daniel,
My interesting "realtime" story still continues :)
All configuration seems to be ok. It's default but some DB fields changes as Daniel advised. Terminals registrations to kamailio is ok (but kamailio don't register as a endpoint on remote softswitch, but calls run :) is it ok? )
Situation: one logic + two different terminals = two different results !!! Kamailio logic haven't changes (exclude DB fields) and it's not a softswitch part. Is it something around two different requests with Proxy-Authenticate/realm (one case 193.58.XXX.XXX, second case VoipSwitch) and why kamailio generates two different realms ?
First case (ok). Sip terminal - softphone twinkle Dump from kamailio: http://pastebin.com/uddxwf6F
Second case (not ok). Sip terminal - cisco iphone Dump from kamailio:
terminal->kamailio
INVITE sip:9991@193.58.XXX.XXX SIP/2.0
Via: SIP/2.0/UDP 192.168.0.180:5060;branch=z9hG4bK-1050babb
From: "100" sip:100@193.58.XXX.XXX;tag=dfe3d8151250ffabo0
Call-ID: 8760c7dd-41ef9283@192.168.0.180
CSeq: 101 INVITE
Max-Forwards: 70
Contact: "100" sip:100@192.168.0.180:5060
Expires: 240
User-Agent: Linksys/SPA922-5.1.15(a)
Content-Length: 259
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: replaces
Content-Type: application/sdp
kamailio->terminal
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 192.168.0.180:5060;branch=z9hG4bK-1050babb;rport=5060;received=93.116.XXX.XXX
From: "100" sip:100@193.58.XXX.XXX;tag=dfe3d8151250ffabo0
To: sip:9991@193.58.XXX.XXX;tag=636f77b6676bf8d50aad9baa13cd3627.9e28
Call-ID: 8760c7dd-41ef9283@192.168.0.180
CSeq: 101 INVITE
Proxy-Authenticate: Digest realm="193.58.XXX.XXX", nonce="TgR+dE4EfUj/W4ocJ0iFmM93MMo5SgvE"
Server: kamailio (3.1.4 (i386/linux))
Content-Length: 0
terminal->kamailio
ACK sip:9991@193.58.XXX.XXX SIP/2.0
Via: SIP/2.0/UDP 192.168.0.180:5060;branch=z9hG4bK-1050babb
From: "100" sip:100@193.58.XXX.XXX;tag=dfe3d8151250ffabo0
To: sip:9991@193.58.XXX.XXX;tag=636f77b6676bf8d50aad9baa13cd3627.9e28
Call-ID: 8760c7dd-41ef9283@192.168.0.180
CSeq: 101 ACK
Max-Forwards: 70
Contact: "100" sip:100@192.168.0.180:5060
User-Agent: Linksys/SPA922-5.1.15(a)
Content-Length: 0
INVITE sip:9991@193.58.XXX.XXX SIP/2.0
Via: SIP/2.0/UDP 192.168.0.180:5060;branch=z9hG4bK-beb5344f
From: "100" sip:100@193.58.XXX.XXX;tag=dfe3d8151250ffabo0
Call-ID: 8760c7dd-41ef9283@192.168.0.180
CSeq: 102 INVITE
Max-Forwards: 70
Proxy-Authorization: Digest username="100",realm="193.58.XXX.XXX",nonce="TgR+dE4EfUj/W4ocJ0iFmM93MMo5SgvE",uri="sip:9991@193.58.XXX.XXX",algorithm=MD5,response="69dcc7441ad6f0a70c259e8948d8fcf0"
Contact: "100" sip:100@192.168.0.180:5060
Expires: 240
User-Agent: Linksys/SPA922-5.1.15(a)
Content-Length: 259
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: replaces
Content-Type: application/sdp
kamailio->terminal
SIP/2.0 100 trying -- your call is important to us
Via: SIP/2.0/UDP 192.168.0.180:5060;branch=z9hG4bK-beb5344f;rport=5060;received=93.116.XXX.XXX
From: "100" sip:100@193.58.XXX.XXX;tag=dfe3d8151250ffabo0
Call-ID: 8760c7dd-41ef9283@192.168.0.180
CSeq: 102 INVITE
Server: kamailio (3.1.4 (i386/linux))
Content-Length: 0
SIP/2.0 407 Proxy Authentication Required
CSeq: 102 INVITE
Via: SIP/2.0/UDP 192.168.0.180:5060;rport=5060;received=93.116.XXX.XXX;branch=z9hG4bK-beb5344f
From: "100" sip:100@193.58.XXX.XXX;tag=dfe3d8151250ffabo0
Call-ID: 8760c7dd-41ef9283@192.168.0.180
To: sip:9991@193.58.XXX.XXX;tag=05050699909937
Proxy-Authenticate: DIGEST realm="VoipSwitch", nonce="05f481310df9ef29-24050517506050625525"
Content-Length: 0
Record-Route: sip:193.58.XXX.XXX;lr=on;ftag=dfe3d8151250ffabo0;nat=yes
terminal->kamailio
ACK sip:9991@193.58.XXX.XXX SIP/2.0
Via: SIP/2.0/UDP 192.168.0.180:5060;branch=z9hG4bK-beb5344f
From: "100" sip:100@193.58.XXX.XXX;tag=dfe3d8151250ffabo0
To: sip:9991@193.58.XXX.XXX;tag=05050699909937
Call-ID: 8760c7dd-41ef9283@192.168.0.180
CSeq: 102 ACK
Max-Forwards: 70
Proxy-Authorization: Digest username="100",realm="193.58.XXX.XXX",nonce="TgR+dE4EfUj/W4ocJ0iFmM93MMo5SgvE",uri="sip:9991@193.58.XXX.XXX",algorithm=MD5,response="69dcc7441ad6f0a70c259e8948d8fcf0"
Contact: "100" sip:100@192.168.0.180:5060
User-Agent: Linksys/SPA922-5.1.15(a)
Content-Length: 0
INVITE sip:9991@193.58.XXX.XXX SIP/2.0
Via: SIP/2.0/UDP 192.168.0.180:5060;branch=z9hG4bK-303c9613
From: "100" sip:100@193.58.XXX.XXX;tag=dfe3d8151250ffabo0
Call-ID: 8760c7dd-41ef9283@192.168.0.180
CSeq: 103 INVITE
Max-Forwards: 70
Proxy-Authorization: Digest username="100",realm="VoipSwitch",nonce="05f481310df9ef29-24050517506050625525",uri="sip:9991@193.58.XXX.XXX",algorithm=MD5,response="70b633a0ca9ecf0bfebb7792f843d732"
Contact: "100" sip:100@192.168.0.180:5060
Expires: 240
User-Agent: Linksys/SPA922-5.1.15(a)
Content-Length: 259
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: replaces
Content-Type: application/sdp
kamailio->terminal
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 192.168.0.180:5060;branch=z9hG4bK-303c9613;rport=5060;received=93.116.XXX.XXX
From: "100" sip:100@193.58.XXX.XXX;tag=dfe3d8151250ffabo0
To: sip:9991@193.58.XXX.XXX;tag=636f77b6676bf8d50aad9baa13cd3627.4a95
Call-ID: 8760c7dd-41ef9283@192.168.0.180
CSeq: 103 INVITE
Proxy-Authenticate: Digest realm="193.58.XXX.XXX", nonce="TgR+dE4EfUj/W4ocJ0iFmM93MMo5SgvE"
Server: kamailio (3.1.4 (i386/linux))
Content-Length: 0
terminal->kamailio
ACK sip:9991@193.58.XXX.XXX SIP/2.0
Via: SIP/2.0/UDP 192.168.0.180:5060;branch=z9hG4bK-303c9613
From: "100" sip:100@193.58.XXX.XXX;tag=dfe3d8151250ffabo0
To: sip:9991@193.58.XXX.XXX;tag=636f77b6676bf8d50aad9baa13cd3627.4a95
Call-ID: 8760c7dd-41ef9283@192.168.0.180
CSeq: 103 ACK
Max-Forwards: 70
Proxy-Authorization: Digest username="100",realm="VoipSwitch",nonce="05f481310df9ef29-24050517506050625525",uri="sip:9991@193.58.XXX.XXX",algorithm=MD5,response="70b633a0ca9ecf0bfebb7792f843d732"
Contact: "100" sip:100@192.168.0.180:5060
User-Agent: Linksys/SPA922-5.1.15(a)
Content-Length: 0