Here is a different trace captured with tcpdump - I eliminated lots of nulls, \0x00 in the expectation that you’re not needing to count hex bytes
if you want those I can post the original.
I think I see what is happening but I don’t understand why. It looks like Asterisk is:
- doing DNS lookup
- sending the initial invite
- getting a request for authentication
- doing another DNS lookup ***** WHY??? ***** and getting a new IP
- sending the second invite (with authentication I suppose) to the wrong server
Especially I don’t understand why it worked on Oct. 6 at 1441 GMT and started failing at 1714 GMT…
15:08:56.394751 IP (tos 0x60, ttl 64, id 39175, offset 0, flags [none], proto UDP (17), length 1024)
70.38.15.82.sip > 64.2.142.188.GIGe-net.vitel.net.sip: SIP, length: 996
INVITE sip:14165551212@outbound.vitelity.net SIP
0x0000: 494e 5649 5445 2073 6970 3a31 3431 3632
0x0010: 3331 3335 3636 406f 7574 626f 756e 642e
0x0020: 7669 7465 6c69 7479 2e6e 6574 2053 4950
15:08:56.442126 IP (tos 0x0, ttl 53, id 7352, offset 0, flags [none], proto UDP (17), length 571)
64.2.142.188.GIGe-net.vitel.net.sip > 70.38.15.82.sip: SIP, length: 543
SIP/2.0 407 Proxy Authentication Required
Via: \0x09\0xd6\0x01ZFT\0x88\0xecrP’$i\0x1a\0x11\0x08\0x02\0x01\0x04\0x06\0x08’\0xe8\0x8eC\0x08’t~\0x08’\0xe8\0x8eC\0x08E\0x01\0xc8\0x96\0x9c@\0x11\0xbd\0xf3F&\0x0fR@\0x02\0x8e\0xbb\0x13\0xc4\0x13\0xc4\0x01\0xb4%\0xfbACK sip:14165551212@outbound.vitelity.net SIP/2.\0x09\0xcf\0x04ZFT\0x88\0xecrP\0x94\0x0co\0x1a\0x11\0x08\0x02\0x01\0x04\0x06\0x08'\0xe8\0x8eC\0x08't~\0x08'\0xe8\0x8eC\0x08E
\0x04\0xc1\0x96\0x9d@\0x11\0xba\0xf9F&\0x0fR@\0x02\0x8e\0xbb\0x13\0xc4\0x13\0xc4\0x04\0xad(\0xf4INVITE sip:14165551212@outbound.vitelity.net SIP
0x0000: 5349 502f 322e 3020 3430 3720 5072 6f78
0x0010: 7920 4175 7468 656e 7469 6361 7469 6f6e
0x0020: 2052 6571 7569 7265 640d 0a56 6961 3a20
15:08:56.443098 IP (tos 0x60, ttl 64, id 38556, offset 0, flags [none], proto UDP (17), length 456)
70.38.15.82.sip > 64.2.142.187.GIGe-net.vitel.net.sip: SIP, length: 428
ACK sip:14165551212@outbound.vitelity.net SIP/2.\0x09\0xcf\0x04ZFT\0x88\0xecrP\0x94\0x0co\0x1a\0x11\0x08\0x02\0x01\0x04\0x06\0x08’\0xe8\0x8eC\0x08’t~\0x08’\0xe8\0x8eC\0x08E`\0x04\0xc1\0x96\0x9d@\0x11\0xba\0xf9F&\0x0fR@\0x02\0x8e\0xbb\0x13\0xc4\0x13\0xc4\0x04\0xad(\0xf4INVITE sip:14165551212@outbound.vitelity.net SIP
0x0000: 4143 4b20 7369 703a 3134 3136 3233 3133
0x0010: 3536 3640 6f75 7462 6f75 6e64 2e76 6974
0x0020: 656c 6974 792e 6e65 7420 5349 502f 322e
15:08:56.443485 IP (tos 0x60, ttl 64, id 38557, offset 0, flags [none], proto UDP (17), length 1217)
70.38.15.82.sip > 64.2.142.187.GIGe-net.vitel.net.sip: SIP, length: 1189
INVITE sip:14165551212@outbound.vitelity.net SIP
0x0000: 494e 5649 5445 2073 6970 3a31 3431 3632
0x0010: 3331 3335 3636 406f 7574 626f 756e 642e
0x0020: 7669 7465 6c69 7479 2e6e 6574 2053 4950
15:08:56.490657 IP (tos 0x0, ttl 53, id 7353, offset 0, flags [none], proto UDP (17), length 571)
64.2.142.187.GIGe-net.vitel.net.sip > 70.38.15.82.sip: SIP, length: 543
SIP/2.0 407 Proxy Authentication Required
Via: \0x09\0xd6\0x01ZFT\0x88\0xecrP<\0xacO\0x1d\0x11\0x08\0x02\0x01\0x04\0x06\0x08’\0xe8\0x8eC\0x08’t~\0x08’\0xe8\0x8eC\0x08E\0x01\0xc8N\0x8f@\0x11\0x06OF&\0x0fR@\0x02\0x8em\0x13\0xc4\0x13\0xc4\0x01\0xb4%\0xadACK sip:14165551212@outbound.vitelity.net SIP/2.\0x09\0xcf\0x04ZFT\0x88\0xecrP\0xa8\0x13U\0x1d\0x11\0x08\0x02\0x01\0x04\0x06\0x08'\0xe8\0x8eC\0x08't~\0x08'\0xe8\0x8eC\0x08E
\0x04\0xc1N\0x90@\0x11\0x03UF&\0x0fR@\0x02\0x8em\0x13\0xc4\0x13\0xc4\0x04\0xad(\0xa6INVITE sip:14165551212@outbound.vitelity.net SIP
0x0000: 5349 502f 322e 3020 3430 3720 5072 6f78
0x0010: 7920 4175 7468 656e 7469 6361 7469 6f6e
0x0020: 2052 6571 7569 7265 640d 0a56 6961 3a20
15:08:56.491760 IP (tos 0x60, ttl 64, id 20111, offset 0, flags [none], proto UDP (17), length 456)
70.38.15.82.sip > 64.2.142.109.GIGe-net.vitel.net.sip: SIP, length: 428
ACK sip:14165551212@outbound.vitelity.net SIP/2.\0x09\0xcf\0x04ZFT\0x88\0xecrP\0xa8\0x13U\0x1d\0x11\0x08\0x02\0x01\0x04\0x06\0x08’\0xe8\0x8eC\0x08’t~\0x08’\0xe8\0x8eC\0x08E`\0x04\0xc1N\0x90@\0x11\0x03UF&\0x0fR@\0x02\0x8em\0x13\0xc4\0x13\0xc4\0x04\0xad(\0xa6INVITE sip:14165551212@outbound.vitelity.net SIP
0x0000: 4143 4b20 7369 703a 3134 3136 3233 3133
0x0010: 3536 3640 6f75 7462 6f75 6e64 2e76 6974
0x0020: 656c 6974 792e 6e65 7420 5349 502f 322e
15:08:56.492114 IP (tos 0x60, ttl 64, id 20112, offset 0, flags [none], proto UDP (17), length 1217)
70.38.15.82.sip > 64.2.142.109.GIGe-net.vitel.net.sip: SIP, length: 1189
INVITE sip:14165551212@outbound.vitelity.net SIP
0x0000: 494e 5649 5445 2073 6970 3a31 3431 3632
0x0010: 3331 3335 3636 406f 7574 626f 756e 642e
0x0020: 7669 7465 6c69 7479 2e6e 6574 2053 4950
15:08:56.539621 IP (tos 0x0, ttl 53, id 44259, offset 0, flags [none], proto UDP (17), length 571)
64.2.142.109.GIGe-net.vitel.net.sip > 70.38.15.82.sip: SIP, length: 543
SIP/2.0 407 Proxy Authentication Required
Via: \0x09\0xd6\0x01ZFT\0x88\0xecrP\0x01t9 \0x11\0x08\0x02\0x01\0x04\0x06\0x08’\0xe8\0x8eC\0x08’t~\0x08’\0xe8\0x8eC\0x08E\0x01\0xc8\0x03\0xb3@\0x11Q.F&\0x0fR@\0x02\0x8ej\0x13\0xc4\0x13\0xc4\0x01\0xb4%\0xaaACK sip:14165551212@outbound.vitelity.net SIP/2.\0x09\0xcf\0x04ZFT\0x88\0xecrPD > \0x11\0x08\0x02\0x01\0x04\0x06\0x08'\0xe8\0x8eC\0x08't~\0x08'\0xe8\0x8eC\0x08E
\0x04\0xc1\0x03\0xb4@\0x11N4F&\0x0fR@\0x02\0x8ej\0x13\0xc4\0x13\0xc4\0x04\0xad(\0xa3INVITE sip:14165551212@outbound.vitelity.net SIP
0x0000: 5349 502f 322e 3020 3430 3720 5072 6f78
0x0010: 7920 4175 7468 656e 7469 6361 7469 6f6e
0x0020: 2052 6571 7569 7265 640d 0a56 6961 3a20
15:08:56.540636 IP (tos 0x60, ttl 64, id 947, offset 0, flags [none], proto UDP (17), length 456)
70.38.15.82.sip > 64.2.142.106.GIGe-net.vitel.net.sip: SIP, length: 428
ACK sip:14165551212@outbound.vitelity.net SIP/2.\0x09\0xcf\0x04ZFT\0x88\0xecrPD > \0x11\0x08\0x02\0x01\0x04\0x06\0x08’\0xe8\0x8eC\0x08’t~\0x08’\0xe8\0x8eC\0x08E`\0x04\0xc1\0x03\0xb4@\0x11N4F&\0x0fR@\0x02\0x8ej\0x13\0xc4\0x13\0xc4\0x04\0xad(\0xa3INVITE sip:14165551212@outbound.vitelity.net SIP
0x0000: 4143 4b20 7369 703a 3134 3136 3233 3133
0x0010: 3536 3640 6f75 7462 6f75 6e64 2e76 6974
0x0020: 656c 6974 792e 6e65 7420 5349 502f 322e
15:08:56.540942 IP (tos 0x60, ttl 64, id 948, offset 0, flags [none], proto UDP (17), length 1217)
70.38.15.82.sip > 64.2.142.106.GIGe-net.vitel.net.sip: SIP, length: 1189
INVITE sip:14165551212@outbound.vitelity.net SIP
0x0000: 494e 5649 5445 2073 6970 3a31 3431 3632
0x0010: 3331 3335 3636 406f 7574 626f 756e 642e
0x0020: 7669 7465 6c69 7479 2e6e 6574 2053 4950
15:08:56.588631 IP (tos 0x0, ttl 53, id 44260, offset 0, flags [none], proto UDP (17), length 571)
64.2.142.106.GIGe-net.vitel.net.sip > 70.38.15.82.sip: SIP, length: 543
SIP/2.0 407 Proxy Authentication Required
Via: \0x09\0xd6\0x01ZFT\0x88\0xecrP\0xe3\0x84##\0x11\0x08\0x02\0x01\0x04\0x06\0x08’\0xe8\0x8eC\0x08’t~\0x08’\0xe8\0x8eC\0x08E`\0x01\0xc8\0xb0\0xc1@\0x11\0xa3\0xccF&\0x0fR@\0x02\0x8e\0xbd\0x13\0xc4\0x13\0xc4\0x01\0xb4%\0xfdACK sip:14165551212@outbound.vitelity.net SIP/2.
0x0000: 5349 502f 322e 3020 3430 3720 5072 6f78
0x0010: 7920 4175 7468 656e 7469 6361 7469 6f6e
0x0020: 2052 6571 7569 7265 640d 0a56 6961 3a20
15:08:56.589530 IP (tos 0x60, ttl 64, id 45249, offset 0, flags [none], proto UDP (17), length 456)
70.38.15.82.sip > 64.2.142.189.GIGe-net.vitel.net.sip: SIP, length: 428
ACK sip:14165551212@outbound.vitelity.net SIP/2.
0x0000: 4143 4b20 7369 703a 3134 3136 3233 3133
0x0010: 3536 3640 6f75 7462 6f75 6e64 2e76 6974
0x0020: 656c 6974 792e 6e65 7420 5349 502f 322e
15:08:57.441544 IP (tos 0x0, ttl 53, id 7354, offset 0, flags [none], proto UDP (17), length 571)
64.2.142.188.GIGe-net.vitel.net.sip > 70.38.15.82.sip: SIP, length: 543
SIP/2.0 407 Proxy Authentication Required
Via:
0x0000: 5349 502f 322e 3020 3430 3720 5072 6f78
0x0010: 7920 4175 7468 656e 7469 6361 7469 6f6e
0x0020: 2052 6571 7569 7265 640d 0a56 6961 3a20
15:08:57.496310 IP (tos 0x0, ttl 53, id 7355, offset 0, flags [none], proto UDP (17), length 571)
64.2.142.187.GIGe-net.vitel.net.sip > 70.38.15.82.sip: SIP, length: 543
SIP/2.0 407 Proxy Authentication Required
Via:
0x0000: 5349 502f 322e 3020 3430 3720 5072 6f78
0x0010: 7920 4175 7468 656e 7469 6361 7469 6f6e
0x0020: 2052 6571 7569 7265 640d 0a56 6961 3a20
15:08:57.539028 IP (tos 0x0, ttl 53, id 44261, offset 0, flags [none], proto UDP (17), length 571)
64.2.142.109.GIGe-net.vitel.net.sip > 70.38.15.82.sip: SIP, length: 543
SIP/2.0 407 Proxy Authentication Required
Via:
0x0000: 5349 502f 322e 3020 3430 3720 5072 6f78
0x0010: 7920 4175 7468 656e 7469 6361 7469 6f6e
0x0020: 2052 6571 7569 7265 640d 0a56 6961 3a20
15:08:57.587001 IP (tos 0x0, ttl 53, id 44262, offset 0, flags [none], proto UDP (17), length 571)
64.2.142.106.GIGe-net.vitel.net.sip > 70.38.15.82.sip: SIP, length: 543
SIP/2.0 407 Proxy Authentication Required
Via:
0x0000: 5349 502f 322e 3020 3430 3720 5072 6f78
0x0010: 7920 4175 7468 656e 7469 6361 7469 6f6e
0x0020: 2052 6571 7569 7265 640d 0a56 6961 3a20
15:08:58.440646 IP (tos 0x0, ttl 53, id 7356, offset 0, flags [none], proto UDP (17), length 571)
64.2.142.188.GIGe-net.vitel.net.sip > 70.38.15.82.sip: SIP, length: 543
SIP/2.0 407 Proxy Authentication Required
Via:
0x0000: 5349 502f 322e 3020 3430 3720 5072 6f78
0x0010: 7920 4175 7468 656e 7469 6361 7469 6f6e
0x0020: 2052 6571 7569 7265 640d 0a56 6961 3a20
15:08:58.489820 IP (tos 0x0, ttl 53, id 7357, offset 0, flags [none], proto UDP (17), length 571)
64.2.142.187.GIGe-net.vitel.net.sip > 70.38.15.82.sip: SIP, length: 543
SIP/2.0 407 Proxy Authentication Required
Via:
0x0000: 5349 502f 322e 3020 3430 3720 5072 6f78
0x0010: 7920 4175 7468 656e 7469 6361 7469 6f6e
0x0020: 2052 6571 7569 7265 640d 0a56 6961 3a20
15:08:58.538299 IP (tos 0x0, ttl 53, id 44263, offset 0, flags [none], proto UDP (17), length 571)
64.2.142.109.GIGe-net.vitel.net.sip > 70.38.15.82.sip: SIP, length: 543
SIP/2.0 407 Proxy Authentication Required
Via:
0x0000: 5349 502f 322e 3020 3430 3720 5072 6f78
0x0010: 7920 4175 7468 656e 7469 6361 7469 6f6e
0x0020: 2052 6571 7569 7265 640d 0a56 6961 3a20
15:08:58.587821 IP (tos 0x0, ttl 53, id 44264, offset 0, flags [none], proto UDP (17), length 571)
64.2.142.106.GIGe-net.vitel.net.sip > 70.38.15.82.sip: SIP, length: 543
SIP/2.0 407 Proxy Authentication Required
Via:
0x0000: 5349 502f 322e 3020 3430 3720 5072 6f78
0x0010: 7920 4175 7468 656e 7469 6361 7469 6f6e
0x0020: 2052 6571 7569 7265 640d 0a56 6961 3a20
15:09:00.439822 IP (tos 0x0, ttl 53, id 7358, offset 0, flags [none], proto UDP (17), length 571)
64.2.142.188.GIGe-net.vitel.net.sip > 70.38.15.82.sip: SIP, length: 543
SIP/2.0 407 Proxy Authentication Required
Via:
0x0000: 5349 502f 322e 3020 3430 3720 5072 6f78
0x0010: 7920 4175 7468 656e 7469 6361 7469 6f6e
0x0020: 2052 6571 7569 7265 640d 0a56 6961 3a20
15:09:00.488000 IP (tos 0x0, ttl 53, id 7359, offset 0, flags [none], proto UDP (17), length 571)
64.2.142.187.GIGe-net.vitel.net.sip > 70.38.15.82.sip: SIP, length: 543
SIP/2.0 407 Proxy Authentication Required
Via:
0x0000: 5349 502f 322e 3020 3430 3720 5072 6f78
0x0010: 7920 4175 7468 656e 7469 6361 7469 6f6e
0x0020: 2052 6571 7569 7265 640d 0a56 6961 3a20
15:09:00.537618 IP (tos 0x0, ttl 53, id 44265, offset 0, flags [none], proto UDP (17), length 571)
64.2.142.109.GIGe-net.vitel.net.sip > 70.38.15.82.sip: SIP, length: 543
SIP/2.0 407 Proxy Authentication Required
Via:
0x0000: 5349 502f 322e 3020 3430 3720 5072 6f78
0x0010: 7920 4175 7468 656e 7469 6361 7469 6f6e
0x0020: 2052 6571 7569 7265 640d 0a56 6961 3a20
15:09:00.585598 IP (tos 0x0, ttl 53, id 44266, offset 0, flags [none], proto UDP (17), length 571)
64.2.142.106.GIGe-net.vitel.net.sip > 70.38.15.82.sip: SIP, length: 543
SIP/2.0 407 Proxy Authentication Required
Via:
0x0000: 5349 502f 322e 3020 3430 3720 5072 6f78
0x0010: 7920 4175 7468 656e 7469 6361 7469 6f6e
0x0020: 2052 6571 7569 7265 640d 0a56 6961 3a20