Answer the question
In order to leave comments, you need to log in
Why is the incoming SIP call incorrectly determined or logged?
Asterisk 11.6-cert11
On an incoming extension of the form:
exten => _32242485Х,1,NoOp("Start call on ${EXTEN} from ${CALLERID(num)}")
exten => 322424850,1,NoOp("Start call on ${EXTEN} from ${CALLERID(num)}")
[general]
static = yes
writeprotect = yes
clearglobalvars = no
[pizza-gsm-in]
exten => s,1,NoOp("${CALLERID(number)}")
same => n,Goto(incoming-work,work,1)
[sip-dg-in]
exten => _32242485X,1,NoOp("Start call on ${EXTEN} from ${CALLERID(num)}")
same => n,GotoIfTime(12:00-12:30,*,*,*?incoming-work,work,1)
same => n,System(sh /etc/asterisk/mycall-night.sh ${CALLERID(num)})
same => n,Background(/var/lib/asterisk/sounds/data0/IVR4)
same => n,Hangup
[incoming-work]
exten => _work,1,NoOp(Start call day)
same => n,Set(CHANNEL(language)=ru)
same => n,Answer
same => n,Macro(monitor)
same => n,Wait(0.5)
same => n,Dial(SIP/101&SIP/102&SIP/103&SIP/104,30,Ttrm(moh3))
same => n,System(sh /etc/asterisk/mycall-missed.sh ${CALLERID(num)})
same => n,Background(/var/lib/asterisk/sounds/data0/IVR3)
same => n,Hangup
exten => _1,1,NoOp(The ${EXTEN} was pressed by ${CALLERID(num)})
same => n,System(sh /etc/asterisk/mycall-back.sh ${CALLERID(num)})
same => n,Hangup
[pizza-int]
include => local-calls
[local-calls]
exten => _1XX,1,NoOp(Start local call from ${CALLERID(num)})
same => n,Macro(monitor)
same => n,Dial(SIP/${EXTEN},,rTt)
same => n,Hangup
exten => _*1.,1,NoOp("**** Start Calling from ${CALLERID(number)}****")
same => n,Macro(monitor)
same => n,Dial(SIP/322424850/${EXTEN:2},,rTt)
same => n,Hangup
exten => _40,1,PickUP()
[general]
context = anonym
qualify = 900
nat = force_rport,comedia
externip = 94.153.XX.XX
localnet = 192.168.0.0/255.255.0.0
bindport = 5060
canreinvite = no
limitonpeers=yes
allowguest=no
allowoverlap=no
srvlookup = yes
subscribecontext = default
alwaysauthreject = yes
allowsubscribe=yes
notifyringing = yes
notifyhold = yes
callcounter = yes
[sip-trunk](!)
type = friend
host = dynamic
insecure = port,invite
context = sip-dg-in
dtmfmode = rfc2833
disallow = all
allow = alaw
host = 62.64.XX.XX
deny = 0.0.0.0/0.0.0.0
permit = 62.64.XX.XX/255.255.255.0
outboundproxy = 62.64.XX.XX
minexpiry = 3600
maxexpirey = 3600
nat=force_rport,comedia
canreinvite=no
subscribecontext=BLF_Group
call-limit = 3
[322424851](sip-trunk)
defaultuser = 322424851
secret = pass
fromuser = 322424851
busylevel=1
;call-limit = 1
[siptemp](!)
qualify = 600
type = friend
host = dynamic
transport = udp
encryption = no
context = pizza-int
disallow = all
allow = alaw
callgroup = 1
pickupgroup = 1
deny=0.0.0.0/0.0.0.0
permit=192.168.1.0/255.255.255.0
subscribecontext=BLF_Group
canreinvite=no
[101](siptemp);
defaultuser = 101
secret = pass
callerid = 101
call-limit = 1
busylevel = 1
Answer the question
In order to leave comments, you need to log in
And what is wrong here?
Exactly what is written in the dialplan is displayed (NoOp("Start call on ${EXTEN} from ${CALLERID(num)}")):
"Start call on 322424850 from 0508009669"
If you are talking about the channel "SIP/322424852-00000000 ", then what does the exten _32242485X have to do with it?
The [sip-trunk](!) pattern is invalid. You have two entities: host = dynamic and host = 62.64.XX.XX. Decide which one you need. I believe that host = 62.64.XX.XX, because it's not the provider that registers with you?
In the sip.conf you posted, by the way, there is no description of sips 322424850-52, but only 322424851.
Let's play telepaths. Most likely, you have three trunks per provider. This is a known issue, you can read more here .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question