Есть Шлюз IP-АТС АГАТ UX в связке с ELASTIX 2.4.0 на шлюзе есть FXO и FXS Подключен он к Elastix вот так (одним sip транком) Все находится в одной сети 192.168.0.0/22
ТРАНК: AGAT-DOVATORA
PEER DETAILS
host=192.168.0.110
type=friend
port=5060
nat=no
qualify=yes
canreinvite=no
insecure=invite
dtmfmode=auto
disallow=all
allow=alaw&u-law
USER DETAILS
host=192.168.0.110
type=friend
insecure=invite
context=from-trunk
Register String: ПУСТАЯ
Так вот если SIP абонент зарегистрирован на ELASTIX то связь из ELASTIX на шлюз работает нормально. Если FXS абонент зарегин на ШЛЮЗЕ и звонит на SIP абонентов в ELASTIX то тоже все впорядке Если FXS абонент зарегин на ШЛЮЗЕ и звонит на FXO через ELASTIX (так как таблица маршрутов у меня настроена на elastix) то ELASTIX ему сообщает : The number you have dial is not in service pls check the number and try again Из этого мне понятно что Elastix просто его не пускает на транк AGAT-DOVATORA т.к. он или не доверенный или не настроена входящая маршрутизация на Elastix. Так вот как обойтись без входящей маршрутизации на Elastix а этому транку сделать тим ДОВЕРЕНЫЙ и пускать куда угодно, т.е. по любым направлениям (внутренним-внешним)
ВОТ ЛОГИ
Jul 26 09:25:35 VERBOSE [30623] config.c: == Parsing '/etc/asterisk/iaxgeneralcustom.conf': [Jul 26 09:25:35] VERBOSE[30623] config.c: == Found Jul 26 09:25:35 VERBOSE [3899] config.c:
== Parsing '/etc/asterisk/sipnat.conf': [Jul 26 09:25:35] VERBOSE[30623] config.c:
== Parsing '/etc/asterisk/iaxregistrationscustom.conf': [Jul 26 09:25:35] VERBOSE[30623] config.c: == Found Jul 26 09:25:35 VERBOSE [30623] config.c:
== Parsing '/etc/asterisk/iaxregistrations.conf': [Jul 26 09:25:35] VERBOSE[3899] config.c: == Found Jul 26 09:25:35 VERBOSE [30623] config.c:
== Found Jul 26 09:25:35 VERBOSE [3899] config.c:
== Parsing '/etc/asterisk/sipregistrationscustom.conf': [Jul 26 09:25:35] VERBOSE[30623] config.c: == Parsing '/etc/asterisk/iaxcustom.conf': [Jul 26 09:25:35] VERBOSE[30623] config.c: == Found Jul 26 09:25:35 VERBOSE [30623] config.c:
== Parsing '/etc/asterisk/iaxadditional.conf': [Jul 26 09:25:35] VERBOSE[30623] config.c: == Found Jul 26 09:25:35 VERBOSE [3899] config.c:
== Found Jul 26 09:25:35 VERBOSE [30623] config.c:
== Parsing '/etc/asterisk/iaxcustompost.conf': [Jul 26 09:25:35] VERBOSE[30623] config.c: == Found Jul 26 09:25:35 VERBOSE [3899] config.c:
== Parsing '/etc/asterisk/sipregistrations.conf': [Jul 26 09:25:35] VERBOSE[30623] config.c: == Parsing '/etc/asterisk/additionala2billingiax.conf': [Jul 26 09:25:35] VERBOSE[3899] config.c: == Found Jul 26 09:25:35 VERBOSE [30623] config.c:
== Found Jul 26 09:25:35 VERBOSE [30623] config.c:
== Parsing '/etc/asterisk/users.conf': [Jul 26 09:25:35] VERBOSE[30623] config.c: == Found Jul 26 09:25:35 VERBOSE [3899] config.c:
== Parsing '/etc/asterisk/sipcustom.conf': [Jul 26 09:25:35] VERBOSE[3899] config.c:
== Found Jul 26 09:25:35 VERBOSE [3899] config.c:
== Parsing '/etc/asterisk/sipadditional.conf': [Jul 26 09:25:35] VERBOSE[3899] config.c: == Found Jul 26 09:25:35 VERBOSE [30623] loader.c:
-- Reloading module 'funcodbc.so' (ODBC lookups) Jul 26 09:25:35 VERBOSE [30623] loader.c:
-- Reloading module 'pbxdundi.so' (Distributed Universal Number Discovery (DUNDi)) Jul 26 09:25:35 VERBOSE [30623] config.c:
== Parsing '/etc/asterisk/dundi.conf': [Jul 26 09:25:35] VERBOSE[30623] config.c: == Found Jul 26 09:25:35 VERBOSE [3899] config.c:
== Parsing '/etc/asterisk/sipcustompost.conf': [Jul 26 09:25:35] VERBOSE[3899] config.c: == Found Jul 26 09:25:35 VERBOSE [30623] loader.c:
-- Reloading module 'codeculaw.so' (mu-Law Coder/Decoder) Jul 26 09:25:35 VERBOSE [30623] loader.c:
-- Reloading module 'appqueue.so' (True Call Queueing) Jul 26 09:25:35 NOTICE [30623] appqueue.c:
queuerules.conf has not changed since it was last loaded. Not taking any action. Jul 26 09:25:35 VERBOSE [30623] config.c:
== Parsing '/etc/asterisk/queues.conf': [Jul 26 09:25:35] VERBOSE[30623] config.c:
== Found Jul 26 09:25:35 VERBOSE [3899] config.c:
== Parsing '/etc/asterisk/additionala2billingsip.conf': [Jul 26 09:25:35] VERBOSE[30623] config.c: == Parsing '/etc/asterisk/queuesgeneraladditional.conf': [Jul 26 09:25:35] VERBOSE[3899] config.c: == Found Jul 26 09:25:35 VERBOSE [30623] config.c:
== Found Jul 26 09:25:35 VERBOSE [3899] config.c:
== Parsing '/etc/asterisk/users.conf': [Jul 26 09:25:35] VERBOSE[30623] config.c: == Parsing '/etc/asterisk/queuescustomgeneral.conf': [Jul 26 09:25:35] VERBOSE[30623] config.c: == Found Jul 26 09:25:35 VERBOSE [30623] config.c:
== Parsing '/etc/asterisk/queuescustom.conf': [Jul 26 09:25:35] VERBOSE[30623] config.c: == Found Jul 26 09:25:35 VERBOSE [30623] config.c:
== Parsing '/etc/asterisk/queuesadditional.conf': [Jul 26 09:25:35] VERBOSE[30623] config.c: == Found Jul 26 09:25:35 VERBOSE [3899] config.c:
== Found Jul 26 09:25:35 VERBOSE [30623] config.c:
== Parsing '/etc/asterisk/queuespostcustom.conf': [Jul 26 09:25:35] VERBOSE[30623] config.c: == Found Jul 26 09:25:35 VERBOSE [30623] loader.c:
-- Reloading module 'chanjingle.so' (Jingle Channel Driver) Jul 26 09:25:35 VERBOSE [30623] loader.c:
-- Reloading module 'resconfigmysql.so' (MySQL RealTime Configuration Driver) Jul 26 09:25:35 VERBOSE [30623] resconfigmysql.c:
== MySQL RealTime reloaded. Jul 26 09:25:35 VERBOSE [30623] loader.c:
-- Reloading module 'cdrsqlite3custom.so' (SQLite3 Custom CDR Module) Jul 26 09:25:35 VERBOSE [30623] loader.c:
-- Reloading module 'cdrcustom.so' (Customizable Comma Separated Values CDR Backend) Jul 26 09:25:35 VERBOSE [30623] config.c:
== Parsing '/etc/asterisk/cdrcustom.conf': [Jul 26 09:25:35] VERBOSE[3899] netsock2.c: == Using SIP TOS bits 96 Jul 26 09:25:35 VERBOSE [30623] config.c:
== Found Jul 26 09:25:35 VERBOSE [3899] netsock2.c:
== Using SIP CoS mark 4 Jul 26 09:25:35 VERBOSE [30623] loader.c:
-- Reloading module 'appplayback.so' (Sound File Playback Application) Jul 26 09:25:35 VERBOSE [30623] loader.c:
-- Reloading module 'resconfigldap.so' (LDAP realtime interface) Jul 26 09:25:35 VERBOSE [30623] config.c:
== Parsing '/etc/asterisk/resldap.conf': [Jul 26 09:25:35] VERBOSE[30623] config.c:
== Found Jul 26 09:25:35 NOTICE [30623] resconfigldap.c: No directory user found, anonymous binding as default. Jul 26 09:25:35 ERROR [30623] resconfigldap.c: No directory URL or host found. Jul 26 09:25:35 NOTICE [30623] resconfigldap.c: Cannot reload LDAP RealTime driver. Jul 26 09:25:35 VERBOSE [30623] loader.c:
-- Reloading module 'chanagent.so' (Agent Proxy Channel) Jul 26 09:25:35 WARNING [3899] frame.c: Cannot allow unknown format 'u-law' Jul 26 09:25:35 WARNING [3899] chansip.c: Codec configuration errors found in line 39 : allow = u-law Jul 26 09:25:35 VERBOSE [3899] config.c: == Parsing '/etc/asterisk/sipnotify.conf': [Jul 26 09:25:35] VERBOSE[3899] config.c:
== Found Jul 26 09:25:35 VERBOSE [3899] config.c:
== Parsing '/etc/asterisk/sipnotifycustom.conf': [Jul 26 09:25:35] VERBOSE[3899] config.c: == Found Jul 26 09:25:35 VERBOSE [3899] config.c:
== Parsing '/etc/asterisk/sipnotifycustomelastix.conf': [Jul 26 09:25:35] VERBOSE[3899] config.c: == Found Jul 26 09:25:35 VERBOSE [3899] config.c:
== Parsing '/etc/asterisk/sipnotifyadditional.conf': [Jul 26 09:25:35] VERBOSE[3899] config.c: == Found Jul 26 09:25:35 VERBOSE [3896] config.c:
== Parsing '/etc/asterisk/respktccops.conf': [Jul 26 09:25:35] VERBOSE[3896] config.c: == Found Jul 26 09:25:36 VERBOSE [3899] netsock2.c:
== Using SIP RTP TOS bits 184 Jul 26 09:25:36 VERBOSE [3899] netsock2.c:
== Using SIP RTP CoS mark 5 Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [217@from-internal:1] Macro("SIP/505-00000065", "user-callerid,SKIPTTL,") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-user-callerid:1] Set("SIP/505-00000065", "AMPUSER=505") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/505-00000065", "0?report") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/505-00000065", "1?Set(REALCALLERIDNUM=505)") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-user-callerid:4] Set("SIP/505-00000065", "AMPUSER=505") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-user-callerid:5] Set("SIP/505-00000065", "AMPUSERCIDNAME=505") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/505-00000065", "0?report") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-user-callerid:7] Set("SIP/505-00000065", "AMPUSERCID=505") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-user-callerid:8] Set("SIP/505-00000065", "CALLERID(all)="505" <505>") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/505-00000065", "1?Set(CHANNEL(language)=ru)") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/505-00000065", "1?continue") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Goto (macro-user-callerid,s,19) Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-user-callerid:19] Set("SIP/505-00000065", "CALLERID(number)=505") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-user-callerid:20] Set("SIP/505-00000065", "CALLERID(name)=505") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-user-callerid:21] NoOp("SIP/505-00000065", "Using CallerID "505" <505>") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [217@from-internal:2] NoOp("SIP/505-00000065", "Calling Out Route: 217") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [217@from-internal:3] Set("SIP/505-00000065", "MOHCLASS=default") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [217@from-internal:4] Set("SIP/505-00000065", "NODEST=") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [217@from-internal:5] Macro("SIP/505-00000065", "record-enable,505,OUT,") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-record-enable:1] GotoIf("SIP/505-00000065", "1?check") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Goto (macro-record-enable,s,4) Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-record-enable:4] ExecIf("SIP/505-00000065", "0?MacroExit()") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-record-enable:5] GotoIf("SIP/505-00000065", "0?Group:OUT") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Goto (macro-record-enable,s,15) Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-record-enable:15] GotoIf("SIP/505-00000065", "0?IN") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-record-enable:16] ExecIf("SIP/505-00000065", "1?MacroExit()") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [217@from-internal:6] Macro("SIP/505-00000065", "dialout-trunk,2,217,") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-dialout-trunk:1] Set("SIP/505-00000065", "DIALTRUNK=2") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/505-00000065", "0?sub-pincheck,s,1") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/505-00000065", "0?disabletrunk,1") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-dialout-trunk:4] Set("SIP/505-00000065", "DIALNUMBER=217") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-dialout-trunk:5] Set("SIP/505-00000065", "DIALTRUNKOPTIONS=tr") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-dialout-trunk:6] Set("SIP/505-00000065", "OUTBOUNDGROUP=OUT2") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/505-00000065", "1?nomax") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Goto (macro-dialout-trunk,s,9) Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/505-00000065", "0?skipoutcid") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-dialout-trunk:10] Set("SIP/505-00000065", "DIALTRUNKOPTIONS=") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/505-00000065", "outbound-callerid,2") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/505-00000065", "0?Set(CALLERPRES()=)") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/505-00000065", "0?Set(REALCALLERIDNUM=505)") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/505-00000065", "1?normcid") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Goto (macro-outbound-callerid,s,6) Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-outbound-callerid:6] Set("SIP/505-00000065", "USEROUTCID=") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-outbound-callerid:7] Set("SIP/505-00000065", "EMERGENCYCID=") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-outbound-callerid:8] Set("SIP/505-00000065", "TRUNKOUTCID=") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/505-00000065", "1?trunkcid") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Goto (macro-outbound-callerid,s,12) Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/505-00000065", "0?Set(CALLERID(all)=)") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/505-00000065", "0?Set(CALLERID(all)=)") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/505-00000065", "0?Set(CALLERID(all)=)") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/505-00000065", "0?Set(CALLERPRES()=prohibpassedscreen)") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/505-00000065", "0?sub-flp-2,s,1") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-dialout-trunk:13] Set("SIP/505-00000065", "OUTNUM=217") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-dialout-trunk:14] Set("SIP/505-00000065", "custom=SIP/AGATDOV") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/505-00000065", "0?Set(DIALTRUNKOPTIONS=M(setmusic^default))") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/505-00000065", "dialout-trunk-predial-hook,") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/505-00000065", "") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/505-00000065", "0?bypass,1") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/505-00000065", "0?customtrunk") in new stack Jul 26 09:25:36 VERBOSE [30638] pbx.c:
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/505-00000065", "SIP/AGATDOV/217,300,") in new stack Jul 26 09:25:36 VERBOSE [30638] netsock2.c:
== Using SIP RTP TOS bits 184 Jul 26 09:25:36 VERBOSE [30638] netsock2.c: == Using SIP RTP CoS mark 5 Jul 26 09:25:36 VERBOSE [30638] appdial.c: -- Called SIP/AGATDOV/217 Jul 26 09:25:36 VERBOSE [30638] appdial.c: -- SIP/AGATDOV-00000066 is ringing Jul 26 09:25:37 VERBOSE [30638] appmacro.c:
== Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'SIP/505-00000065' in macro 'dialout-trunk' Jul 26 09:25:37 VERBOSE [30638] pbx.c:
== Spawn extension (from-internal, 217, 6) exited non-zero on 'SIP/505-00000065' Jul 26 09:25:37 VERBOSE [30638] pbx.c:
-- Executing [h@from-internal:1] Macro("SIP/505-00000065", "hangupcall") in new stack Jul 26 09:25:37 VERBOSE [30638] pbx.c:
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/505-00000065", "1?endmixmoncheck") in new stack Jul 26 09:25:37 VERBOSE [30638] pbx.c:
-- Goto (macro-hangupcall,s,9) Jul 26 09:25:37 VERBOSE [30638] pbx.c:
-- Executing [s@macro-hangupcall:9] NoOp("SIP/505-00000065", "End of MIXMON check") in new stack Jul 26 09:25:37 VERBOSE [30638] pbx.c:
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/505-00000065", "1?nomeetmemon") in new stack Jul 26 09:25:37 VERBOSE [30638] pbx.c:
-- Goto (macro-hangupcall,s,28) Jul 26 09:25:37 VERBOSE [30638] pbx.c:
-- Executing [s@macro-hangupcall:28] NoOp("SIP/505-00000065", "End of MEETME check") in new stack Jul 26 09:25:37 VERBOSE [30638] pbx.c:
-- Executing [s@macro-hangupcall:29] GotoIf("SIP/505-00000065", "1?noautomon") in new stack Jul 26 09:25:37 VERBOSE [30638] pbx.c:
-- Goto (macro-hangupcall,s,34) Jul 26 09:25:37 VERBOSE [30638] pbx.c:
-- Executing [s@macro-hangupcall:34] NoOp("SIP/505-00000065", "TOUCHMONITOROUTPUT=") in new stack Jul 26 09:25:37 VERBOSE [30638] pbx.c:
-- Executing [s@macro-hangupcall:35] GotoIf("SIP/505-00000065", "1?noautomon2") in new stack Jul 26 09:25:37 VERBOSE [30638] pbx.c:
-- Goto (macro-hangupcall,s,41) Jul 26 09:25:37 VERBOSE [30638] pbx.c:
-- Executing [s@macro-hangupcall:41] NoOp("SIP/505-00000065", "MONITORFILENAME=") in new stack Jul 26 09:25:37 VERBOSE [30638] pbx.c:
-- Executing [s@macro-hangupcall:42] GotoIf("SIP/505-00000065", "1?skiprg") in new stack Jul 26 09:25:37 VERBOSE [30638] pbx.c:
-- Goto (macro-hangupcall,s,45) Jul 26 09:25:37 VERBOSE [30638] pbx.c:
-- Executing [s@macro-hangupcall:45] GotoIf("SIP/505-00000065", "1?skipblkvm") in new stack Jul 26 09:25:37 VERBOSE [30638] pbx.c:
-- Goto (macro-hangupcall,s,48) Jul 26 09:25:37 VERBOSE [30638] pbx.c:
-- Executing [s@macro-hangupcall:48] GotoIf("SIP/505-00000065", "1?theend") in new stack Jul 26 09:25:37 VERBOSE [30638] pbx.c:
-- Goto (macro-hangupcall,s,50) Jul 26 09:25:37 VERBOSE [30638] pbx.c:
-- Executing [s@macro-hangupcall:50] AGI("SIP/505-00000065", "hangup.agi") in new stack Jul 26 09:25:37 VERBOSE [30638] resagi.c:
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi Jul 26 09:25:37 VERBOSE [30638] resagi.c:
-- <sip 505-00000065="">AGI Script hangup.agi completed, returning 0 Jul 26 09:25:37 VERBOSE [30638] pbx.c:
-- Executing [s@macro-hangupcall:51] Hangup("SIP/505-00000065", "") in new stack Jul 26 09:25:37 VERBOSE [30638] appmacro.c:
== Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'SIP/505-00000065' in macro 'hangupcall' Jul 26 09:25:37 VERBOSE [30638] pbx.c:
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/505-00000065' Jul 26 09:25:58 VERBOSE [3899] netsock2.c:
== Using SIP RTP TOS bits 184 Jul 26 09:25:58 VERBOSE [3899] netsock2.c:
== Using SIP RTP CoS mark 5 Jul 26 09:25:58 VERBOSE [30641] pbx.c:
-- Executing [92268993@from-trunk-sip-AGATDOV:1] Set("SIP/AGATDOV-00000067", "GROUP()=OUT2") in new stack Jul 26 09:25:58 VERBOSE [30641] pbx.c:
-- Executing [92268993@from-trunk-sip-AGATDOV:2] Goto("SIP/AGATDOV-00000067", "from-trunk,92268993,1") in new stack Jul 26 09:25:58 VERBOSE [30641] pbx.c:
-- Goto (from-trunk,92268993,1) Jul 26 09:25:58 VERBOSE [30641] pbx.c:
-- Executing [92268993@from-trunk:1] Set("SIP/AGATDOV-00000067", "FROMDID=92268993") in new stack Jul 26 09:25:58 VERBOSE [30641] pbx.c:
-- Executing [92268993@from-trunk:2] NoOp("SIP/AGATDOV-00000067", "Received an unknown call with DID set to 92268993") in new stack Jul 26 09:25:58 VERBOSE [30641] pbx.c:
-- Executing [92268993@from-trunk:3] Goto("SIP/AGATDOV-00000067", "s,a2") in new stack Jul 26 09:25:58 VERBOSE [30641] pbx.c:
-- Goto (from-trunk,s,2) Jul 26 09:25:58 VERBOSE [30641] pbx.c:
-- Executing [s@from-trunk:2] Answer("SIP/AGATDOV-00000067", "") in new stack Jul 26 09:25:58 VERBOSE [30641] pbx.c:
-- Executing [s@from-trunk:3] Wait("SIP/AGATDOV-00000067", "2") in new stack Jul 26 09:26:00 VERBOSE [30641] pbx.c:
-- Executing [s@from-trunk:4] Playback("SIP/AGATDOV-00000067", "ss-noservice") in new stack Jul 26 09:26:00 VERBOSE [30641] file.c: -- <sip agatdov-00000067=""> Playing 'ss-noservice.gsm' (language 'en') Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Executing [s@from-trunk:5] SayAlpha("SIP/AGATDOV-00000067", "92268993") in new stack Jul 26 09:26:05 VERBOSE [30641] file.c: -- <sip agatdov-00000067=""> Playing 'digits/9.gsm' (language 'en') Jul 26 09:26:05 VERBOSE [30641] pbx.c:
== Spawn extension (from-trunk, s, 5) exited non-zero on 'SIP/AGATDOV-00000067' Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Executing [h@from-trunk:1] Macro("SIP/AGATDOV-00000067", "hangupcall,") in new stack Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/AGATDOV-00000067", "1?endmixmoncheck") in new stack Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Goto (macro-hangupcall,s,9) Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Executing [s@macro-hangupcall:9] NoOp("SIP/AGATDOV-00000067", "End of MIXMON check") in new stack Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/AGATDOV-00000067", "1?nomeetmemon") in new stack Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Goto (macro-hangupcall,s,28) Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Executing [s@macro-hangupcall:28] NoOp("SIP/AGATDOV-00000067", "End of MEETME check") in new stack Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Executing [s@macro-hangupcall:29] GotoIf("SIP/AGATDOV-00000067", "1?noautomon") in new stack Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Goto (macro-hangupcall,s,34) Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Executing [s@macro-hangupcall:34] NoOp("SIP/AGATDOV-00000067", "TOUCHMONITOROUTPUT=") in new stack Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Executing [s@macro-hangupcall:35] GotoIf("SIP/AGATDOV-00000067", "1?noautomon2") in new stack Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Goto (macro-hangupcall,s,41) Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Executing [s@macro-hangupcall:41] NoOp("SIP/AGATDOV-00000067", "MONITORFILENAME=") in new stack Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Executing [s@macro-hangupcall:42] GotoIf("SIP/AGATDOV-00000067", "1?skiprg") in new stack Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Goto (macro-hangupcall,s,45) Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Executing [s@macro-hangupcall:45] GotoIf("SIP/AGATDOV-00000067", "1?skipblkvm") in new stack Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Goto (macro-hangupcall,s,48) Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Executing [s@macro-hangupcall:48] GotoIf("SIP/AGATDOV-00000067", "1?theend") in new stack Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Goto (macro-hangupcall,s,50) Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Executing [s@macro-hangupcall:50] AGI("SIP/AGATDOV-00000067", "hangup.agi") in new stack Jul 26 09:26:05 VERBOSE [30641] resagi.c:
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi Jul 26 09:26:05 VERBOSE [30641] resagi.c:
-- <sip agatdov-00000067="">AGI Script hangup.agi completed, returning 0 Jul 26 09:26:05 VERBOSE [30641] pbx.c:
-- Executing [s@macro-hangupcall:51] Hangup("SIP/AGATDOV-00000067", "") in new stack Jul 26 09:26:05 VERBOSE [30641] appmacro.c:
== Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'SIP/AGATDOV-00000067' in macro 'hangupcall' Jul 26 09:26:05 VERBOSE [30641] pbx.c:
== Spawn extension (from-trunk, h, 1) exited non-zero on 'SIP/AGATDOV-00000067' Jul 26 09:30:01 VERBOSE [3739] asterisk.c:
-- Remote UNIX connection Jul 26 09:30:01 VERBOSE [30655] asterisk.c: -- Remote UNIX connection disconnected Jul 26 09:33:58 VERBOSE [3899] netsock2.c:
== Using SIP RTP TOS bits 184 Jul 26 09:33:58 VERBOSE [3899] netsock2.c:
== Using SIP RTP CoS mark 5 Jul 26 09:33:58 VERBOSE [30666] pbx.c:
-- Executing [2564@from-internal:1] ResetCDR("SIP/505-00000068", "") in new stack Jul 26 09:33:58 VERBOSE [30666] pbx.c:
-- Executing [2564@from-internal:2] NoCDR("SIP/505-00000068", "") in new stack Jul 26 09:33:58 VERBOSE [30666] pbx.c:
-- Executing [2564@from-internal:3] Progress("SIP/505-00000068", "") in new stack Jul 26 09:33:58 VERBOSE [30666] pbx.c:
-- Executing [2564@from-internal:4] Wait("SIP/505-00000068", "1") in new stack Jul 26 09:33:59 VERBOSE [30666] pbx.c:
-- Executing [2564@from-internal:5] Progress("SIP/505-00000068", "") in new stack Jul 26 09:33:59 VERBOSE [30666] pbx.c:
-- Executing [2564@from-internal:6] Playback("SIP/505-00000068", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack Jul 26 09:33:59 VERBOSE [30666] file.c: -- <sip 505-00000068=""> Playing 'silence/1.gsm' (language 'en') Jul 26 09:34:00 VERBOSE [30666] file.c: -- <sip 505-00000068=""> Playing 'cannot-complete-as-dialed.gsm' (language 'en') Jul 26 09:34:02 VERBOSE [30666] file.c: -- <sip 505-00000068=""> Playing 'check-number-dial-again.gsm' (language 'en') Jul 26 09:34:04 VERBOSE [30666] pbx.c:
-- Executing [2564@from-internal:7] Wait("SIP/505-00000068", "1") in new stack Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Executing [2564@from-internal:8] Congestion("SIP/505-00000068", "20") in new stack Jul 26 09:34:05 WARNING [30666] channel.c:
Prodding channel 'SIP/505-00000068' failed Jul 26 09:34:05 VERBOSE [30666] pbx.c:
== Spawn extension (from-internal, 2564, 8) exited non-zero on 'SIP/505-00000068' Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Executing [h@from-internal:1] Macro("SIP/505-00000068", "hangupcall") in new stack Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/505-00000068", "1?endmixmoncheck") in new stack Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Goto (macro-hangupcall,s,9) Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Executing [s@macro-hangupcall:9] NoOp("SIP/505-00000068", "End of MIXMON check") in new stack Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/505-00000068", "1?nomeetmemon") in new stack Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Goto (macro-hangupcall,s,28) Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Executing [s@macro-hangupcall:28] NoOp("SIP/505-00000068", "End of MEETME check") in new stack Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Executing [s@macro-hangupcall:29] GotoIf("SIP/505-00000068", "1?noautomon") in new stack Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Goto (macro-hangupcall,s,34) Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Executing [s@macro-hangupcall:34] NoOp("SIP/505-00000068", "TOUCHMONITOROUTPUT=") in new stack Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Executing [s@macro-hangupcall:35] GotoIf("SIP/505-00000068", "1?noautomon2") in new stack Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Goto (macro-hangupcall,s,41) Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Executing [s@macro-hangupcall:41] NoOp("SIP/505-00000068", "MONITORFILENAME=") in new stack Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Executing [s@macro-hangupcall:42] GotoIf("SIP/505-00000068", "1?skiprg") in new stack Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Goto (macro-hangupcall,s,45) Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Executing [s@macro-hangupcall:45] GotoIf("SIP/505-00000068", "1?skipblkvm") in new stack Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Goto (macro-hangupcall,s,48) Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Executing [s@macro-hangupcall:48] GotoIf("SIP/505-00000068", "1?theend") in new stack Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Goto (macro-hangupcall,s,50) Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Executing [s@macro-hangupcall:50] AGI("SIP/505-00000068", "hangup.agi") in new stack Jul 26 09:34:05 VERBOSE [30666] resagi.c:
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi Jul 26 09:34:05 VERBOSE [30666] resagi.c:
-- <sip 505-00000068="">AGI Script hangup.agi completed, returning 0 Jul 26 09:34:05 VERBOSE [30666] pbx.c:
-- Executing [s@macro-hangupcall:51] Hangup("SIP/505-00000068", "") in new stack Jul 26 09:34:05 VERBOSE [30666] appmacro.c:
== Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'SIP/505-00000068' in macro 'hangupcall' Jul 26 09:34:05 VERBOSE [30666] pbx.c:
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/505-00000068' Jul 26 09:34:20 VERBOSE [3899] netsock2.c:
== Using SIP RTP TOS bits 184 Jul 26 09:34:20 VERBOSE [3899] netsock2.c:
== Using SIP RTP CoS mark 5 Jul 26 09:34:20 VERBOSE [30669] pbx.c:
-- Executing [92268993@from-trunk-sip-AGATDOV:1] Set("SIP/AGATDOV-00000069", "GROUP()=OUT2") in new stack Jul 26 09:34:20 VERBOSE [30669] pbx.c:
-- Executing [92268993@from-trunk-sip-AGATDOV:2] Goto("SIP/AGATDOV-00000069", "from-trunk,92268993,1") in new stack Jul 26 09:34:20 VERBOSE [30669] pbx.c:
-- Goto (from-trunk,92268993,1) Jul 26 09:34:20 VERBOSE [30669] pbx.c:
-- Executing [92268993@from-trunk:1] Set("SIP/AGATDOV-00000069", "FROMDID=92268993") in new stack Jul 26 09:34:20 VERBOSE [30669] pbx.c:
-- Executing [92268993@from-trunk:2] NoOp("SIP/AGATDOV-00000069", "Received an unknown call with DID set to 92268993") in new stack Jul 26 09:34:20 VERBOSE [30669] pbx.c:
-- Executing [92268993@from-trunk:3] Goto("SIP/AGATDOV-00000069", "s,a2") in new stack Jul 26 09:34:20 VERBOSE [30669] pbx.c:
-- Goto (from-trunk,s,2) Jul 26 09:34:20 VERBOSE [30669] pbx.c:
-- Executing [s@from-trunk:2] Answer("SIP/AGATDOV-00000069", "") in new stack Jul 26 09:34:20 VERBOSE [30669] pbx.c:
-- Executing [s@from-trunk:3] Wait("SIP/AGATDOV-00000069", "2") in new stack Jul 26 09:34:22 VERBOSE [30669] pbx.c:
-- Executing [s@from-trunk:4] Playback("SIP/AGATDOV-00000069", "ss-noservice") in new stack Jul 26 09:34:22 VERBOSE [30669] file.c: -- <sip agatdov-00000069=""> Playing 'ss-noservice.gsm' (language 'en') Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Executing [s@from-trunk:5] SayAlpha("SIP/AGATDOV-00000069", "92268993") in new stack Jul 26 09:34:27 VERBOSE [30669] file.c: -- <sip agatdov-00000069=""> Playing 'digits/9.gsm' (language 'en') Jul 26 09:34:27 VERBOSE [30669] pbx.c:
== Spawn extension (from-trunk, s, 5) exited non-zero on 'SIP/AGATDOV-00000069' Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Executing [h@from-trunk:1] Macro("SIP/AGATDOV-00000069", "hangupcall,") in new stack Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/AGATDOV-00000069", "1?endmixmoncheck") in new stack Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Goto (macro-hangupcall,s,9) Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Executing [s@macro-hangupcall:9] NoOp("SIP/AGATDOV-00000069", "End of MIXMON check") in new stack Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/AGATDOV-00000069", "1?nomeetmemon") in new stack Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Goto (macro-hangupcall,s,28) Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Executing [s@macro-hangupcall:28] NoOp("SIP/AGATDOV-00000069", "End of MEETME check") in new stack Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Executing [s@macro-hangupcall:29] GotoIf("SIP/AGATDOV-00000069", "1?noautomon") in new stack Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Goto (macro-hangupcall,s,34) Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Executing [s@macro-hangupcall:34] NoOp("SIP/AGATDOV-00000069", "TOUCHMONITOROUTPUT=") in new stack Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Executing [s@macro-hangupcall:35] GotoIf("SIP/AGATDOV-00000069", "1?noautomon2") in new stack Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Goto (macro-hangupcall,s,41) Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Executing [s@macro-hangupcall:41] NoOp("SIP/AGATDOV-00000069", "MONITORFILENAME=") in new stack Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Executing [s@macro-hangupcall:42] GotoIf("SIP/AGATDOV-00000069", "1?skiprg") in new stack Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Goto (macro-hangupcall,s,45) Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Executing [s@macro-hangupcall:45] GotoIf("SIP/AGATDOV-00000069", "1?skipblkvm") in new stack Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Goto (macro-hangupcall,s,48) Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Executing [s@macro-hangupcall:48] GotoIf("SIP/AGATDOV-00000069", "1?theend") in new stack Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Goto (macro-hangupcall,s,50) Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Executing [s@macro-hangupcall:50] AGI("SIP/AGATDOV-00000069", "hangup.agi") in new stack Jul 26 09:34:27 VERBOSE [30669] resagi.c:
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi Jul 26 09:34:27 VERBOSE [30669] resagi.c:
-- <sip agatdov-00000069="">AGI Script hangup.agi completed, returning 0 Jul 26 09:34:27 VERBOSE [30669] pbx.c:
-- Executing [s@macro-hangupcall:51] Hangup("SIP/AGATDOV-00000069", "") in new stack Jul 26 09:34:27 VERBOSE [30669] appmacro.c:
== Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'SIP/AGATDOV-00000069' in macro 'hangupcall' Jul 26 09:34:27 VERBOSE [30669] pbx.c:
== Spawn extension (from-trunk, h, 1) exited non-zero on 'SIP/AGATDOV-00000069' Jul 26 09:35:01 VERBOSE [3739] asterisk.c:
-- Remote UNIX connection Jul 26 09:35:01 VERBOSE [30675] asterisk.c: -- Remote UNIX connection disconnected Jul 26 09:40:01 VERBOSE [3739] asterisk.c:
-- Remote UNIX connection
Поменяйте
context=from-trunk
на
context=from-internal
Но это не лучший выход, если у вас через один транк ходят звонки и на FXS и на FXO. Сделайте два транка - один для FXO и заадайте ему context=from-trunk и второй транк для FXS c context=from-internal. И если уж вы указываете отдельно настройки для peer и user, то ставьте соответсвующий тип (type=peer и type=user соответственно), либо оставьте один peer и type=friend
Попробуй на АГАТе FXO пускать через «удаленные абоненты», а FXS через «Учетные записи SIPproxy серверов».
Задан: 2013-07-26 09:47:44 +0400
Просмотрен: 947 раз
Обновлен: Jul 28 '13
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании
Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией
GNU GPL.
context=from-internal
romariosar ( 2013-07-26 10:01:43 +0400 )редактироватьУстановил как вы сказали однако все равно выдает The number you have dial is not in service pls check the number and try again
host=192.168.0.110
type=peer
port=5060
nat=no
qualify=yes
canreinvite=no
insecure=invite
dtmfmode=auto
disallow=all
allow=alaw&u-law
host=192.168.0.110
type=user
insecure=invite
context=from-internal
Leshik ( 2013-07-28 15:22:21 +0400 )редактироватьtype=peer или type=user все таки?
zzuz ( 2013-07-28 15:46:55 +0400 )редактироватьчто это за кодек такой u-law ? Идите книжки читайте!
zzuz ( 2013-07-28 15:47:24 +0400 )редактироватьВам же написали сделать два отдельных транка по одному для FXO и FXS!!!
bolshoy_plohish ( 2013-07-28 19:03:09 +0400 )редактироватьпроблемму решил так: user
host=192.168.0.110 type=friend nat=no qualify=yes canreinvite=no insecure=very dtmfmode=auto disallow=all allow=alaw&ulaw
peer
host=192.168.0.110 type=friend context=from-internal
Leshik ( 2013-08-03 22:32:57 +0400 )редактировать