ooh323 → AVAYA S8300. Проблема исходящей связи
Подключен по ooh323 к avaya s8300.
На астериске номера 14ХХ
на авае 7-значные. выход на аваю по шестерке (потом она отрезается, отправляется только 7 цифр)
Входящие с аваи в сторону сип-софтфона астериска проходят удачно. Голос в обе стороны нормальный.
А вот исходящие с астериска (с сип-софтфона) на аваю не идут, я так полагаю даже в транк аваи (трассировка транка на авае при входящих с астериска пустая).
По SIP-транку не вариант связать - нет лицензий на авае и не предвидится
Навешивать freepbx elastix и т.п. как то не охота, хочется разобраться в чистом *
ooh323.conf
[general]
h323id=ObjSysAsterisk
port=1720
bindaddr=0.0.0.0
context=h323-in
h323id=ObjSysAsterisk
disallow=all
allow=alaw
allow=ulaw
;canreinvite=no
fasstart=on
tunneling=on
h245tunneling=yes
dtmfmode=rfc2833
h245tunneling=yes
mediawaitforconnect=yes
logfile=/var/log/asterisk/h323_log
rtptimeout=60
[10.240.63.36]
type=friend
host=10.240.63.36
port=1720
;context=from-sip
;context=h323-out
disallow=all
allow=alaw
allow=ulaw
;canreinvite=no
dtmfmode=rfc2833
h323id=ObjSysAsterisk
port=1720
bindaddr=0.0.0.0
context=h323-in
h323id=ObjSysAsterisk
disallow=all
allow=alaw
allow=ulaw
;canreinvite=no
fasstart=on
tunneling=on
h245tunneling=yes
dtmfmode=rfc2833
h245tunneling=yes
mediawaitforconnect=yes
logfile=/var/log/asterisk/h323_log
rtptimeout=60
[10.240.63.36]
type=friend
host=10.240.63.36
port=1720
;context=from-sip
;context=h323-out
disallow=all
allow=alaw
allow=ulaw
;canreinvite=no
dtmfmode=rfc2833
extensions.conf
[general]
autofallthrough=yes
[default]
exten => _X.,1,Dial(SIP/${EXTEN:-4})
[h323-in];Number dialed from Avaya
exten => _14X[1-9],1,Dial(SIP/${EXTEN},30,tTr)
exten => h,1,Hangup()
exten => _X.,1,Dial(SIP/${EXTEN})
exten => _X.,n,Wait(25)
;exten => s,1,system(echo "${DATETIME} - ${CALLERID} - ${CHANNEL}" >> /var/log/asterisk/calls1)
exten => _X.,n,HangUp()
[h323-out]
;exten =>_6XXX14XX,1,Dial(SIP/${EXTEN:-4})
exten =>_6X.,1,Dial(OOH323/${EXTEN:1}@10.240.63.36)
exten => _14XX,1,Dial(SIP/${EXTEN},30,tTr)
exten => h,1,Hangup()
;${EXTEN:-4},30,tTr
;context=h323-in
autofallthrough=yes
[default]
exten => _X.,1,Dial(SIP/${EXTEN:-4})
[h323-in];Number dialed from Avaya
exten => _14X[1-9],1,Dial(SIP/${EXTEN},30,tTr)
exten => h,1,Hangup()
exten => _X.,1,Dial(SIP/${EXTEN})
exten => _X.,n,Wait(25)
;exten => s,1,system(echo "${DATETIME} - ${CALLERID} - ${CHANNEL}" >> /var/log/asterisk/calls1)
exten => _X.,n,HangUp()
[h323-out]
;exten =>_6XXX14XX,1,Dial(SIP/${EXTEN:-4})
exten =>_6X.,1,Dial(OOH323/${EXTEN:1}@10.240.63.36)
exten => _14XX,1,Dial(SIP/${EXTEN},30,tTr)
exten => h,1,Hangup()
;${EXTEN:-4},30,tTr
;context=h323-in
sip.conf
[general]
language=ru
dtmfmode=rfc2833
allowguest=yes
srvlookup=yes
qualify=yes
udpbindaddr=0.0.0.0
canreinvite=no
videosupport=yes
tcpenable=no
[features](!)
type=friend
;transport=tcp
secret=123456
host=dynamic
disallow=all
allow=alaw
allow=ulaw
;allow=g722
allow=h263
allow=h264
context=h323-out
limitonpeers=yes
callcounter=yes
call-limit=100
nat=no
qualify=yes
canreinvite=no
[1401](features)
callerid="asterisk test1"
[1402](features)
callerid="asterisk test2"
[1403](features)
callerid="asterisk test2"
language=ru
dtmfmode=rfc2833
allowguest=yes
srvlookup=yes
qualify=yes
udpbindaddr=0.0.0.0
canreinvite=no
videosupport=yes
tcpenable=no
[features](!)
type=friend
;transport=tcp
secret=123456
host=dynamic
disallow=all
allow=alaw
allow=ulaw
;allow=g722
allow=h263
allow=h264
context=h323-out
limitonpeers=yes
callcounter=yes
call-limit=100
nat=no
qualify=yes
canreinvite=no
[1401](features)
callerid="asterisk test1"
[1402](features)
callerid="asterisk test2"
[1403](features)
callerid="asterisk test2"
Лог звонка с аваи на астериск:
asterisk*CLI>
--- onNewCallCreated 7fa344014ab8: ooh323c_129
+++ onNewCallCreated ooh323c_129
--- ooh323_onReceivedSetup ooh323c_129
--- ooh323_alloc
+++ ooh323_alloc
--- find_user: (null), 10.240.63.36
+++ find_user
Adding capabilities to call(incoming, ooh323c_129)
Adding g711 alaw capability to call(incoming, ooh323c_129)
Adding g711 ulaw capability to call(incoming, ooh323c_129)
--- ooh323_new - 10.240.63.36
+++ h323_new
--- configure_local_rtp
+++ configure_local_rtp
+++ ooh323_onReceivedSetup - Determined context h323-in, extension 1402
-- Executing [1402@h323-in:1] Dial("OOH323/10.240.63.36-97", "SIP/1402,30,tTr") in new stack
== Using SIP VIDEO CoS mark 6
== Using SIP RTP CoS mark 5
+++ ooh323 get_rtp_peer
ooh323_get_rtp_peer OOH323/10.240.63.36-97 -> (null):0, 2
--- ooh323 get_rtp_peer, res = 2
-- Called SIP/1402
----- ooh323_indicate 3 on call ooh323c_129
++++ ooh323_indicate 3 on ooh323c_129 is -1
----- ooh323_indicate 22 on call ooh323c_129
++++ ooh323_indicate 22 on ooh323c_129 is -1
----- ooh323_indicate 22 on call ooh323c_129
++++ ooh323_indicate 22 on ooh323c_129 is -1
----- ooh323_indicate 33 on call ooh323c_129
++++ ooh323_indicate 33 on ooh323c_129 is -1
-- SIP/1402-000000d9 is ringing
----- ooh323_indicate 3 on call ooh323c_129
++++ ooh323_indicate 3 on ooh323c_129 is -1
----- ooh323_indicate 33 on call ooh323c_129
++++ ooh323_indicate 33 on ooh323c_129 is -1
-- SIP/1402-000000d9 is ringing
--- ooh323_update_writeformat alaw/20
--- find_call
+++ find_call
Writeformat before update slin/(alaw)
+++ ooh323_update_writeformat
--- setup_rtp_connection 10.248.79.1:2054
--- find_call
+++ find_call
+++ setup_rtp_connection
> 0x7fa344005d00 -- Probation passed - setting RTP source address to 10.248.79.1:2054
[Jun 9 19:48:43] WARNING[1281][C-0000010f]: chan_sip.c:10207 process_sdp: Ignoring video stream offer because port number is zero
----- ooh323_indicate 33 on call ooh323c_129
++++ ooh323_indicate 33 on ooh323c_129 is -1
----- ooh323_indicate 22 on call ooh323c_129
++++ ooh323_indicate 22 on ooh323c_129 is -1
-- SIP/1402-000000d9 answered OOH323/10.240.63.36-97
----- ooh323_indicate -1 on call ooh323c_129
++++ ooh323_indicate -1 on ooh323c_129 is -1
--- ooh323_answer
--- onCallEstablished ooh323c_129
--- find_call
+++ find_call
+++ onCallEstablished ooh323c_129
+++ ooh323_answer
----- ooh323_indicate -1 on call ooh323c_129
++++ ooh323_indicate -1 on ooh323c_129 is -1
----- ooh323_indicate 20 on call ooh323c_129
++++ ooh323_indicate 20 on ooh323c_129 is -1
+++ ooh323 get_rtp_peer
ooh323_get_rtp_peer OOH323/10.240.63.36-97 -> 10.248.79.1:2054, 2
--- ooh323 get_rtp_peer, res = 2
> 0x7fa3400367f0 -- Probation passed - setting RTP source address to 10.248.12.92:40044
--- ooh323_update_writeformat alaw/20
--- find_call
+++ find_call
Writeformat before update alaw/(alaw)
+++ ooh323_update_writeformat
--- setup_rtp_connection 10.248.13.103:6348
--- find_call
+++ find_call
+++ setup_rtp_connection
> 0x7fa344005d00 -- Probation passed - setting RTP source address to 10.248.79.1:2054
> 0x7fa344005d00 -- Switching RTP source address to 10.248.13.103:6348
----- ooh323_indicate 20 on call ooh323c_129
++++ ooh323_indicate 20 on ooh323c_129 is -1
-- Executing [h@h323-in:1] Hangup("OOH323/10.240.63.36-97", "") in new stack
== Spawn extension (h323-in, h, 1) exited non-zero on 'OOH323/10.240.63.36-97'
== Spawn extension (h323-in, 1402, 1) exited non-zero on 'OOH323/10.240.63.36-97'
--- ooh323_hangup
hanging 10.240.63.36 with cause: 16
--- close_rtp_connection
--- find_call
+++ find_call
+++ close_rtp_connection
--- onCallCleared ooh323c_129
--- find_call
+++ find_call
+++ onCallCleared
+++ ooh323_hangup
--- ooh323_destroy
Destroying 10.240.63.36
Destroying ooh323c_129
--- find_user: (null), 10.240.63.36
+++ find_user
+++ ooh323_destroy
--- onNewCallCreated 7fa344014ab8: ooh323c_129
+++ onNewCallCreated ooh323c_129
--- ooh323_onReceivedSetup ooh323c_129
--- ooh323_alloc
+++ ooh323_alloc
--- find_user: (null), 10.240.63.36
+++ find_user
Adding capabilities to call(incoming, ooh323c_129)
Adding g711 alaw capability to call(incoming, ooh323c_129)
Adding g711 ulaw capability to call(incoming, ooh323c_129)
--- ooh323_new - 10.240.63.36
+++ h323_new
--- configure_local_rtp
+++ configure_local_rtp
+++ ooh323_onReceivedSetup - Determined context h323-in, extension 1402
-- Executing [1402@h323-in:1] Dial("OOH323/10.240.63.36-97", "SIP/1402,30,tTr") in new stack
== Using SIP VIDEO CoS mark 6
== Using SIP RTP CoS mark 5
+++ ooh323 get_rtp_peer
ooh323_get_rtp_peer OOH323/10.240.63.36-97 -> (null):0, 2
--- ooh323 get_rtp_peer, res = 2
-- Called SIP/1402
----- ooh323_indicate 3 on call ooh323c_129
++++ ooh323_indicate 3 on ooh323c_129 is -1
----- ooh323_indicate 22 on call ooh323c_129
++++ ooh323_indicate 22 on ooh323c_129 is -1
----- ooh323_indicate 22 on call ooh323c_129
++++ ooh323_indicate 22 on ooh323c_129 is -1
----- ooh323_indicate 33 on call ooh323c_129
++++ ooh323_indicate 33 on ooh323c_129 is -1
-- SIP/1402-000000d9 is ringing
----- ooh323_indicate 3 on call ooh323c_129
++++ ooh323_indicate 3 on ooh323c_129 is -1
----- ooh323_indicate 33 on call ooh323c_129
++++ ooh323_indicate 33 on ooh323c_129 is -1
-- SIP/1402-000000d9 is ringing
--- ooh323_update_writeformat alaw/20
--- find_call
+++ find_call
Writeformat before update slin/(alaw)
+++ ooh323_update_writeformat
--- setup_rtp_connection 10.248.79.1:2054
--- find_call
+++ find_call
+++ setup_rtp_connection
> 0x7fa344005d00 -- Probation passed - setting RTP source address to 10.248.79.1:2054
[Jun 9 19:48:43] WARNING[1281][C-0000010f]: chan_sip.c:10207 process_sdp: Ignoring video stream offer because port number is zero
----- ooh323_indicate 33 on call ooh323c_129
++++ ooh323_indicate 33 on ooh323c_129 is -1
----- ooh323_indicate 22 on call ooh323c_129
++++ ooh323_indicate 22 on ooh323c_129 is -1
-- SIP/1402-000000d9 answered OOH323/10.240.63.36-97
----- ooh323_indicate -1 on call ooh323c_129
++++ ooh323_indicate -1 on ooh323c_129 is -1
--- ooh323_answer
--- onCallEstablished ooh323c_129
--- find_call
+++ find_call
+++ onCallEstablished ooh323c_129
+++ ooh323_answer
----- ooh323_indicate -1 on call ooh323c_129
++++ ooh323_indicate -1 on ooh323c_129 is -1
----- ooh323_indicate 20 on call ooh323c_129
++++ ooh323_indicate 20 on ooh323c_129 is -1
+++ ooh323 get_rtp_peer
ooh323_get_rtp_peer OOH323/10.240.63.36-97 -> 10.248.79.1:2054, 2
--- ooh323 get_rtp_peer, res = 2
> 0x7fa3400367f0 -- Probation passed - setting RTP source address to 10.248.12.92:40044
--- ooh323_update_writeformat alaw/20
--- find_call
+++ find_call
Writeformat before update alaw/(alaw)
+++ ooh323_update_writeformat
--- setup_rtp_connection 10.248.13.103:6348
--- find_call
+++ find_call
+++ setup_rtp_connection
> 0x7fa344005d00 -- Probation passed - setting RTP source address to 10.248.79.1:2054
> 0x7fa344005d00 -- Switching RTP source address to 10.248.13.103:6348
----- ooh323_indicate 20 on call ooh323c_129
++++ ooh323_indicate 20 on ooh323c_129 is -1
-- Executing [h@h323-in:1] Hangup("OOH323/10.240.63.36-97", "") in new stack
== Spawn extension (h323-in, h, 1) exited non-zero on 'OOH323/10.240.63.36-97'
== Spawn extension (h323-in, 1402, 1) exited non-zero on 'OOH323/10.240.63.36-97'
--- ooh323_hangup
hanging 10.240.63.36 with cause: 16
--- close_rtp_connection
--- find_call
+++ find_call
+++ close_rtp_connection
--- onCallCleared ooh323c_129
--- find_call
+++ find_call
+++ onCallCleared
+++ ooh323_hangup
--- ooh323_destroy
Destroying 10.240.63.36
Destroying ooh323c_129
--- find_user: (null), 10.240.63.36
+++ find_user
+++ ooh323_destroy
Все нормально - соединение установлено махом, слышно нормально в обе стороны.
А вот лог звонка с астериска на аваю:
asterisk*CLI>
== Using SIP VIDEO CoS mark 6
== Using SIP RTP CoS mark 5
-- Executing [68851030@h323-out:1] Dial("SIP/1402-000000da", "OOH323/8851030@10.240.63.36") in new stack
--- ooh323_request - data 8851030@10.240.63.36 format (alaw)
--- ooh323_alloc
+++ ooh323_alloc
--- find_peer "10.240.63.36"
comparing with "10.240.63.36"
found matching peer
+++ find_peer "10.240.63.36"
--- ooh323_new - 10.240.63.36
+++ h323_new
--- onNewCallCreated 7fa33c034d08: ooh323c_o_89
--- find_call
+++ find_call
Outgoing call 10.240.63.36(ooh323c_o_89) - Codec prefs - (alaw|ulaw)
Adding capabilities to call(outgoing, ooh323c_o_89)
Adding g711 alaw capability to call(outgoing, ooh323c_o_89)
Adding g711 ulaw capability to call(outgoing, ooh323c_o_89)
--- configure_local_rtp
+++ configure_local_rtp
+++ onNewCallCreated ooh323c_o_89
+++ ooh323_request
----- ooh323_queryoption 16 on channel OOH323/10.240.63.36-98
+++++ ooh323_queryoption 16 on channel OOH323/10.240.63.36-98
+++ ooh323 get_rtp_peer
ooh323_get_rtp_peer OOH323/10.240.63.36-98 -> (null):0, 2
--- ooh323 get_rtp_peer, res = 2
--- ooh323_call- 8851030@10.240.63.36
+++ ooh323_call
-- Called OOH323/8851030@10.240.63.36
--- onOutgoingCall 7fa33c034d08: ooh323c_o_89
--- find_call
+++ find_call
setting callid number 1402
+++ onOutgoingCall ooh323c_o_89
--- onCallCleared ooh323c_o_89
--- find_call
+++ find_call
--- ooh323_hangup
+++ ooh323_hangup
== Everyone is busy/congested at this time (1:0/1/0)
-- Auto fallthrough, channel 'SIP/1402-000000da' status is 'CONGESTION'
-- Executing [h@h323-out:1] Hangup("SIP/1402-000000da", "") in new stack
== Spawn extension (h323-out, h, 1) exited non-zero on 'SIP/1402-000000da'
+++ onCallCleared
--- ooh323_destroy
Destroying 10.240.63.36
Destroying ooh323c_o_89
+++ ooh323_destroy
== Using SIP VIDEO CoS mark 6
== Using SIP RTP CoS mark 5
-- Executing [68851030@h323-out:1] Dial("SIP/1402-000000da", "OOH323/8851030@10.240.63.36") in new stack
--- ooh323_request - data 8851030@10.240.63.36 format (alaw)
--- ooh323_alloc
+++ ooh323_alloc
--- find_peer "10.240.63.36"
comparing with "10.240.63.36"
found matching peer
+++ find_peer "10.240.63.36"
--- ooh323_new - 10.240.63.36
+++ h323_new
--- onNewCallCreated 7fa33c034d08: ooh323c_o_89
--- find_call
+++ find_call
Outgoing call 10.240.63.36(ooh323c_o_89) - Codec prefs - (alaw|ulaw)
Adding capabilities to call(outgoing, ooh323c_o_89)
Adding g711 alaw capability to call(outgoing, ooh323c_o_89)
Adding g711 ulaw capability to call(outgoing, ooh323c_o_89)
--- configure_local_rtp
+++ configure_local_rtp
+++ onNewCallCreated ooh323c_o_89
+++ ooh323_request
----- ooh323_queryoption 16 on channel OOH323/10.240.63.36-98
+++++ ooh323_queryoption 16 on channel OOH323/10.240.63.36-98
+++ ooh323 get_rtp_peer
ooh323_get_rtp_peer OOH323/10.240.63.36-98 -> (null):0, 2
--- ooh323 get_rtp_peer, res = 2
--- ooh323_call- 8851030@10.240.63.36
+++ ooh323_call
-- Called OOH323/8851030@10.240.63.36
--- onOutgoingCall 7fa33c034d08: ooh323c_o_89
--- find_call
+++ find_call
setting callid number 1402
+++ onOutgoingCall ooh323c_o_89
--- onCallCleared ooh323c_o_89
--- find_call
+++ find_call
--- ooh323_hangup
+++ ooh323_hangup
== Everyone is busy/congested at this time (1:0/1/0)
-- Auto fallthrough, channel 'SIP/1402-000000da' status is 'CONGESTION'
-- Executing [h@h323-out:1] Hangup("SIP/1402-000000da", "") in new stack
== Spawn extension (h323-out, h, 1) exited non-zero on 'SIP/1402-000000da'
+++ onCallCleared
--- ooh323_destroy
Destroying 10.240.63.36
Destroying ooh323c_o_89
+++ ooh323_destroy
отбивается сразу.
И еще лог звонка с другого софтфона на аваю:
asterisk*CLI>
-- Registered SIP '1401' at 10.248.12.31:46757
[Jun 9 19:55:24] NOTICE[1281]: chan_sip.c:23655 handle_response_peerpoke: Peer '1401' is now Reachable. (472ms / 2000ms)
[Jun 9 19:55:24] NOTICE[1281]: chan_sip.c:27942 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 1401
== Using SIP VIDEO CoS mark 6
== Using SIP RTP CoS mark 5
-- Executing [68851030@h323-out:1] Dial("SIP/1401-000000db", "OOH323/8851030@10.240.63.36") in new stack
--- ooh323_request - data 8851030@10.240.63.36 format (alaw)
--- ooh323_alloc
+++ ooh323_alloc
--- find_peer "10.240.63.36"
comparing with "10.240.63.36"
found matching peer
+++ find_peer "10.240.63.36"
--- ooh323_new - 10.240.63.36
+++ h323_new
--- onNewCallCreated 7fa33c03f3e8: ooh323c_o_90
--- find_call
+++ find_call
Outgoing call 10.240.63.36(ooh323c_o_90) - Codec prefs - (alaw|ulaw)
Adding capabilities to call(outgoing, ooh323c_o_90)
Adding g711 alaw capability to call(outgoing, ooh323c_o_90)
Adding g711 ulaw capability to call(outgoing, ooh323c_o_90)
--- configure_local_rtp
+++ configure_local_rtp
+++ onNewCallCreated ooh323c_o_90
+++ ooh323_request
----- ooh323_queryoption 16 on channel OOH323/10.240.63.36-99
+++++ ooh323_queryoption 16 on channel OOH323/10.240.63.36-99
+++ ooh323 get_rtp_peer
ooh323_get_rtp_peer OOH323/10.240.63.36-99 -> (null):0, 2
--- ooh323 get_rtp_peer, res = 2
--- ooh323_call- 8851030@10.240.63.36
+++ ooh323_call
-- Called OOH323/8851030@10.240.63.36
--- onOutgoingCall 7fa33c03f3e8: ooh323c_o_90
--- find_call
+++ find_call
setting callid number 1401
+++ onOutgoingCall ooh323c_o_90
--- onCallCleared ooh323c_o_90
--- find_call
+++ find_call
--- ooh323_hangup
+++ ooh323_hangup
== Everyone is busy/congested at this time (1:0/1/0)
-- Auto fallthrough, channel 'SIP/1401-000000db' status is 'CONGESTION'
-- Executing [h@h323-out:1] Hangup("SIP/1401-000000db", "") in new stack
== Spawn extension (h323-out, h, 1) exited non-zero on 'SIP/1401-000000db'
+++ onCallCleared
--- ooh323_destroy
Destroying 10.240.63.36
Destroying ooh323c_o_90
+++ ooh323_destroy
… та же беда – обрыв. На софтфоне высвечивает «503/Service Unavailable»
В чем могут быть грабли?
Заранее благодарю за подсказку где копать
PS: очень надеюсь на "тычек носом в лужу" таких гуру как ded =)
_________________
Обновленный chan_h323 с поддержкой T.38 для Asterisk 1.8, 10, 11, 12 и SVN trunk - http://code.google.com/p/ast-h323/
| amateur @ Вт Июн 10, 2014 15:27 писал(а): |
| Какой IP-адрес Asterisk прописан в ip-node-names на Avaya? С какого реально приходит запрос на установку соединения? |
В айпинод на авае прописан айпишник астериска.
Сейчас не могу сказать, далеко от авайки чтобы трейсы сделать. С утра гляну - отпишусь.
Вопрос немного не по теме топика: Обновленный chan_h323, что у Вас в подписи - устанавливается на чистую систему (т.е. как по мануалам собирать H323 из Open H.323 v1.18.0 и PWLib v1.10.0)? Или можно на установленную систему с уже установленным астериском (эластиксом, фрипбиксом и т.п.) доустановить? Прошу заранее простить за нубский вопрос
| amateur @ Вт Июн 10, 2014 15:27 писал(а): |
| Какой IP-адрес Asterisk прописан в ip-node-names на Avaya? С какого реально приходит запрос на установку соединения? |
Посмотрел трассировку.... Запросы со стороны астериска не прилетают
При наборе с аваи на астер в трассировщике аваи:
20:03:49 Calling party station 1030 cid 0x2bf
20:03:49 Calling Number & Name 1030 IMYA
20:03:49 dial 1402 route:AAR
20:03:49 term trunk-group 8 cid 0x2bf
20:03:49 dial 1402 route:AAR
20:03:49 route-pattern 8 preference 1 cid 0x2bf
20:03:49 seize trunk-group 8 member 6 cid 0x2bf
20:03:49 Calling Number & Name NO-CPNumber NO-CPName
20:03:49 Setup digits 1402
20:03:49 Calling Number & Name NO-CPNumber NO-CPName
20:03:49 Proceed trunk-group 8 member 6 cid 0x2bf
20:03:51 denial event 1178: Normal call clearing D1=0x8fe D2=0x50f10
20:03:51 idle trunk-group 8 member 6 cid 0x2bf
20:03:49 Calling Number & Name 1030 IMYA
20:03:49 dial 1402 route:AAR
20:03:49 term trunk-group 8 cid 0x2bf
20:03:49 dial 1402 route:AAR
20:03:49 route-pattern 8 preference 1 cid 0x2bf
20:03:49 seize trunk-group 8 member 6 cid 0x2bf
20:03:49 Calling Number & Name NO-CPNumber NO-CPName
20:03:49 Setup digits 1402
20:03:49 Calling Number & Name NO-CPNumber NO-CPName
20:03:49 Proceed trunk-group 8 member 6 cid 0x2bf
20:03:51 denial event 1178: Normal call clearing D1=0x8fe D2=0x50f10
20:03:51 idle trunk-group 8 member 6 cid 0x2bf
При звонке с астериска на аваю - пусто =(
При этом в логе аваи:
asterisk*CLI>
== Using SIP RTP CoS mark 5
-- Executing [68851030@default] Dial("SIP/1402-00000015", "OOH323/avaya/68851030,60,tTr") in new stack
--- ooh323_request - data avaya/68851030 format (ulaw)
--- ooh323_alloc
+++ ooh323_alloc
--- find_peer "avaya"
comparing with "10.240.63.36"
found matching peer
+++ find_peer "avaya"
--- ooh323_new - avaya
+++ h323_new
--- onNewCallCreated b7506640: ooh323c_o_9
--- find_call
+++ find_call
Outgoing call avaya(ooh323c_o_9) - Codec prefs - (alaw|ulaw)
Adding capabilities to call(outgoing, ooh323c_o_9)
Adding g711 alaw capability to call(outgoing, ooh323c_o_9)
Adding g711 ulaw capability to call(outgoing, ooh323c_o_9)
--- configure_local_rtp
+++ configure_local_rtp
+++ onNewCallCreated ooh323c_o_9
+++ ooh323_request
----- ooh323_queryoption 16 on channel OOH323/avaya-26
+++++ ooh323_queryoption 16 on channel OOH323/avaya-26
+++ ooh323 get_rtp_peer
ooh323_get_rtp_peer OOH323/avaya-26 -> (null):0, 2
--- ooh323 get_rtp_peer, res = 2
--- ooh323_call- avaya/68851030
+++ ooh323_call
-- Called OOH323/avaya/68851030
--- onOutgoingCall b7506640: ooh323c_o_9
--- find_call
+++ find_call
setting callid number 1402
+++ onOutgoingCall ooh323c_o_9
--- onCallCleared ooh323c_o_9
--- find_call
+++ find_call
--- ooh323_hangup
+++ ooh323_hangup
== Everyone is busy/congested at this time (1:0/1/0)
-- Auto fallthrough, channel 'SIP/1402-00000015' status is 'CONGESTION'
+++ onCallCleared
--- ooh323_destroy
Destroying avaya
Destroying ooh323c_o_9
+++ ooh323_destroy
== Using SIP RTP CoS mark 5
-- Executing [68851030@default] Dial("SIP/1402-00000015", "OOH323/avaya/68851030,60,tTr") in new stack
--- ooh323_request - data avaya/68851030 format (ulaw)
--- ooh323_alloc
+++ ooh323_alloc
--- find_peer "avaya"
comparing with "10.240.63.36"
found matching peer
+++ find_peer "avaya"
--- ooh323_new - avaya
+++ h323_new
--- onNewCallCreated b7506640: ooh323c_o_9
--- find_call
+++ find_call
Outgoing call avaya(ooh323c_o_9) - Codec prefs - (alaw|ulaw)
Adding capabilities to call(outgoing, ooh323c_o_9)
Adding g711 alaw capability to call(outgoing, ooh323c_o_9)
Adding g711 ulaw capability to call(outgoing, ooh323c_o_9)
--- configure_local_rtp
+++ configure_local_rtp
+++ onNewCallCreated ooh323c_o_9
+++ ooh323_request
----- ooh323_queryoption 16 on channel OOH323/avaya-26
+++++ ooh323_queryoption 16 on channel OOH323/avaya-26
+++ ooh323 get_rtp_peer
ooh323_get_rtp_peer OOH323/avaya-26 -> (null):0, 2
--- ooh323 get_rtp_peer, res = 2
--- ooh323_call- avaya/68851030
+++ ooh323_call
-- Called OOH323/avaya/68851030
--- onOutgoingCall b7506640: ooh323c_o_9
--- find_call
+++ find_call
setting callid number 1402
+++ onOutgoingCall ooh323c_o_9
--- onCallCleared ooh323c_o_9
--- find_call
+++ find_call
--- ooh323_hangup
+++ ooh323_hangup
== Everyone is busy/congested at this time (1:0/1/0)
-- Auto fallthrough, channel 'SIP/1402-00000015' status is 'CONGESTION'
+++ onCallCleared
--- ooh323_destroy
Destroying avaya
Destroying ooh323c_o_9
+++ ooh323_destroy
Что то не могу понять, в чем проблема... Понятно что туплю, но "насколько сильно"?
Ну и если это чем то поможет - включил дебаг сипа:
INVITE sip:68851030@10.248.0.13:5060 SIP/2.0
Via: SIP/2.0/UDP 10.248.12.92:61583;branch=z9hG4bK-d8754z-f2125d7547111354-1---d8754z-;rport
Max-Forwards: 70
Contact:
To:
From: "1402asterisk";tag=01389a68
Call-ID: ZTg0OTA5MGJjOTEwMGFlMGRlMTM2MjEzNTMxNzcyOGI.
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE
Content-Type: application/sdp
Supported: replaces
User-Agent: 3CXPhone 6.0.26523.0
Content-Length: 279
v=0
o=3cxVCE 99142695 191372190 IN IP4 10.248.12.92
s=3cxVCE Audio Call
c=IN IP4 10.248.12.92
t=0 0
m=audio 40048 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv
--- (13 headers 13 lines) ---
Sending to 10.248.12.92:61583 (no NAT)
Sending to 10.248.12.92:61583 (no NAT)
Using INVITE request as basis request - ZTg0OTA5MGJjOTEwMGFlMGRlMTM2MjEzNTMxNzcyOGI.
Found peer '1402' for '1402' from 10.248.12.92:61583
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.248.12.92:61583;branch=z9hG4bK-d8754z-f2125d7547111354-1---d8754z-;received=10.248.12.92;rport=61583
From: "1402asterisk";tag=01389a68
To: ;tag=as783ed813
Call-ID: ZTg0OTA5MGJjOTEwMGFlMGRlMTM2MjEzNTMxNzcyOGI.
CSeq: 1 INVITE
Server: Asterisk PBX 11.10.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="5551b296"
Content-Length: 0
Scheduling destruction of SIP dialog 'ZTg0OTA5MGJjOTEwMGFlMGRlMTM2MjEzNTMxNzcyOGI.' in 32000 ms (Method: INVITE)
ACK sip:68851030@10.248.0.13:5060 SIP/2.0
Via: SIP/2.0/UDP 10.248.12.92:61583;branch=z9hG4bK-d8754z-f2125d7547111354-1---d8754z-;rport
Max-Forwards: 70
To: ;tag=as783ed813
From: "1402asterisk";tag=01389a68
Call-ID: ZTg0OTA5MGJjOTEwMGFlMGRlMTM2MjEzNTMxNzcyOGI.
CSeq: 1 ACK
Content-Length: 0
--- (8 headers 0 lines) ---
INVITE sip:68851030@10.248.0.13:5060 SIP/2.0
Via: SIP/2.0/UDP 10.248.12.92:61583;branch=z9hG4bK-d8754z-d71d552d6f7f3f7f-1---d8754z-;rport
Max-Forwards: 70
Contact:
To:
From: "1402asterisk";tag=01389a68
Call-ID: ZTg0OTA5MGJjOTEwMGFlMGRlMTM2MjEzNTMxNzcyOGI.
CSeq: 2 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE
Content-Type: application/sdp
Supported: replaces
User-Agent: 3CXPhone 6.0.26523.0
Authorization: Digest username="1402",realm="asterisk",nonce="5551b296",uri="sip:68851030@10.248.0.13:5060",response="4872e7bc79e76997acbbe32f4a5c8f48",algorithm=MD5
Content-Length: 279
v=0
o=3cxVCE 99142695 191372190 IN IP4 10.248.12.92
s=3cxVCE Audio Call
c=IN IP4 10.248.12.92
t=0 0
m=audio 40048 RTP/AVP 0 8 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv
--- (14 headers 13 lines) ---
Sending to 10.248.12.92:61583 (no NAT)
Using INVITE request as basis request - ZTg0OTA5MGJjOTEwMGFlMGRlMTM2MjEzNTMxNzcyOGI.
Found peer '1402' for '1402' from 10.248.12.92:61583
== Using SIP RTP CoS mark 5
Found RTP audio format 0
Found RTP audio format 8
Found RTP audio format 3
Found RTP audio format 101
Found audio description format PCMU for ID 0
Found audio description format PCMA for ID 8
Found audio description format GSM for ID 3
Found audio description format telephone-event for ID 101
Capabilities: us - (ulaw|alaw|g729), peer - audio=(gsm|ulaw|alaw)/video=(nothing)/text=(nothing), combined - (ulaw|alaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
Peer audio RTP is at port 10.248.12.92:40048
Looking for 68851030 in default (domain 10.248.0.13)
list_route: hop:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.248.12.92:61583;branch=z9hG4bK-d8754z-d71d552d6f7f3f7f-1---d8754z-;received=10.248.12.92;rport=61583
From: "1402asterisk";tag=01389a68
To:
Call-ID: ZTg0OTA5MGJjOTEwMGFlMGRlMTM2MjEzNTMxNzcyOGI.
CSeq: 2 INVITE
Server: Asterisk PBX 11.10.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Contact:
Content-Length: 0
-- Executing [68851030@default] Dial("SIP/1402-00000017", "OOH323/avaya/68851030,60,tTr") in new stack
-- Called OOH323/avaya/68851030
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 10.248.12.92:61583;branch=z9hG4bK-d8754z-d71d552d6f7f3f7f-1---d8754z-;received=10.248.12.92;rport=61583
From: "1402asterisk";tag=01389a68
To: ;tag=as66810f22
Call-ID: ZTg0OTA5MGJjOTEwMGFlMGRlMTM2MjEzNTMxNzcyOGI.
CSeq: 2 INVITE
Server: Asterisk PBX 11.10.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Contact:
Content-Length: 0
== Everyone is busy/congested at this time (1:0/1/0)
-- Auto fallthrough, channel 'SIP/1402-00000017' status is 'CONGESTION'
SIP/2.0 503 Service Unavailable
Via: SIP/2.0/UDP 10.248.12.92:61583;branch=z9hG4bK-d8754z-d71d552d6f7f3f7f-1---d8754z-;received=10.248.12.92;rport=61583
From: "1402asterisk";tag=01389a68
To: ;tag=as66810f22
Call-ID: ZTg0OTA5MGJjOTEwMGFlMGRlMTM2MjEzNTMxNzcyOGI.
CSeq: 2 INVITE
Server: Asterisk PBX 11.10.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
X-Asterisk-HangupCause: Circuit/channel congestion
X-Asterisk-HangupCauseCode: 34
Content-Length: 0
ACK sip:68851030@10.248.0.13:5060 SIP/2.0
Via: SIP/2.0/UDP 10.248.12.92:61583;branch=z9hG4bK-d8754z-d71d552d6f7f3f7f-1---d8754z-;rport
Max-Forwards: 70
To: ;tag=as66810f22
From: "1402asterisk";tag=01389a68
Call-ID: ZTg0OTA5MGJjOTEwMGFlMGRlMTM2MjEzNTMxNzcyOGI.
CSeq: 2 ACK
Content-Length: 0
--- (8 headers 0 lines) ---
Really destroying SIP dialog 'ZTg0OTA5MGJjOTEwMGFlMGRlMTM2MjEzNTMxNzcyOGI.' Method: ACK
Really destroying SIP dialog 'MDA2NzExZmE0NTU1MTkyOTYzYzU4OGY4NTFmYjM1NmY.' Method: REGISTER
Added after 11 minutes:
[general]
autofallthrough=yes
[default]
exten => _1XXX,1,Dial(SIP/${EXTEN})
exten => _6.,1,Dial(OOH323/avaya/${EXTEN},60,tTr)
[to-avaya]
exten => _6.,1,Dial(OOH323/avaya/${EXTEN},60,tTr)
;exten => _6.,1,Dial(OOH323/${EXTEN}/avaya/,60,tTr)
[from-trunk]
exten => _X.,1,Dial(SIP/${EXTEN})
autofallthrough=yes
[default]
exten => _1XXX,1,Dial(SIP/${EXTEN})
exten => _6.,1,Dial(OOH323/avaya/${EXTEN},60,tTr)
[to-avaya]
exten => _6.,1,Dial(OOH323/avaya/${EXTEN},60,tTr)
;exten => _6.,1,Dial(OOH323/${EXTEN}/avaya/,60,tTr)
[from-trunk]
exten => _X.,1,Dial(SIP/${EXTEN})
и sip.conf
[general]
disallow=all
allow=gsm
allow=ulaw
allow=alaw
context=ПУТАНИЦА
[1401]
type=friend
secret=123abc
host=dynamic
dtmfmode=rfc2833
disallow=all
allow=ulaw
allow=alaw
allow=g729
dial=SIP/1401
callerid=mobile
context=ИСЗОДЯЩИЕвТРАНКаваи?
[1402]
type=friend
secret=123abc
host=dynamic
dtmfmode=rfc2833
disallow=all
allow=ulaw
allow=alaw
allow=g729
dial=SIP/1402
callerid=3CX Phone
[1403]
type=friend
secret=123abc
host=dynamic
dtmfmode=rfc2833
disallow=all
allow=ulaw
allow=alaw
allow=g729
dial=SIP/1403
callerid=Bragar
disallow=all
allow=gsm
allow=ulaw
allow=alaw
context=ПУТАНИЦА
[1401]
type=friend
secret=123abc
host=dynamic
dtmfmode=rfc2833
disallow=all
allow=ulaw
allow=alaw
allow=g729
dial=SIP/1401
callerid=mobile
context=ИСЗОДЯЩИЕвТРАНКаваи?
[1402]
type=friend
secret=123abc
host=dynamic
dtmfmode=rfc2833
disallow=all
allow=ulaw
allow=alaw
allow=g729
dial=SIP/1402
callerid=3CX Phone
[1403]
type=friend
secret=123abc
host=dynamic
dtmfmode=rfc2833
disallow=all
allow=ulaw
allow=alaw
allow=g729
dial=SIP/1403
callerid=Bragar
для вот такого конфига ooh323.conf
[general]
class="PreformattedText console">;Define the asterisk server h323 endpoint
disallow=all
allow=alaw
;The port asterisk should listen for incoming H323 connections.
;Default — 1720
;The IP address, asterisk should listen on for incoming H323
;connections
;Default — 0.0.0.0: tries to find out local ip address on it's own
bindaddr=0.0.0.0
;Alias address for for asterisk server
;Default — «Asterisk PBX»
h323id=ObjSysAsterisk
;e164=100
;CallerID for the asterisk originated calls
;Default — Same as h323id
callerid=PBX
;This parameter indicates whether channel driver should register with
;gatekeeper as a gateway or an endpoint.
;Default — no
;gateway=no
;Whether this asterisk server will use gatekeeper.
;Default — DISABLE
;gatekeeper = DISCOVER
;gatekeeper = a.b.c.d
gatekeeper = DISABLE
;Whether asterisk should use fast-start and tunneling for H323 connections.
;Default — yes
faststart=yes
h245tunneling=yes
;Whether media wait for connect for fast start call
;Default — no
mediawaitforconnect=yes
;Location for H323 log file
;Default — /var/log/asterisk/h323_log
logfile=/var/log/asterisk/h323_log
;Following values apply to all users/peers/friends defined below, unless
;overridden within their client definition
;Sets default context all clients will be placed in.
;Default — default
context=from-trunk
;Sets rtptimeout for all clients, unless overridden
;Default — 60 seconds
rtptimeout=60 ; Terminate call if 60 seconds of no RTP activity
;when we're not on hold
; dtmf mode to be used by default for all clients. Supports rfc2833, q931keypad,
; h245alphanumeric, h245signal.
;Default — rfc 2833
dtmfmode=rfc2833
[avaya]
type=friend
context=to-avaya
ip=10.240.63.36
port=1720
disallow=all
allow=alaw
allow=ulaw
t38mode=disable
dtmfmode=rfc2833
class="PreformattedText console">;Define the asterisk server h323 endpoint
disallow=all
allow=alaw
;The port asterisk should listen for incoming H323 connections.
;Default — 1720
;The IP address, asterisk should listen on for incoming H323
;connections
;Default — 0.0.0.0: tries to find out local ip address on it's own
bindaddr=0.0.0.0
;Alias address for for asterisk server
;Default — «Asterisk PBX»
h323id=ObjSysAsterisk
;e164=100
;CallerID for the asterisk originated calls
;Default — Same as h323id
callerid=PBX
;This parameter indicates whether channel driver should register with
;gatekeeper as a gateway or an endpoint.
;Default — no
;gateway=no
;Whether this asterisk server will use gatekeeper.
;Default — DISABLE
;gatekeeper = DISCOVER
;gatekeeper = a.b.c.d
gatekeeper = DISABLE
;Whether asterisk should use fast-start and tunneling for H323 connections.
;Default — yes
faststart=yes
h245tunneling=yes
;Whether media wait for connect for fast start call
;Default — no
mediawaitforconnect=yes
;Location for H323 log file
;Default — /var/log/asterisk/h323_log
logfile=/var/log/asterisk/h323_log
;Following values apply to all users/peers/friends defined below, unless
;overridden within their client definition
;Sets default context all clients will be placed in.
;Default — default
context=from-trunk
;Sets rtptimeout for all clients, unless overridden
;Default — 60 seconds
rtptimeout=60 ; Terminate call if 60 seconds of no RTP activity
;when we're not on hold
; dtmf mode to be used by default for all clients. Supports rfc2833, q931keypad,
; h245alphanumeric, h245signal.
;Default — rfc 2833
dtmfmode=rfc2833
[avaya]
type=friend
context=to-avaya
ip=10.240.63.36
port=1720
disallow=all
allow=alaw
allow=ulaw
t38mode=disable
dtmfmode=rfc2833
... что то запутался в контекстах
| Цитата: |
| Какой IP-адрес Asterisk прописан в ip-node-names на Avaya? С какого реально приходит запрос на устаноку соединения? |
Ну что ж... Переходим в режим ручного управления...
Пришлите результат выполнения следующих команд:
На Avaya
| Код: |
| list node-names |
На Asterisk
| Код: |
| /sbin/ifconfig && /sbin/route -n |
_________________
Обновленный chan_h323 с поддержкой T.38 для Asterisk 1.8, 10, 11, 12 и SVN trunk - http://code.google.com/p/ast-h323/
| amateur @ Ср Июн 11, 2014 20:54 писал(а): | ||||
| Ну что ж... Переходим в режим ручного управления... Пришлите результат выполнения следующих команд: На Avaya |
| Код: |
| list node-names |
На Asterisk
| Код: |
| /sbin/ifconfig && /sbin/route -n |
list node-names all
NODE NAMES
Type Name IP Address
IP aastra 10.248.12.110
IP asterisk 10.248.0.13
IP default 0.0.0.0
IP procr 10.240.63.36
# /sbin/ifconfig && /sbin/route -n
eth0 Link encap:Ethernet HWaddr 00:0C:29:C8:03:94
inet addr:10.248.0.13 Bcast:10.248.0.15 Mask:255.255.255.248
inet6 addr: fe80::20c:29ff:fec8:394/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:37008 errors:0 dropped:0 overruns:0 frame:0
TX packets:35376 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4183136 (3.9 MiB) TX bytes:4430643 (4.2 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.248.0.8 0.0.0.0 255.255.255.248 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
0.0.0.0 10.248.0.9 0.0.0.0 UG 0 0 0 eth0
_________________
Обновленный chan_h323 с поддержкой T.38 для Asterisk 1.8, 10, 11, 12 и SVN trunk - http://code.google.com/p/ast-h323/
Всем спасибо за помощь!
_________________
P4 3.0 + 1Gb CentOS 5.8 Aster 1.8.16
Не люблю gui-сборки: натуральный продукт вкуснее.
И еще: я ПРОФИ так как НЕ ЛЕНЮСЬ читать литературу.
| regkey @ Вс Июн 29, 2014 23:26 писал(а): |
| Отказался от ooh323 |
Купили лицензии SIP? (
А могли бы и наше решение рассмотреть..
_________________
http://mh.otx.ru Гибкие SIP/E1 шлюзы Alvis-GW-2E1. Модернизация LDK300/TDA100:VoIP