SIP server replies "Relaying denied": Asterist req

I have budgetphone (3 numbers) and voipbuster.
Both providers work perfectly well with SPA2002 SIP adapters i have.
I use port 5060 5061 5062 and 5063

This means firewall, port and routing should be o.k. otherwise i would not be able to make and receive calls via the SIP adapters.

Now Asterisk:
I disabled one good working phone number on port 5060 and just want to register to the budgetphone server with asterisk

I have the following configuration and with tcpdump i compare the contents of the packets sent :
The packets sent by the sip adapters looks very good. The addresses where to reply to are in the packets.
Asterisk packets seem to be incomplete as you can see below.
No internal ip address is available.
After some testing i have to conclude:
I do not receive a correct reply from the budgetphone SIP server
because it says “Relaying denied”.

Any suggestions to make asterisk work like my SIP adapters ?

[31nummer]
type=friend
context=from-budgetphone
host=budgetphone.nl
fromuser=31nummer
fromdomain=budgetphone.nl
username=31nummer
insecure=very
nat=yes
secret=***
qualify=no
port=5060

extentions.conf:

[to-budgetphone]
exten => _9.,1,SetCallerID(31nummer)
exten => _9.,2,SetCIDName(Putgraaf)
exten => _9.,3,SetCIDNum(31nummer)
exten => _9.,4,Dial(SIP/${EXTEN:1}@31nummer)
exten => _9.,5,Hangup()

Asterisk :

16:45:00.490519 10.106.1.100.5060 > sip.dns-hosting.info.5060: udp 471 (DF)
0x0000 4500 01f3 0782 4000 4011 effc 0a6a 0164 E…@.@…j.d
0x0010 5117 e496 13c4 13c4 01df 0594 4f50 5449 Q…OPTI
0x0020 4f4e 5320 7369 703a 6275 6467 6574 7068 ONS.sip:budgetph
0x0030 6f6e 652e 6e6c 2053 4950 2f32 2e30 0d0a one.nl.SIP/2.0…
0x0040 5669 613a 2053 4950 2f32 2e30 2f55 4450 Via:.SIP/2.0/UDP
0x0050 2031 .1
16:45:01.489933 10.106.1.100.5060 > sip.dns-hosting.info.5060: udp 471 (DF)
0x0000 4500 01f3 0783 4000 4011 effb 0a6a 0164 E…@.@…j.d
0x0010 5117 e496 13c4 13c4 01df 0594 4f50 5449 Q…OPTI
0x0020 4f4e 5320 7369 703a 6275 6467 6574 7068 ONS.sip:budgetph
0x0030 6f6e 652e 6e6c 2053 4950 2f32 2e30 0d0a one.nl.SIP/2.0…
0x0040 5669 613a 2053 4950 2f32 2e30 2f55 4450 Via:.SIP/2.0/UDP
0x0050 2031 .1
16:45:02.490700 10.106.1.100.5060 > sip.dns-hosting.info.5060: udp 471 (DF)
0x0000 4500 01f3 0784 4000 4011 effa 0a6a 0164 E…@.@…j.d
0x0010 5117 e496 13c4 13c4 01df 0594 4f50 5449 Q…OPTI
0x0020 4f4e 5320 7369 703a 6275 6467 6574 7068 ONS.sip:budgetph
0x0030 6f6e 652e 6e6c 2053 4950 2f32 2e30 0d0a one.nl.SIP/2.0…
0x0040 5669 613a 2053 4950 2f32 2e30 2f55 4450 Via:.SIP/2.0/UDP
0x0050 2031 .1

Sipura kastje: (komt WEL antwoord van budgetphone)

16:45:02.664169 sip.dns-hosting.info.5060 > 10.106.1.196.5062: udp 264 (DF)
0x0000 4500 0124 0000 4000 3811 ffed 5117 e496 E…$…@.8…Q…
0x0010 0a6a 01c4 13c4 13c6 0110 359f 4f50 5449 .j…5.OPTI
0x0020 4f4e 5320 7369 703a 3331 3437 3535 3631 ONS.sip:31475561
0x0030 3139 3940 3130 2e30 2e30 2e32 3030 3a32 199@10.0.0.200:2
0x0040 3837 3320 5349 502f 322e 300d 0a56 6961 873.SIP/2.0…Via
0x0050 3a20 :.
16:45:02.677583 10.106.1.196.5062 > sip.dns-hosting.info.5060: udp 371 [tos 0x68]
0x0000 4568 018f 61eb 0000 fa11 1b2f 0a6a 01c4 Eh…a…/.j…
0x0010 5117 e496 13c6 13c4 017b 98cb 5349 502f Q…{…SIP/
0x0020 322e 3020 3230 3020 4f4b 0d0a 546f 3a20 2.0.200.OK…To:.
0x0030 3c73 6970 3a33 3134 3735 3536 3131 3939 <sip:31475561199
0x0040 4031 302e 302e 302e 3230 303a 3331 3939 @10.0.0.200:3199
0x0050 373e 7>

Sipura kastje: (komt WEL antwoord van budgetphone)

16:45:03.222609 sip.dns-hosting.info.5060 > 10.106.1.196.5061: udp 264 (DF)
0x0000 4500 0124 0000 4000 3811 ffed 5117 e496 E…$…@.8…Q…
0x0010 0a6a 01c4 13c4 13c5 0110 2fa0 4f50 5449 .j…/.OPTI
0x0020 4f4e 5320 7369 703a 3331 3437 3535 3636 ONS.sip:31475566
0x0030 3435 3540 3130 2e30 2e30 2e32 3030 3a32 455@10.0.0.200:2
0x0040 3837 3220 5349 502f 322e 300d 0a56 6961 872.SIP/2.0…Via
0x0050 3a20 :.
16:45:03.239306 10.106.1.196.5061 > sip.dns-hosting.info.5060: udp 371 [tos 0x68]
0x0000 4568 018f 61f6 0000 fa11 1b24 0a6a 01c4 Eh…a…$.j…
0x0010 5117 e496 13c5 13c4 017b cf26 5349 502f Q…{.&SIP/
0x0020 322e 3020 3230 3020 4f4b 0d0a 546f 3a20 2.0.200.OK…To:.
0x0030 3c73 6970 3a33 3134 3735 3536 3634 3535 <sip:31475566455
0x0040 4031 302e 302e 302e 3230 303a 3331 3939 @10.0.0.200:3199
0x0050 363e 6>

Asterisk wederom (komt GEEN antwoord van budgetphone)

16:45:03.490478 10.106.1.100.5060 > sip.dns-hosting.info.5060: udp 471 (DF)
0x0000 4500 01f3 0785 4000 4011 eff9 0a6a 0164 E…@.@…j.d
0x0010 5117 e496 13c4 13c4 01df 0594 4f50 5449 Q…OPTI
0x0020 4f4e 5320 7369 703a 6275 6467 6574 7068 ONS.sip:budgetph
0x0030 6f6e 652e 6e6c 2053 4950 2f32 2e30 0d0a one.nl.SIP/2.0…
0x0040 5669 613a 2053 4950 2f32 2e30 2f55 4450 Via:.SIP/2.0/UDP
0x0050 2031 .1
16:45:04.490220 10.106.1.100.5060 > sip.dns-hosting.info.5060: udp 471 (DF)
0x0000 4500 01f3 0786 4000 4011 eff8 0a6a 0164 E…@.@…j.d
0x0010 5117 e496 13c4 13c4 01df 0594 4f50 5449 Q…OPTI
0x0020 4f4e 5320 7369 703a 6275 6467 6574 7068 ONS.sip:budgetph
0x0030 6f6e 652e 6e6c 2053 4950 2f32 2e30 0d0a one.nl.SIP/2.0…
0x0040 5669 613a 2053 4950 2f32 2e30 2f55 4450 Via:.SIP/2.0/UDP
0x0050 2031 .1
Report to moderator 194.171.252.100
draaijer
Newbie
*
Online Online

Posts: 2

nslookup budgetphone.nl does not work
changed budgetphone.nl to sip.budgetprone.nl

Now I get the message Relaying denied :

19:36:02.885808 IP 10.106.1.100.sip > sip.dns-hosting.info.sip: UDP, length: 469
0x0000: 4500 01f1 0037 4000 4011 f749 0a6a 0164 E…7@.@…I.j.d
0x0010: 5117 e496 13c4 13c4 01dd ea6f 4f50 5449 Q…oOPTI
0x0020: 4f4e 5320 7369 703a 7369 702e 6275 6467 ONS.sip:sip.budg
0x0030: 6574 7068 6f6e 652e 6e6c 2053 4950 2f32 etphone.nl.SIP/2
0x0040: 2e30 0d0a 5669 613a 2053 4950 2f32 2e30 .0…Via:.SIP/2.0
0x0050: 2f55 /U
19:36:03.200315 IP sip.dns-hosting.info.sip > 10.106.1.100.sip: UDP, length: 367
0x0000: 4500 018b 0000 4000 3911 fee6 5117 e496 E…@.9…Q…
0x0010: 0a6a 0164 13c4 13c4 0177 ee8e 5349 502f .j.d…w…SIP/
0x0020: 322e 3020 3430 3320 5265 6c61 7969 6e67 2.0.403.Relaying
0x0030: 2064 656e 6965 640d 0a56 6961 3a20 5349 .denied…Via:.SI
0x0040: 502f 322e 302f 5544 5020 3836 2e38 312e P/2.0/UDP.86.81.
0x0050: 372e 7.