Re: Проблема с отбиванием звонков
extensions.conf
---------------
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
userscontext=office
[office]
;---------------------------------------------------------------------------------------------------------
exten => _40004,1,Answer
exten => _40004,2,Set(CALLERID(num)=${CALLERID(num)})
exten => _40004,3,Read(podmenu,bu&hello,1,s,1,10)
exten => _40004,4,GotoIf($["${podmenu}" = "1"]?_40004,201:_40004,5)
exten => _40004,5,Goto(_40004,201)
;---------------------------------------------------------------------------------------------------------
;Техподдержка
;---------------------------------------------------------------------------------------------------------
exten => _40004,201,Dial(SIP/40033@from_ats,60,tm)
;---------------------------------------------------------------------------------------------------------
sip.conf
--------
[general]
context=office
allowguest=yes
allowoverlap=no
allowtransfer=yes
autocreatepeer=yes
bindport=5060
bindaddr=192.168.8.198
srvlookup=no
maxexpiry=3600
minexpiry=60
defaultexpiry=120
disallow=all
allow=alaw
allow=g729
language=ru
relaxdtmf=no
trustrpid = yes
sendrpid = yes
useragent=Asteriks
dtmfmode = rfc2833
canreinvite=yes
nat=no
defaultexpiry=3600
register => 40004@83.234.37.130
[from_ats]
type=friend
context=office
host=83.234.37.130
autocreatepeer=yes
canreinvite=yes
disallow=all
allow=alaw
allow=g729
nat=no
Лог звонка
----------
-- Executing [40004@office:1] Answer("SIP/5060-b67162c0", "") in new stack
-- Executing [40004@office:2] Set("SIP/5060-b67162c0", "CALLERID(num)=3165005") in new stack
-- Executing [40004@office:3] Read("SIP/5060-b67162c0", "podmenu,bu&hello,1,s,1,10") in new stack
-- Accepting a maximum of 1 digits.
-- <SIP/5060-b67162c0> Playing 'bu.gsm' (language 'ru')
-- User entered '2'
-- Executing [40004@office:4] GotoIf("SIP/5060-b67162c0", "0?_40004,201:_40004,5") in new stack
-- Goto (office,_40004,5)
-- Executing [_40004@office:5] Goto("SIP/5060-b67162c0", "_40004,201") in new stack
-- Goto (office,_40004,201)
-- Executing [_40004@office:201] Dial("SIP/5060-b67162c0", "SIP/40033@from_ats,60,tm") in new stack
== Using SIP RTP CoS mark 5
-- Called 40033@from_ats
-- Started music on hold, class 'default', on SIP/5060-b67162c0
-- SIP/from_ats-08240f60 is making progress passing it to SIP/5060-b67162c0
-- SIP/from_ats-08240f60 is ringing
-- SIP/from_ats-08240f60 is making progress passing it to SIP/5060-b67162c0
[Apr 20 10:47:16] WARNING[4720]: chan_sip.c:4224 create_addr: No such host: 3165005
-- SIP/from_ats-08240f60 answered SIP/5060-b67162c0
-- Stopped music on hold on SIP/5060-b67162c0
== Spawn extension (office, _40004, 201) exited non-zero on 'SIP/5060-b67162c0'
== Using SIP RTP CoS mark 5
[Apr 20 10:47:17] NOTICE[4720]: chan_sip.c:17295 handle_request_invite: Call from '40004' to extension '3165005' rejected because extension not found.
поясню
звоню я с 65005 НО станция отдает астеру номер как 3165005 (это можноисправить но толку будет наверное мало)
40004 номер астера
40033 с кем нужно соединить
звонок отправляется не на "другой" астрериск
уже весь мозг сломал
|