any_sip_device_on_internet_nated_and_not => kamailio ext ip (194.190.8.171) | kamailio int ip (50.0.0.1) => asterisk (50.0.0.10)
a do not need realtime configuration of asterisk.
I only need forward everything to asterisk. and after signalling will work, I need rtp too... but its the long way I think.
it looks like sip device send register, kamailio fwd it, but answer to device 200. and than my device doesnt resend register normal.
20:40:44.649660 IP (tos 0x0, ttl 121, id 14950, offset 0, flags [none], proto UDP (17), length 583)
77.37.241.151.5060 > 194.190.8.171.5060: SIP, length: 555
REGISTER sip:194.190.8.171 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.119:5060;branch=z9hG4bK009318ba288ce311b95a985a85ad1a82;rport
CSeq: 4 REGISTER
Allow: INVITE, OPTIONS, ACK, BYE, CANCEL, INFO, NOTIFY, MESSAGE, UPDATE
Max-Forwards: 70
User-Agent: SIPPER for PhonerLite
Expires: 0
Content-Length: 0
20:40:44.651668 IP (tos 0x10, ttl 64, id 33739, offset 0, flags [none], proto UDP (17), length 422)
194.190.8.171.5060 > 77.37.241.151.5060: SIP, length: 394
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.119:5060;branch=z9hG4bK009318ba288ce311b95a985a85ad1a82;rport=5060;received=77.37.241.151
CSeq: 4 REGISTER
Server: kamailio (4.1.1 (x86_64/linux))
Content-Length: 0
20:40:44.653916 IP (tos 0x10, ttl 64, id 33740, offset 0, flags [none], proto UDP (17), length 582)
194.190.8.171.5060 > 77.37.241.151.5060: SIP, length: 554
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.119:5060;received=77.37.241.151;branch=z9hG4bK009318ba288ce311b95a985a85ad1a82;rport=5060
CSeq: 4 REGISTER
Server: Asterisk PBX 1.8.20.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="4cffbc95"
Content-Length: 0
20:40:45.073854 IP (tos 0x0, ttl 121, id 14953, offset 0, flags [none], proto UDP (17), length 575)
77.37.241.151.5060 > 194.190.8.171.5060: SIP, length: 547
REGISTER sip:194.190.8.171 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.119:5060;branch=z9hG4bK009318ba288ce311b1713a64da149374;rport
CSeq: 1 REGISTER
Allow: INVITE, OPTIONS, ACK, BYE, CANCEL, INFO, NOTIFY, MESSAGE, UPDATE
Max-Forwards: 70
User-Agent: SIPPER for PhonerLite
Expires: 900
Content-Length: 0
20:40:45.076169 IP (tos 0x10, ttl 64, id 33741, offset 0, flags [none], proto UDP (17), length 572)
194.190.8.171.5060 > 77.37.241.151.5060: SIP, length: 544
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.119:5060;branch=z9hG4bK009318ba288ce311b1713a64da149374;rport=5060;received=77.37.241.151
CSeq: 1 REGISTER
Server: kamailio (4.1.1 (x86_64/linux))
Content-Length: 0
yours respectfully, Alexander Vasin.
8 926 1437200
icq: 9906064