asterisk not responding OPTIONS package

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

asterisk not responding OPTIONS package

Postby gellert » Sun Oct 25, 2015 7:26 pm

hello!

i have this problem with my SIP provider, after 5 unsuccessful SIP/2.0 404 Not Found - OPTIONS package response my sip provider is blocking my access for 10 minutes.

I'm using Asterisk 11.7.0~dfsg-1ubuntu1

my sip.conf
Code: Select all
[general]
context=public
useragent=Z 3.9.32144 r32121
udpbindaddr=77.111.59.61:27040             ; IP address to bind UDP listen socket to (0.0.0.0 binds to all)
allowguest=no                  ; Allow or reject guest calls (default is yes)
defaultexpiry=300
tcpenable=no
transport=udp
srvlookup=yes
disallow=all
allow=ulaw
allow=alaw
;canreinvite=no
alwaysauthreject=yes

register => "DIGIUSERNAME":"DIGIPASSWORD"@register001.digikabel.hu/DIGIUSERNAME
register => "STUNTUSERNAME":"STUNTPASSWORD"@sip.stuntcalls.com

[digi]
type=friend
host=register001.digikabel.hu
canreinvite=no
disallow=all
allow=alaw
insecure=port,invite
username=DIGIUSERNAME
secret=DIGIPASSWORD
context=incoming
qualify=no
fromuser=DIGIUSERNAME
fromdomain=register001.digikabel.hu
nat=force_rport,comedia
dtmfmode=rfc2833

[stunt]
username=STUNTUSERNAME
secret=STUNTPASSWORD
type=peer
host=sip.stuntcalls.com
fromdomain=sip.stuntcalls.com
canreinvite=no
disllow=all
allow=alaw
insecure=invite,port
context=stunt_incoming
qualify=yes
nat=force_rport,comedia

[1001]
type=friend
secret=CLIENTPASSWORD
dtmfmode=rfc2833
host=dynamic
canreinvite=no
context=myphones
qualify=yes
nat=force_rport,comedia


extensions.conf
Code: Select all
[general]
static=yes
writeprotect=no
clearglobalvars=no

[globals]
; Global variables goes here

[incoming]
;DIGI incoming
exten => DIGIUSERNAME,1,Log(NOTICE, Incoming call from ${CALLERID(all)})
exten => DIGIUSERNAME,n,Answer
exten => DIGIUSERNAME,n,Ringing
exten => DIGIUSERNAME,n,Dial(SIP/1001)
exten => DIGIUSERNAME,n,Hangup()

[myphones]
;DIGI outgoing
exten => _9X.,1,Dial(SIP/digi/${EXTEN:1})
exten => _9X.,n,Hangup()

;DIGI outgoing+
exten => _9+X.,1,Dial(SIP/digi/${EXTEN:1})
exten => _9+X.,n,Hangup()

;STUNT outgoing
exten => _X.,1,Set(CALLERID(num)=+36301234567)
exten => _X.,n,Dial(SIP/stunt/${EXTEN})
exten => _X.,n,Hangup()
;STUNT outgoing+
exten => _+X.,1,Set(CALLERID(num)=+36301234567)
exten => _+X.,n,Dial(SIP/stunt/${EXTEN})
exten => _+X.,n,Hangup()

;kliensek
exten => 1001,1,Log(NOTICE, Incoming call from ${CALLERID(all)})
exten => 1001,n,Ringing
exten => 1001,n,Dial(SIP/1001)
exten => 1001,n,Hangup()


debug

Code: Select all
<--- SIP read from UDP:193.110.60.30:5060 --->
OPTIONS sip:DIGIUSERNAME@77.111.59.61:27040 SIP/2.0
Via: SIP/2.0/UDP 193.110.60.30:5060;branch=z9hG4bK3feead82e128438444111e04ecc2967taN0
Max-Forwards: 70
To: <sip:DIGIUSERNAME@193.110.60.30>
From: BgwLinkTest678304685 <sip:bgw@193.110.60.30>;tag=200307191120
Call-ID: 7018a7cc200307191120@193.110.60.30
CSeq: 1000 OPTIONS
Accept: application/sdp
Content-Length: 0

<------------->
--- (9 headers 0 lines) ---
Sending to 193.110.60.30:5060 (no NAT)
Looking for DIGIUSERNAME in public (domain 77.111.59.61)

<--- Transmitting (no NAT) to 193.110.60.30:5060 --->
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 193.110.60.30:5060;branch=z9hG4bK3feead82e128438444111e04ecc2967taN0;received=193.110.60.30
From: BgwLinkTest678304685 <sip:bgw@193.110.60.30>;tag=200307191120
To: <sip:DIGIUSERNAME@193.110.60.30>;tag=as286b38ea
Call-ID: 7018a7cc200307191120@193.110.60.30
CSeq: 1000 OPTIONS
Server: Z 3.9.32144 r32121
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Accept: application/sdp
Content-Length: 0


i'm already google'd out my hearth for some solution, but no success, yet.

I hope someone maybe david55 can help me? :wink:

I'm also contacted my sip provider and they said they see this:

Code: Select all
697 3246.297583 77.111.59.61 -> 193.110.60.30 SIP 591 Request: OPTIONS sip:register001.digikabel.hu |

3246.298484 193.110.60.30 -> 77.111.59.61 SIP 535 Status: 200 OK |

699 3306.127275 193.110.60.30 -> 77.111.59.61 SIP 413 Request: OPTIONS sip:DIGIUSERNAME@77.111.59.61:27040|

3306.128665 77.111.59.61 -> 193.110.60.30 SIP 546 Status: 404 Not Found |

3306.299410 77.111.59.61 -> 193.110.60.30 SIP 591 Request: OPTIONS sip:register001.digikabel.hu |

3306.300288 193.110.60.30 -> 77.111.59.61 SIP 535 Status: 200 OK |

703 3366.290569 193.110.60.30 -> 77.111.59.61 SIP 414 Request: OPTIONS sip:DIGIUSERNAME @77.111.59.61:27040

3366.291949 77.111.59.61 -> 193.110.60.30 SIP 547 Status: 404 Not Found |



Thanks!
gellert
Newsterisk
 
Posts: 1
Joined: Sun Oct 25, 2015 7:07 pm

Return to Asterisk Support

Who is online

Users browsing this forum: No registered users and 13 guests