Dear all,
first post here, hello everyone!
I’ve got a simple Asterisk setup to basically play a Lenny installation on my VoIP number. Everything works as intended only for a few moments after a reload or Asterisk restart. Shortly after, if I call my number the incoming call is diverted to some other (unknown, not always the same) number.
I cannot find any sign of this transfer in my Asterisk logs and I do not see (with tcpdump) any incoming SIP traffic when I perform the second call.
I suspect some issue on the provider side but
- it’s a major italian ISP if I stop my Asterisk instance I get the “temporary unavailable message” every single time I call my number hence the defect seems to be present only when Asterisk is active.
Any clue?
Here are my configs:
Asterisk 13.14.1~dfsg-2+deb9u4
sip.conf:
[general]
context=public ; Default context for incoming calls. Defaults to 'default'
allowoverlap=no ; Disable overlap dialing support. (Default is yes)
udpbindaddr=0.0.0.0:5060 ; IP address to bind UDP listen socket to (0.0.0.0 binds to all)
transport=udp ; Set the default transports. The order determines the primary default transport.
srvlookup=yes
localnet=192.168.1.0/255.255.255.0 ; Also RFC1918
externaddr = my.internet.address:5060 ; UDP on this port is sent to my Asterisk box by my router
register => +mynum@"telecomitalia.it:5060":mypass:+mynum@out.bound.proxy:5060
[timfibra]
context=default
username=+mynum
type=peer
secret=mypass
qualify=yes
outboundproxy=out.bound.proxy
insecure=invite
dtmfmode=rfc2833
host=telecomitalia.it
fromuser=+mynum
formdomain=telecomitalia.it
callreinvite=no
directrtpsetup=no
directmedia=no
extensions.conf:
[default]
exten => s,1,Noop()
same => n,Answer()
same => n,WaitExten(2)
exten => t,1,Set(i=1)
same => n,Playback(Lenny/Daniele1)
same => n,BackgroundDetect(Lenny/backgroundnoise,1000)
exten => talk,1,Set(i=${IF($["0${i}"="016"]?7:$[0${i}+1])})
same => n,Playback(Lenny/Daniele${i})
same => n,BackgroundDetect(Lenny/backgroundnoise,1000)
exten => secretnum,1,Wait(1) ;this is used to record audio files
same => n,Record(Lenny/Daniele.ulaw)
same => n,Wait(1)
same => n,Playback(${RECORDED_FILE})
same => n,Hungup()
Any help would be really much appreciated, I have no clue what I’ve done to mess this up.
Thanks in advance,
Daniele