1. Операторы работают в CRM системе, там есть функция вызова click2call. При нажатии на номер телефона идет вызов, но вызывает ip-телефон сам себя. Если просто набрать номер на кнопках то вызов проходит нормально. Если click2call в трубке слышно "Не правильно набранный номер"
2. Поступает звонок на номер 105 (к примеру), вызов завершается, на экране телефона высвечивается номер пропущенного абонента и есть кнопка набрать этот номер, после нажатия звонок сбрасывается.
sip.conf
Код: Выделить всё
[general]
allowguest=no
alwaysauthreject=yes
bindaddr=0.0.0.0
bindport=5060
externip=внешний ip asterisk
localnet=192.168.0.1/255.255.255.0
transport=udp
useragent=Cisco
[im-tpl](!)
type=friend
host=dynamic
qualify=yes
port=5060
transport=udp
insecure=port,invite
nat=force_rport,comedia
canreinvite=no
directmedia=nonat
dtmfmode=rfc2833
context=outgoing
callgroup=1
pickupgroup=1
disallow=all
allow=alaw
allow=ulaw
allow=g729
[101](im-tpl)
defaultuser=101
secret=secret101
fromuser=101
[102](im-tpl)
defaultuser=102
secret=secret102
fromuser=102
[103](im-tpl)
defaultuser=103
secret=secret103
fromuser=103
[104](im-tpl)
defaultuser=104
secret=secret104
fromuser=104
[105](im-tpl)
defaultuser=105
secret=secret105
fromuser=105
[goip4-tpl-1]
type=friend
host=dynamic
qualify=yes
insecure=port,invite
nat=force_rport,comedia
canreinvite=no
directmedia=nonat
dtmfmode=rfc2833
context=incoming
disallow=all
allow=alaw
allow=ulaw
allow=g729
[life-1](goip4-tpl-1)
defaultuser=life-1
secret=secretlife-1
[kievstar-1](goip4-tpl-1)
defaultuser=kievstar-1
secret=secretkievstar-1
[vodafone-1](goip4-tpl-1)
defaultuser=vodafone-1
secret=secretvodafone-1
Код: Выделить всё
[globals]
[general]
autofallthriugh=yes
[default]
exten => _X.,1,Hangup
[incoming]
exten => _101,1,Set(fname=${CALLERID(number)}-${STRFTIME(${EPOCH},,%Y%m%d%H%M)}-${EXTEN})
exten => _101,2,MixMonitor(/var/spool/asterisk/monitor/${STRFTIME(,,%G/%m)}/${fname}.wav)
exten => _101,n,Dial(SIP/101,10)
exten => _101,n,Dial(SIP/102,10)
exten => _101,n,Dial(SIP/103,15)
exten => _101,n,Dial(SIP/104,10)
exten => _101,n,Dial(SIP/105,15)
exten => _101,n,Hangup
[outgoing]
;Первый слот, карточка Lifecell
exten => _0[6,7,9]3XXXXXXX,1,Dial(SIP/life-1/1${EXTEN},60)
exten => _0[6,7,9]3XXXXXXX,2,Hangup
exten => _380[6,7,9]3XXXXXXX,1,Dial(SIP/life-1/1${EXTEN},60)
exten => _380[6,7,9]3XXXXXXX,2,Hangup
;Второй слот, карточка Киевстар
exten => _06[7,8]XXXXXXX,1,Dial(SIP/kievstar-1/2${EXTEN},60)
exten => _06[7,8]XXXXXXX,2,Hangup
exten => _3806[7,8]XXXXXXX,1,Dial(SIP/kievstar-1/2${EXTEN},60)
exten => _3806[7,8]XXXXXXX,2,Hangup
exten => _09[6,7,8]XXXXXXX,1,Dial(SIP/kievstar-1/2${EXTEN},60)
exten => _09[6,7,8]XXXXXXX,2,Hangup
exten => _3809[6,7,8]XXXXXXX,1,Dial(SIP/kievstar-1/2${EXTEN},60)
exten => _3809[6,7,8]XXXXXXX,2,Hangup
;Третий слот, карточка Vodafone
exten => _050XXXXXXX,1,Dial(SIP/vodafone-1/3${EXTEN},60)
exten => _050XXXXXXX,2,Hangup
exten => _38050XXXXXXX,1,Dial(SIP/vodafone-1/3${EXTEN},60)
exten => _38050XXXXXXX,2,Hangup
exten => _066XXXXXXX,1,Dial(SIP/vodafone-1/3${EXTEN},60)
exten => _066XXXXXXX,2,Hangup
exten => _38066XXXXXXX,1,Dial(SIP/vodafone-1/3${EXTEN},60)
exten => _38066XXXXXXX,2,Hangup
exten => _095XXXXXXX,1,Dial(SIP/vodafone-1/3${EXTEN},60)
exten => _095XXXXXXX,2,Hangup
exten => _38095XXXXXX,1,Dial(SIP/vodafone-1/3${EXTEN},60)
exten => _38095XXXXXXX,2,Hangup
exten => _099XXXXXXX,1,Dial(SIP/vodafone-1/3${EXTEN},60)
exten => _099XXXXXXX,2,Hangup
exten => _38099XXXXXXX,1,Dial(SIP/vodafone-1/3${EXTEN},60)
exten => _38099XXXXXXX,2,Hangup
include => local
[local]
exten => _1XX,1,Dial(SIP/${EXTEN},60)
exten => _1XX,n,Hangup
Код: Выделить всё
Using SIP RTP CoS mark 5
-- Called 105
-- SIP/105-00001116 is ringing
> 0x7fced418ce40 -- Strict RTP learning after remote address set to: 192.168.0.105:5004
-- SIP/105-00001116 answered
-- Executing [380631841789@outgoing:1] Dial("SIP/105-00001116", "SIP/life-1/1380631841789,60") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/life-1/1380631841789
> 0x7fcee04577b0 -- Strict RTP learning after remote address set to: 192.168.0.118:10000
-- SIP/life-1-00001117 is making progress passing it to SIP/105-00001116
> 0x7fcee04577b0 -- Strict RTP switching to RTP target address 192.168.0.118:10000 as source
> 0x7fced418ce40 -- Strict RTP switching to RTP target address 192.168.0.105:5004 as source
> 0x7fced418ce40 -- Strict RTP learning complete - Locking on source address 192.168.0.105:5004
> 0x7fcee04577b0 -- Strict RTP learning complete - Locking on source address 192.168.0.118:10000
== Spawn extension (outgoing, 380631841789, 1) exited non-zero on 'SIP/105-00001116'
Код: Выделить всё
-- SIP/life-1-0000111e answered SIP/103-0000111d
-- Channel SIP/life-1-0000111e joined 'simple_bridge' basic-bridge <3f6e3b7f-0af1-4e01-9c6f-200c4de4977a>
-- Channel SIP/103-0000111d joined 'simple_bridge' basic-bridge <3f6e3b7f-0af1-4e01-9c6f-200c4de4977a>
> Bridge 3f6e3b7f-0af1-4e01-9c6f-200c4de4977a: switching from simple_bridge technology to native_rtp
> Remotely bridged 'SIP/103-0000111d' and 'SIP/life-1-0000111e' - media will flow directly between them
== Using SIP RTP CoS mark 5
> 0x3bf0150 -- Strict RTP learning after remote address set to: 192.168.0.105:5004
-- Executing [380668089257@outgoing:1] Dial("SIP/105-00001121", "SIP/vodafone-1/3380668089257,60") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/vodafone-1/3380668089257
> 0x7fcebc528700 -- Strict RTP learning after remote address set to: 192.168.0.118:10004
-- SIP/vodafone-1-00001122 is making progress passing it to SIP/105-00001121
> 0x7fcebc528700 -- Strict RTP switching to RTP target address 192.168.0.118:10004 as source
-- SIP/vodafone-1-00001122 is making progress passing it to SIP/105-00001121
> 0x3bf0150 -- Strict RTP switching to RTP target address 192.168.0.105:5004 as source
> 0x3bf0150 -- Strict RTP learning complete - Locking on source address 192.168.0.105:5004
> 0x7fcebc528700 -- Strict RTP learning complete - Locking on source address 192.168.0.118:10004
== Spawn extension (outgoing, 380668089257, 1) exited non-zero on 'SIP/105-00001121'