Приходится поднять тему снова.
Астериск 1.8/ FreePBX 2.11.0.0beta2.5
Прикрутил yaai от SugarCRM
Сейчас проблемка:
Внешний входящий маршрут заведен просто на внутренний экст. Когда идет звонок извне через FXO-шлюз(D'link dvg-6008S), то и звонок проходит и номер определяется. Но в шугаре окошко с номером не появляется. Но если на тот же экст звоню с внутреннего номера, то окошко всплывает.
С входящими звонками с шлюза пришлось пошаманить - он не хотел CALLERID(num) правильный давать. Сделал кастомный контекст:
Код: Выделить всё
[from-dvg]
exten => _.,1,Set(CALLERID(num)=${CALLERID(name)})
exten => _.,n,Goto(from-pstn,${EXTEN},1)
Вот что выдает при звонке извне asterisk_logger:
Код: Выделить всё
[2013-03-14 10:09:51]
! --- Event -----------------------------------------------------------
! Event --> NewCallerid
! Privilege --> call,all
! Channel --> SIP/701-00000035
! CallerIDNum --> 735797
! CallerIDName --> 735797
! Uniqueid --> 1363255791.53
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! ---------------------------------------------------------------------
1363255791.53 CallerID Changed to: 735797
[2013-03-14 10:09:51]
! --- Event -----------------------------------------------------------
! Event --> NewCallerid
! Privilege --> call,all
! Channel --> SIP/701-00000035
! CallerIDNum --> 735797
! CallerIDName --> 735797
! Uniqueid --> 1363255791.53
! CID-CallingPres --> 0 (Presentation Allowed, Not Screened)
! ---------------------------------------------------------------------
1363255791.53 CallerID Changed to: 735797
! AMI Event 'Newchannel suppressed.
! AMI Event 'ExtensionStatus suppressed.
[2013-03-14 10:09:51]
! --- Event -----------------------------------------------------------
! Event --> Dial
! Privilege --> call,all
! SubEvent --> Begin
! Channel --> SIP/701-00000035
! Destination --> SIP/101-00000036
! CallerIDNum --> 735797
! CallerIDName --> 735797
! ConnectedLineNum --> <unknown>
! ConnectedLineName --> <unknown>
! UniqueID --> 1363255791.53
! DestUniqueID --> 1363255791.54
! Dialstring --> 101
! ---------------------------------------------------------------------
! Dial Event src=SIP/701-00000035 dest=SIP/101-00000036
! Successfully created CALL record with id=69d16f2d-dce8-f4bb-5fd9-5141a1ac9ca8
Stripping callout prefix:
Stripping callin prefix:
CallerID is: 735797
INTERNAL call detected, Deleting Call Record 69d16f2d-dce8-f4bb-5fd9-5141a1ac9ca8
! AMI Event 'Newstate suppressed.
! AMI Event 'Newstate suppressed.
! AMI Event 'ExtensionStatus suppressed.
! AMI Event 'Newstate suppressed.
[2013-03-14 10:09:59]
! --- Event -----------------------------------------------------------
! Event --> NewAccountCode
! Privilege --> call,all
! Channel --> SIP/101-00000036
! Uniqueid --> 1363255791.54
! AccountCode -->
! OldAccountCode -->
! ---------------------------------------------------------------------
[2013-03-14 10:09:59]
! --- Event -----------------------------------------------------------
! Event --> Bridge
! Privilege --> call,all
! Bridgestate --> Link
! Bridgetype --> core
! Channel1 --> SIP/701-00000035
! Channel2 --> SIP/101-00000036
! Uniqueid1 --> 1363255791.53
! Uniqueid2 --> 1363255791.54
! CallerID1 --> 735797
! CallerID2 --> 101
! ---------------------------------------------------------------------
Internatl Bridge Event Detected
RG-Bridge didn't match regex.
[2013-03-14 10:10:01]
! --- Event -----------------------------------------------------------
! Event --> Unlink
! Privilege --> call,all
! Channel1 --> SIP/701-00000035
! Channel2 --> SIP/101-00000036
! Uniqueid1 --> 1363255791.53
! Uniqueid2 --> 1363255791.54
! CallerID1 --> 735797
! CallerID2 --> 101
! ---------------------------------------------------------------------
[2013-03-14 10:10:01]
! --- Event -----------------------------------------------------------
! Event --> Hangup
! Privilege --> call,all
! Channel --> SIP/101-00000036
! Uniqueid --> 1363255791.54
! CallerIDNum --> 101
! CallerIDName --> 101
! ConnectedLineNum --> 735797
! ConnectedLineName --> 735797
! Cause --> 16
! Cause-txt --> Normal Clearing
! ---------------------------------------------------------------------
# +++ findCallByAsteriskId(1363255791.54)
! Warning, results set was empty!
[1363255791.54] FAILED TO FIND A CALL (note: there are two hangups per call, so this might not be an error)
[2013-03-14 10:10:01]
! --- Event -----------------------------------------------------------
! Event --> Dial
! Privilege --> call,all
! SubEvent --> End
! Channel --> SIP/701-00000035
! UniqueID --> 1363255791.53
! DialStatus --> ANSWER
! ---------------------------------------------------------------------
! AMI Event 'ExtensionStatus suppressed.
[2013-03-14 10:10:01]
! --- Event -----------------------------------------------------------
! Event --> Hangup
! Privilege --> call,all
! Channel --> SIP/701-00000035
! Uniqueid --> 1363255791.53
! CallerIDNum --> 735797
! CallerIDName --> 735797
! ConnectedLineNum --> 101
! ConnectedLineName --> 101
! Cause --> 16
! Cause-txt --> Normal Clearing
! ---------------------------------------------------------------------
# +++ findCallByAsteriskId(1363255791.53)
! Warning, results set was empty!
[1363255791.53] FAILED TO FIND A CALL (note: there are two hangups per call, so this might not be an error)
Вот это странно:
! ConnectedLineNum --> <unknown>
! ConnectedLineName --> <unknown>
[1363255791.53] FAILED TO FIND A CALL (note: there are two hangups per call, so this might not be an error)
Помогите пожалуйста, не знаю уже что делать.