VIDEOCHAT  ::   FAQ  ::   Поиск  ::   Регистрация  ::   Вход

YAAI

Проблемы Asterisk без вэб-оболочек и их решения

Модераторы: april22, Zavr2008

Internetchik
Сообщения: 107
Зарегистрирован: 10 июл 2012, 10:38
Откуда: Алматы

YAAI

Сообщение Internetchik »

Всем привет! Проблема с интеграцией Sugarcrm и asterisk средством YAAI. Установка прошла успешно, но если во входящей маршрутизации указать екстеншен, то карточка клиента поднимается - все функционирует, а если указать очередь то asteriskLogger.php выдает ошибку типа

[2013-02-06 04:39:23]
! --- Event -----------------------------------------------------------
! Event --> Hangup
! Privilege --> call,all
! Channel --> SIP/7273383626 -0000000d
! Uniqueid --> 1360125493.37
! CallerIDNum --> 87770174809
! CallerIDName --> Company
! ConnectedLineNum --> 1102
! ConnectedLineName --> device
! Cause --> 16
! Cause-txt --> Normal Clearing
! ---------------------------------------------------------------------
# +++ findCallByAsteriskId(1360125493.37)
! Warning, results set was empty!
[1360125493.37] FAILED TO FIND A CALL (note: there are two hangups per call, so this might not be an error)

"there are two hangups per call" , опытным путем выяснил, что проблема именно в том что звонок попадает в очередь, если направить его в группу дозвона, то карточка клиента также всплывает.
Никто не сталкивался с подобным?
YAAI v 2.3, sugarCE 6.5 , asterisk 1.8.20
Последний раз редактировалось Internetchik 06 фев 2013, 10:16, всего редактировалось 1 раз.
Vlad1983
Сообщения: 4251
Зарегистрирован: 09 авг 2011, 11:51

Re: YAAI

Сообщение Vlad1983 »

Channel --> SIP/7273383626(здесь пробел или ошибка копипасты)-0000000d
и что на самом деле отдает астериск?

и вообще Event --> Hangup звонок завершен
ЛС: @rostel
Internetchik
Сообщения: 107
Зарегистрирован: 10 июл 2012, 10:38
Откуда: Алматы

Re: YAAI

Сообщение Internetchik »

Перепроверил. Там пробел. Это отдает не сам астер, а непосредственно YAAI.

Код: Выделить всё

[2013-02-06 06:07:53]
! --- Event -----------------------------------------------------------
!                Event --> Dial                                              
!            Privilege --> call,all                                          
!             SubEvent --> Begin                                             
!              Channel --> SIP/7273383626 -00000050                          
!          Destination --> SIP/1101-00000052                                 
!          CallerIDNum --> 87272979695                                       
!         CallerIDName --> Meloman                                           
!     ConnectedLineNum --> 1101                                              
!    ConnectedLineName --> device                                            
!             UniqueID --> 1360130866.240                                    
!         DestUniqueID --> 1360130873.244                                    
!           Dialstring --> 1101                                              
! ---------------------------------------------------------------------
! Dial Event src=SIP/7273383626 -00000050 dest=SIP/1101-00000052
! Successfully created CALL record with id=72b07580-a6aa-e8d3-eb80-5111f31199db
  Stripping callout prefix: 
  Stripping callin prefix: 
  CallerID is: 87272979695
Inbound state detected... /^(sip\/[1-9][0-9][0-9]?[0-9]?-|Local)/i is astMatchInternal eChannel= SIP/7273383626 -00000050 eDestination=SIP/1101-00000052
! AMI Event 'ExtensionStatus suppressed.
! AMI Event 'Newstate suppressed.
[2013-02-06 06:07:53]
! --- Event -----------------------------------------------------------
!                Event --> Hangup                                            
!            Privilege --> call,all                                          
!              Channel --> Local/1101@from-queue-00000050;2                  
!             Uniqueid --> 1360130866.242                                    
!          CallerIDNum --> 87272979695                                       
!         CallerIDName --> Meloman                                           
!     ConnectedLineNum --> 1101                                              
!    ConnectedLineName --> device                                            
!                Cause --> 18                                                
!            Cause-txt --> No user responding                                
! ---------------------------------------------------------------------
# +++ findCallByAsteriskId(1360130866.242)
! Warning, results set was empty!
[1360130866.242] FAILED TO FIND A CALL (note: there are two hangups per call, so this might not be an error)
! AMI Event 'ExtensionStatus suppressed.
Так сказать, в подтверждение. Сам же астер, к данному логу не причастен, и в логах астера сам звонок

Код: Выделить всё

<--- SIP read from UDP:172.16.2.1:5060 --->
INVITE sip:7273383700@172.16.10.2 SIP/2.0
Via: SIP/2.0/UDP 172.16.2.1:5060;branch=z9hG4bKgjv32830agch4fl785s0.1
From: <sip:87272979646@10.14.0.2;user=phone>;tag=347009509-1360132478234-
To: "7273383700 TOVARISCHESTVO S OGRANICHENNOI"<sip:7273383700@sip.telecom.kz>
Call-ID: BW1234382330602132020119451@10.14.0.2
CSeq: 387664525 INVITE
Contact: <sip:87272979646@172.16.2.1:5060;transport=udp>
Supported: 100rel,timer
Allow: ACK,BYE,CANCEL,INFO,INVITE,OPTIONS,PRACK,REFER,NOTIFY
Accept: multipart/mixed,application/media_control+xml,application/sdp
Min-SE: 90
Session-Expires: 1800;refresher=uac
Max-Forwards: 69
Content-Type: application/sdp
Content-Length: 198

v=0
o=BroadWorks 391940050 1 IN IP4 172.16.2.1
s=-
c=IN IP4 172.16.2.1
t=0 0
m=audio 8924 RTP/AVP 8 18 101
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
<------------->
--- (15 headers 10 lines) ---
Sending to 172.16.2.1:5060 (NAT)
Using INVITE request as basis request - BW1234382330602132020119451@10.14.0.2
Found peer '7273383626 ' for '87272979646' from 172.16.2.1:5060
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
Found RTP audio format 8
Found RTP audio format 18
Found RTP audio format 101
Found audio description format telephone-event for ID 101
Capabilities: us - 0x108 (alaw|g729), peer - audio=0x108 (alaw|g729)/video=0x0 (nothing)/text=0x0 (nothing), combined - 0x108 (alaw|g729)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
Peer audio RTP is at port 172.16.2.1:8924
Looking for 7273383700 in from-trunk (domain 172.16.10.2)
list_route: hop: <sip:87272979646@172.16.2.1:5060;transport=udp>

<--- Transmitting (no NAT) to 172.16.2.1:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 172.16.2.1:5060;branch=z9hG4bKgjv32830agch4fl785s0.1;received=172.16.2.1
From: <sip:87272979646@10.14.0.2;user=phone>;tag=347009509-1360132478234-
To: "7273383700 TOVARISCHESTVO S OGRANICHENNOI"<sip:7273383700@sip.telecom.kz>
Call-ID: BW1234382330602132020119451@10.14.0.2
CSeq: 387664525 INVITE
Server: FPBX-2.8.1(1.8.20.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Session-Expires: 1800;refresher=uac
Contact: <sip:7273383700@172.16.10.2:5060>
Content-Length: 0


<------------>
    -- Executing [7273383700@from-trunk:1] Set("SIP/7273383626 -00000076", "__FROM_DID=7273383700") in new stack
    -- Executing [7273383700@from-trunk:2] Gosub("SIP/7273383626 -00000076", "app-blacklist-check,s,1") in new stack
    -- Executing [s@app-blacklist-check:1] GotoIf("SIP/7273383626 -00000076", "0?blacklisted") in new stack
    -- Executing [s@app-blacklist-check:2] Set("SIP/7273383626 -00000076", "CALLED_BLACKLIST=1") in new stack
    -- Executing [s@app-blacklist-check:3] Return("SIP/7273383626 -00000076", "") in new stack
    -- Executing [7273383700@from-trunk:3] ExecIf("SIP/7273383626 -00000076", "1 ?Set(CALLERID(name)=87272979646)") in new stack
    -- Executing [7273383700@from-trunk:4] Set("SIP/7273383626 -00000076", "__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [7273383700@from-trunk:5] Set("SIP/7273383626 -00000076", "CALLERPRES()=allowed_not_screened") in new stack
    -- Executing [7273383700@from-trunk:6] Set("SIP/7273383626 -00000076", "_RGPREFIX=Meloman: ") in new stack
    -- Executing [7273383700@from-trunk:7] Set("SIP/7273383626 -00000076", "CALLERID(name)=Meloman: 87272979646") in new stack
    -- Executing [7273383700@from-trunk:8] Goto("SIP/7273383626 -00000076", "ext-group,601,1") in new stack
    -- Goto (ext-group,601,1)
    -- Executing [601@ext-group:1] Macro("SIP/7273383626 -00000076", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/7273383626 -00000076", "AMPUSER=87272979646") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/7273383626 -00000076", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/7273383626 -00000076", "1?Set(REALCALLERIDNUM=87272979646)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/7273383626 -00000076", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/7273383626 -00000076", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/7273383626 -00000076", "1?report") in new stack
    -- Goto (macro-user-callerid,s,10)
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/7273383626 -00000076", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/7273383626 -00000076", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/7273383626 -00000076", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] Set("SIP/7273383626 -00000076", "CALLERID(number)=87272979646") in new stack
   -- Executing [s@macro-user-callerid:20] Set("SIP/7273383626 -00000076", "CALLERID(name)=Meloman: 87272979646") in new stack
    -- Executing [s@macro-user-callerid:21] NoOp("SIP/7273383626 -00000076", "Using CallerID "Meloman: 87272979646" <87272979646>") in new stack
    -- Executing [601@ext-group:2] GotoIf("SIP/7273383626 -00000076", "1?skipdb") in new stack
    -- Goto (ext-group,601,4)
    -- Executing [601@ext-group:4] Set("SIP/7273383626 -00000076", "__NODEST=") in new stack
    -- Executing [601@ext-group:5] Set("SIP/7273383626 -00000076", "__BLKVM_OVERRIDE=BLKVM/601/SIP/7273383626 -00000076") in new stack
    -- Executing [601@ext-group:6] Set("SIP/7273383626 -00000076", "__BLKVM_BASE=601") in new stack
    -- Executing [601@ext-group:7] Set("SIP/7273383626 -00000076", "DB(BLKVM/601/SIP/7273383626 -00000076)=TRUE") in new stack
    -- Executing [601@ext-group:8] Set("SIP/7273383626 -00000076", "RRNODEST=") in new stack
    -- Executing [601@ext-group:9] Set("SIP/7273383626 -00000076", "__NODEST=601") in new stack
    -- Executing [601@ext-group:10] GosubIf("SIP/7273383626 -00000076", "0?sub-rgsetcid,s,1") in new stack
    -- Executing [601@ext-group:11] Set("SIP/7273383626 -00000076", "__CWIGNORE=TRUE") in new stack
    -- Executing [601@ext-group:12] Set("SIP/7273383626 -00000076", "RecordMethod=Group") in new stack
    -- Executing [601@ext-group:13] Macro("SIP/7273383626 -00000076", "record-enable,1101,Group") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("SIP/7273383626 -00000076", "1?check") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] ExecIf("SIP/7273383626 -00000076", "0?MacroExit()") in new stack
    -- Executing [s@macro-record-enable:5] GotoIf("SIP/7273383626 -00000076", "1?Group:OUT") in new stack
    -- Goto (macro-record-enable,s,6)
    -- Executing [s@macro-record-enable:6] Set("SIP/7273383626 -00000076", "LOOPCNT=1") in new stack
    -- Executing [s@macro-record-enable:7] Set("SIP/7273383626 -00000076", "ITER=1") in new stack
    -- Executing [s@macro-record-enable:8] GotoIf("SIP/7273383626 -00000076", "0?continue") in new stack
    -- Executing [s@macro-record-enable:9] Set("SIP/7273383626 -00000076", "TEXTEN=1101") in new stack
    -- Executing [s@macro-record-enable:10] NoOp("SIP/7273383626 -00000076", "Recording enable for 1101") in new stack
    -- Executing [s@macro-record-enable:11] Set("SIP/7273383626 -00000076", "CALLFILENAME=g1101-20130206-123438-1360132477.280") in new stack
    -- Executing [s@macro-record-enable:12] Goto("SIP/7273383626 -00000076", "record") in new stack
    -- Goto (macro-record-enable,s,23)
    -- Executing [s@macro-record-enable:23] MixMonitor("SIP/7273383626 -00000076", "g1101-20130206-123438-1360132477.280.wav,,") in new stack
    -- Executing [s@macro-record-enable:24] Set("SIP/7273383626 -00000076", "CDR(userfield)=audio:g1101-20130206-123438-1360132477.280.wav") in new stack
  == Begin MixMonitor Recording SIP/7273383626 -00000076
    -- Executing [s@macro-record-enable:25] MacroExit("SIP/7273383626 -00000076", "") in new stack
    -- Executing [601@ext-group:14] Set("SIP/7273383626 -00000076", "RingGroupMethod=hunt") in new stack
    -- Executing [601@ext-group:15] Macro("SIP/7273383626 -00000076", "dial,20,tr,1101") in new stack
    -- Executing [s@macro-dial:1] GotoIf("SIP/7273383626 -00000076", "1?dial") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing [s@macro-dial:3] AGI("SIP/7273383626 -00000076", "dialparties.agi") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
 dialparties.agi: Starting New Dialparties.agi
 dialparties.agi: Caller ID name is 'Meloman: 87272979646' number is '87272979646'
 dialparties.agi: Methodology of ring is  'hunt'
    -- dialparties.agi: Added extension 1101 to extension map
    -- dialparties.agi: Extension 1101 cf is disabled
    -- dialparties.agi: Extension 1101 do not disturb is disabled
 dialparties.agi: EXTENSION_STATE: 0 (NOT_INUSE)
 dialparties.agi: Extension 1101 has ExtensionState: 0
    -- dialparties.agi: Checking CW and CFB status for extension 1101
    -- dialparties.agi: Filtered ARG3: 1101
    -- <SIP/7273383626 -00000076>AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:20] NoOp("SIP/7273383626 -00000076", "Returned from dialparties with hunt groups to dial ") in new stack
    -- Executing [s@macro-dial:21] Set("SIP/7273383626 -00000076", "HuntLoop=0") in new stack
    -- Executing [s@macro-dial:22] GotoIf("SIP/7273383626 -00000076", "1?a30") in new stack
    -- Goto (macro-dial,s,26)
    -- Executing [s@macro-dial:26] Set("SIP/7273383626 -00000076", "HuntMember=HuntMember0") in new stack
    -- Executing [s@macro-dial:27] GotoIf("SIP/7273383626 -00000076", "1?a32:a35") in new stack
    -- Goto (macro-dial,s,28)
    -- Executing [s@macro-dial:28] Set("SIP/7273383626 -00000076", "CT_EXTEN=1101") in new stack
    -- Executing [s@macro-dial:29] Set("SIP/7273383626 -00000076", "DB(CALLTRACE/1101)=87272979646") in new stack
    -- Executing [s@macro-dial:30] Goto("SIP/7273383626 -00000076", "s,a42") in new stack
    -- Goto (macro-dial,s,38)
    -- Executing [s@macro-dial:38] Dial("SIP/7273383626 -00000076", "SIP/1101,20,trM(auto-blkvm)") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Called SIP/1101

<--- Transmitting (no NAT) to 172.16.2.1:5060 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 172.16.2.1:5060;branch=z9hG4bKgjv32830agch4fl785s0.1;received=172.16.2.1
From: <sip:87272979646@10.14.0.2;user=phone>;tag=347009509-1360132478234-
To: "7273383700 TOVARISCHESTVO S OGRANICHENNOI"<sip:7273383700@sip.telecom.kz>;tag=as1a6d79ec
Call-ID: BW1234382330602132020119451@10.14.0.2
CSeq: 387664525 INVITE
Server: FPBX-2.8.1(1.8.20.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Session-Expires: 1800;refresher=uac
Contact: <sip:7273383700@172.16.10.2:5060>
Content-Length: 0


<------------>

<--- SIP read from UDP:172.16.2.1:5060 --->
CANCEL sip:7273383700@172.16.10.2 SIP/2.0
Via: SIP/2.0/UDP 172.16.2.1:5060;branch=z9hG4bKgjv32830agch4fl785s0.1
CSeq: 387664525 CANCEL
From: <sip:87272979646@10.14.0.2;user=phone>;tag=347009509-1360132478234-
To: "7273383700 TOVARISCHESTVO S OGRANICHENNOI"<sip:7273383700@sip.telecom.kz>
Call-ID: BW1234382330602132020119451@10.14.0.2
Max-Forwards: 69
Content-Length: 0

<------------->
--- (8 headers 0 lines) ---
Sending to 172.16.2.1:5060 (no NAT)

<--- Reliably Transmitting (no NAT) to 172.16.2.1:5060 --->
SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 172.16.2.1:5060;branch=z9hG4bKgjv32830agch4fl785s0.1;received=172.16.2.1
From: <sip:87272979646@10.14.0.2;user=phone>;tag=347009509-1360132478234-
To: "7273383700 TOVARISCHESTVO S OGRANICHENNOI"<sip:7273383700@sip.telecom.kz>;tag=as1a6d79ec
Call-ID: BW1234382330602132020119451@10.14.0.2
CSeq: 387664525 INVITE
Server: FPBX-2.8.1(1.8.20.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
"и вообще Event --> Hangup звонок завершен"
я просто трубку не поднимаю =)
Vlad1983
Сообщения: 4251
Зарегистрирован: 09 авг 2011, 11:51

Re: YAAI

Сообщение Vlad1983 »

-- Executing [601@ext-group:14] Set("SIP/7273383626 -00000076", "RingGroupMethod=hunt") in new stack
там тоже пробел?

опишите агентов очереди не через Local, а через SIP
и попробуйте так
ЛС: @rostel
Internetchik
Сообщения: 107
Зарегистрирован: 10 июл 2012, 10:38
Откуда: Алматы

Re: YAAI

Сообщение Internetchik »

Да там тоже пробел. member=SIP/1101@from-queue/n,0,1101,SIP/1101
Звонки перестают вообще ходить по этой очереди. asteriskLogger.php:

Код: Выделить всё

[2013-02-06 07:05:39]
! --- Event -----------------------------------------------------------
!                Event --> NewCallerid                                       
!            Privilege --> call,all                                          
!              Channel --> SIP/7273383626 -00000082                          
!          CallerIDNum --> 87272979695                                       
!         CallerIDName --> Meloman                                           
!             Uniqueid --> 1360134337.296                                    
!      CID-CallingPres --> 0 (Presentation Allowed, Not Screened)            
! ---------------------------------------------------------------------
  1360134337.296 CallerID  Changed to: 87272979695
[2013-02-06 07:05:39]
! --- Event -----------------------------------------------------------
!                Event --> Join                                              
!            Privilege --> call,all                                          
!              Channel --> SIP/7273383626 -00000082                          
!          CallerIDNum --> 87272979695                                       
!         CallerIDName --> Meloman                                           
!     ConnectedLineNum --> unknown                                           
!    ConnectedLineName --> unknown                                           
!                Queue --> 4                                                 
!             Position --> 1                                                 
!                Count --> 1                                                 
!             Uniqueid --> 1360134337.296                                    
! ---------------------------------------------------------------------
PHP Notice:  Undefined index:  UniqueID in /var/www/html/sugarcrm/custom/modules/Asterisk/asteriskLogger.php on line 341
[2013-02-06 07:05:39]
! --- Event -----------------------------------------------------------
!                Event --> MusicOnHold                                       
!            Privilege --> call,all                                          
!                State --> Start                                             
!              Channel --> SIP/7273383626 -00000082                          
!             UniqueID --> 1360134337.296                                    
!                Class --> default                                           
! ---------------------------------------------------------------------
[2013-02-06 07:05:39]
! --- Event -----------------------------------------------------------
!                Event --> MusicOnHold                                       
!            Privilege --> call,all                                          
!                State --> Stop                                              
!              Channel --> SIP/7273383626 -00000082                          
!             UniqueID --> 1360134337.296                                    
! ---------------------------------------------------------------------
[2013-02-06 07:05:39]
! --- Event -----------------------------------------------------------
!                Event --> Leave                                             
!            Privilege --> call,all                                          
!              Channel --> SIP/7273383626 -00000082                          
!                Queue --> 4                                                 
!                Count --> 0                                                 
!             Position --> 1                                                 
!             Uniqueid --> 1360134337.296                                    
! ---------------------------------------------------------------------
Зато в логе астера:

Код: Выделить всё

NOTICE[8812] chan_sip.c: No field "From" present to copy
NOTICE[8812] chan_sip.c: No field "Call-ID" present to copy
NOTICE[8812] chan_sip.c: No field "QSec" present to copy
c member=SIP/1101 тоже не всплывает карточка
Последний раз редактировалось Internetchik 06 фев 2013, 11:50, всего редактировалось 1 раз.
Vlad1983
Сообщения: 4251
Зарегистрирован: 09 авг 2011, 11:51

Re: YAAI

Сообщение Vlad1983 »

member=SIP/1101@from-queue/n,0,1101,SIP/1101
где вы такое нашли вообще?

member=SIP/1101,0,1101,SIP/1101
ЛС: @rostel
Internetchik
Сообщения: 107
Зарегистрирован: 10 июл 2012, 10:38
Откуда: Алматы

Re: YAAI

Сообщение Internetchik »

Да знаю выглядит немного дико. Но так выставленно в queues_additional.conf elastix'a и я решил не нарушать "традиции". хотя с member=SIP/1101 также не всплывает окно, хотя звонки идут.
Internetchik
Сообщения: 107
Зарегистрирован: 10 июл 2012, 10:38
Откуда: Алматы

Re: YAAI

Сообщение Internetchik »

Как Вы указали, так же не срабатывает.

Код: Выделить всё

! --- Event -----------------------------------------------------------
!                Event --> MusicOnHold                                       
!            Privilege --> call,all                                          
!                State --> Stop                                              
!              Channel --> SIP/7273383626 -000000e5                          
!             UniqueID --> 1360138671.437                                    
! ---------------------------------------------------------------------
[2013-02-06 08:17:56]
! --- Event -----------------------------------------------------------
!                Event --> Leave                                             
!            Privilege --> call,all                                          
!              Channel --> SIP/7273383626 -000000e5                          
!                Queue --> 4                                                 
!                Count --> 0                                                 
!             Position --> 1                                                 
!             Uniqueid --> 1360138671.437                                    
! ---------------------------------------------------------------------
[2013-02-06 08:17:56]
! --- Event -----------------------------------------------------------
!                Event --> NewAccountCode                                    
!            Privilege --> call,all                                          
!              Channel --> SIP/1101-000000e6                                 
!             Uniqueid --> 1360138672.440                                    
!          AccountCode -->                                                   
!       OldAccountCode -->                                                   
! ---------------------------------------------------------------------
[2013-02-06 08:17:56]
! --- Event -----------------------------------------------------------
!                Event --> Bridge                                            
!            Privilege --> call,all                                          
!          Bridgestate --> Link                                              
!           Bridgetype --> core                                              
!             Channel1 --> SIP/7273383626 -000000e5                          
!             Channel2 --> SIP/1101-000000e6                                 
!            Uniqueid1 --> 1360138671.437                                    
!            Uniqueid2 --> 1360138672.440                                    
!            CallerID1 --> 87272979695                                       
!            CallerID2 --> 1101                                              
! ---------------------------------------------------------------------
! AMI Event 'ExtensionStatus suppressed.
!
 --- Event -----------------------------------------------------------
!                Event --> Unlink                                            
!            Privilege --> call,all                                          
!             Channel1 --> SIP/7273383626 -000000db                          
!             Channel2 --> SIP/1101-000000dd                                 
!            Uniqueid1 --> 1360138325.409                                    
!            Uniqueid2 --> 1360138328.415                                    
!            CallerID1 --> 87272979695                                       
!            CallerID2 --> 1101                                              
! ---------------------------------------------------------------------
[2013-02-06 08:13:03]
! --- Event -----------------------------------------------------------
!                Event --> Hangup                                            
!            Privilege --> call,all                                          
!              Channel --> SIP/1101-000000dd                                 
!             Uniqueid --> 1360138328.415                                    
!          CallerIDNum --> 1101                                              
!         CallerIDName --> device                                            
!     ConnectedLineNum --> 87272979695                                       
!    ConnectedLineName --> Meloman                                           
!                Cause --> 16                                                
!            Cause-txt --> Normal Clearing                                   
! ---------------------------------------------------------------------
# +++ findCallByAsteriskId(1360138328.415)
! Warning, results set was empty!
[1360138328.415] FAILED TO FIND A CALL (note: there are two hangups per call, so this might not be an error)
Vlad1983
Сообщения: 4251
Зарегистрирован: 09 авг 2011, 11:51

Re: YAAI

Сообщение Vlad1983 »

уберите пробел из названия пира
может быть он и сносит мозг этому парсеру
ЛС: @rostel
Internetchik
Сообщения: 107
Зарегистрирован: 10 июл 2012, 10:38
Откуда: Алматы

Re: YAAI

Сообщение Internetchik »

Я конечно попробовал, по убирал пробелы из всех названий, где они были. Но результата не дало. Да и вот лог удачного срабатывания YAAI

Код: Выделить всё

[2013-02-06 09:02:10]
! --- Event -----------------------------------------------------------
!                Event --> NewAccountCode                                    
!            Privilege --> call,all                                          
!              Channel --> SIP/1101-00000105                                 
!             Uniqueid --> 1360141319.521                                    
!          AccountCode -->                                                   
!       OldAccountCode -->                                                   
! ---------------------------------------------------------------------
[2013-02-06 09:02:10]
! --- Event -----------------------------------------------------------
!                Event --> Bridge                                            
!            Privilege --> call,all                                          
!          Bridgestate --> Link                                              
!           Bridgetype --> core                                              
!             Channel1 --> SIP/7273383626 -00000104                          
!             Channel2 --> SIP/1101-00000105                                 
!            Uniqueid1 --> 1360141319.520                                    
!            Uniqueid2 --> 1360141319.521                                    
!            CallerID1 --> 87273860616                                       
!            CallerID2 --> 1101                                              
! ---------------------------------------------------------------------
[2013-02-06 09:02:15]
! --- Event -----------------------------------------------------------
!                Event --> Unlink                                            
!            Privilege --> call,all                                          
!             Channel1 --> SIP/7273383626 -00000104                          
!             Channel2 --> SIP/1101-00000105                                 
!            Uniqueid1 --> 1360141319.520                                    
!            Uniqueid2 --> 1360141319.521                                    
!            CallerID1 --> 87273860616                                       
!            CallerID2 --> 1101                                              
! ---------------------------------------------------------------------
[2013-02-06 09:02:16]
! --- Event -----------------------------------------------------------
!                Event --> Hangup                                            
!            Privilege --> call,all                                          
!              Channel --> SIP/1101-00000105                                 
!             Uniqueid --> 1360141319.521                                    
!          CallerIDNum --> 1101                                              
!         CallerIDName --> device                                            
!     ConnectedLineNum --> 87273860616                                       
!    ConnectedLineName --> Meloman:87273860616                               
!                Cause --> 16                                                
!            Cause-txt --> Normal Clearing                                   
! ---------------------------------------------------------------------
# +++ findCallByAsteriskDestId(1360141319.521)
! FindCallByAsteriskDestId - Found entry in asterisk_log recordId=f074f7f9-dcf5-24dc-0c64-51121c686ff1
Looking for user extension number in: SIP/1101-00000105
Channel Matched SIP/### style regex.  Ext is:1101
### +++ findUserByAsteriskExtension(1101)
Здесь тоже присутствует этот пробел, и оно работает. Мне кажется оно не работало бы всюду если бы он являлся причиной. мне кажется, что этот пробел лишь такой вывод строчки.
Ответить
© 2008 — 2025 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH