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

Проблемы с Caller ID

Новичком считается только что прочитавший «Астериск - будущее телефонии»
http://asterisk.ru/knowledgebase/books
и пытающийся сделать большее

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

Ответить
sartus
Сообщения: 98
Зарегистрирован: 04 июл 2013, 16:13

Проблемы с Caller ID

Сообщение sartus »

Всем Приветствую всех присутствующих!! У меня такая проблема. Стоит на Hyper-v asterisk 1.8+freepbx2.11. к есть железка Grandstream GXW4232, софтофоны и ip телефоны, так вот когда начинаю звонить с аналогового телефона через эту железку на софтофон или ip телефон вместо Caller ID показывает anonymous. А когда с софтофона на ip телефон то все нормально. я так понимаю и из-за этого же не пускает в город. Но самое интересное что если с аналога оставляется сообщение на голосовую почту то там нормально определяется номер звонящего. на аналог так же легко дозванивается с любого телефона. Вот что пишет в CLI:

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

 == Using UDPTL TOS bits 184
  == Using UDPTL CoS mark 5
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [101@from-internal:1] Set("SIP/110-00000002", "__RINGTIMER=15") in new stack
    -- Executing [101@from-internal:2] Macro("SIP/110-00000002", "exten-vm,novm,101,0,0,0") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("SIP/110-00000002", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/110-00000002", "TOUCH_MONITOR=1372940479.2") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/110-00000002", "AMPUSER=110") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/110-00000002", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/110-00000002", "1?Set(REALCALLERIDNUM=110)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/110-00000002", "AMPUSER=110") in new stack
    -- Executing [s@macro-user-callerid:6] Set("SIP/110-00000002", "AMPUSERCIDNAME=Вася") in new stack
    -- Executing [s@macro-user-callerid:7] GotoIf("SIP/110-00000002", "0?report") in new stack
    -- Executing [s@macro-user-callerid:8] Set("SIP/110-00000002", "AMPUSERCID=110") in new stack
    -- Executing [s@macro-user-callerid:9] Set("SIP/110-00000002", "__DIAL_OPTIONS=tr") in new stack
    -- Executing [s@macro-user-callerid:10] Set("SIP/110-00000002", "CALLERID(all)="Вася" <110>") in new stack
    -- Executing [s@macro-user-callerid:11] GotoIf("SIP/110-00000002", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("SIP/110-00000002", "0?Set(GROUP(concurrency_limit)=110)") in new stack
    -- Executing [s@macro-user-callerid:13] GotoIf("SIP/110-00000002", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:14] Set("SIP/110-00000002", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:15] GotoIf("SIP/110-00000002", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,26)
    -- Executing [s@macro-user-callerid:26] Set("SIP/110-00000002", "CALLERID(number)=110") in new stack
    -- Executing [s@macro-user-callerid:27] Set("SIP/110-00000002", "CALLERID(name)=Вася") in new stack
    -- Executing [s@macro-user-callerid:28] Set("SIP/110-00000002", "CDR(cnum)=110") in new stack
    -- Executing [s@macro-user-callerid:29] Set("SIP/110-00000002", "CDR(cnam)=Вася") in new stack
    -- Executing [s@macro-user-callerid:30] Set("SIP/110-00000002", "CHANNEL(language)=ru") in new stack
    -- Executing [s@macro-exten-vm:2] Set("SIP/110-00000002", "RingGroupMethod=none") in new stack
    -- Executing [s@macro-exten-vm:3] Set("SIP/110-00000002", "__EXTTOCALL=101") in new stack
    -- Executing [s@macro-exten-vm:4] Set("SIP/110-00000002", "__PICKUPMARK=101") in new stack
    -- Executing [s@macro-exten-vm:5] Set("SIP/110-00000002", "RT=") in new stack
    -- Executing [s@macro-exten-vm:6] Gosub("SIP/110-00000002", "sub-record-check,s,1(exten,101,)") in new stack
    -- Executing [s@sub-record-check:1] Set("SIP/110-00000002", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:2] GotoIf("SIP/110-00000002", "1?check") in new stack
    -- Goto (sub-record-check,s,7)
    -- Executing [s@sub-record-check:7] Set("SIP/110-00000002", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:8] GotoIf("SIP/110-00000002", "1?next") in new stack
    -- Goto (sub-record-check,s,11)
    -- Executing [s@sub-record-check:11] ExecIf("SIP/110-00000002", "0?Return()") in new stack
    -- Executing [s@sub-record-check:12] ExecIf("SIP/110-00000002", "0?Set(__REC_POLICY_MODE=)") in new stack
    -- Executing [s@sub-record-check:13] GotoIf("SIP/110-00000002", "0?exten,1") in new stack
    -- Executing [s@sub-record-check:14] Set("SIP/110-00000002", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:15] Set("SIP/110-00000002", "NOW=1372940479") in new stack
    -- Executing [s@sub-record-check:16] Set("SIP/110-00000002", "__DAY=04") in new stack
    -- Executing [s@sub-record-check:17] Set("SIP/110-00000002", "__MONTH=07") in new stack
    -- Executing [s@sub-record-check:18] Set("SIP/110-00000002", "__YEAR=2013") in new stack
    -- Executing [s@sub-record-check:19] Set("SIP/110-00000002", "__TIMESTR=20130704-162119") in new stack
    -- Executing [s@sub-record-check:20] Set("SIP/110-00000002", "__FROMEXTEN=110") in new stack
    -- Executing [s@sub-record-check:21] Set("SIP/110-00000002", "__CALLFILENAME=exten-101-110-20130704-162119-1372940479.2") in new stack
    -- Executing [s@sub-record-check:22] Goto("SIP/110-00000002", "exten,1") in new stack
    -- Goto (sub-record-check,exten,1)
    -- Executing [exten@sub-record-check:1] GotoIf("SIP/110-00000002", "0?callee") in new stack
    -- Executing [exten@sub-record-check:2] Set("SIP/110-00000002", "__REC_POLICY_MODE=dontcare") in new stack
    -- Executing [exten@sub-record-check:3] GotoIf("SIP/110-00000002", "1?caller") in new stack
    -- Goto (sub-record-check,exten,10)
    -- Executing [exten@sub-record-check:10] Set("SIP/110-00000002", "__REC_POLICY_MODE=dontcare") in new stack
    -- Executing [exten@sub-record-check:11] GosubIf("SIP/110-00000002", "0?record,1(exten,101,110)") in new stack
    -- Executing [exten@sub-record-check:12] Return("SIP/110-00000002", "") in new stack
    -- Executing [s@macro-exten-vm:7] Macro("SIP/110-00000002", "dial-one,,tr,101") in new stack
    -- Executing [s@macro-dial-one:1] Set("SIP/110-00000002", "DEXTEN=101") in new stack
    -- Executing [s@macro-dial-one:2] Set("SIP/110-00000002", "DIALSTATUS_CW=") in new stack
    -- Executing [s@macro-dial-one:3] GosubIf("SIP/110-00000002", "0?screen,1()") in new stack
    -- Executing [s@macro-dial-one:4] GosubIf("SIP/110-00000002", "0?cf,1()") in new stack
    -- Executing [s@macro-dial-one:5] GotoIf("SIP/110-00000002", "1?skip1") in new stack
    -- Goto (macro-dial-one,s,8)
    -- Executing [s@macro-dial-one:8] GotoIf("SIP/110-00000002", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:9] GotoIf("SIP/110-00000002", "0?continue") in new stack
    -- Executing [s@macro-dial-one:10] Set("SIP/110-00000002", "EXTHASCW=ENABLED") in new stack
    -- Executing [s@macro-dial-one:11] GotoIf("SIP/110-00000002", "0?next1:cwinusebusy") in new stack
    -- Goto (macro-dial-one,s,23)
    -- Executing [s@macro-dial-one:23] GotoIf("SIP/110-00000002", "1?next3:continue") in new stack
    -- Goto (macro-dial-one,s,24)
    -- Executing [s@macro-dial-one:24] ExecIf("SIP/110-00000002", "0?Set(DIALSTATUS_CW=BUSY)") in new stack
    -- Executing [s@macro-dial-one:25] GotoIf("SIP/110-00000002", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:26] GosubIf("SIP/110-00000002", "1?dstring,1():dlocal,1()") in new stack
    -- Executing [dstring@macro-dial-one:1] Set("SIP/110-00000002", "DSTRING=") in new stack
    -- Executing [dstring@macro-dial-one:2] Set("SIP/110-00000002", "DEVICES=101") in new stack
    -- Executing [dstring@macro-dial-one:3] ExecIf("SIP/110-00000002", "0?Return()") in new stack
    -- Executing [dstring@macro-dial-one:4] ExecIf("SIP/110-00000002", "0?Set(DEVICES=01)") in new stack
    -- Executing [dstring@macro-dial-one:5] Set("SIP/110-00000002", "LOOPCNT=1") in new stack
    -- Executing [dstring@macro-dial-one:6] Set("SIP/110-00000002", "ITER=1") in new stack
    -- Executing [dstring@macro-dial-one:7] Set("SIP/110-00000002", "THISDIAL=SIP/101") in new stack
    -- Executing [dstring@macro-dial-one:8] GosubIf("SIP/110-00000002", "1?zap2dahdi,1()") in new stack
    -- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/110-00000002", "0?Return()") in new stack
    -- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/110-00000002", "NEWDIAL=") in new stack
    -- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/110-00000002", "LOOPCNT2=1") in new stack
    -- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/110-00000002", "ITER2=1") in new stack
    -- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/110-00000002", "THISPART2=SIP/101") in new stack
    -- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/110-00000002", "0?Set(THISPART2=DAHDI/101)") in new stack
    -- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/110-00000002", "NEWDIAL=SIP/101&") in new stack
    -- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/110-00000002", "ITER2=2") in new stack
    -- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/110-00000002", "0?begin2") in new stack
    -- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/110-00000002", "THISDIAL=SIP/101") in new stack
    -- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/110-00000002", "") in new stack
    -- Executing [dstring@macro-dial-one:9] Set("SIP/110-00000002", "DSTRING=SIP/101&") in new stack
    -- Executing [dstring@macro-dial-one:10] Set("SIP/110-00000002", "ITER=2") in new stack
    -- Executing [dstring@macro-dial-one:11] GotoIf("SIP/110-00000002", "0?begin") in new stack
    -- Executing [dstring@macro-dial-one:12] Set("SIP/110-00000002", "DSTRING=SIP/101") in new stack
    -- Executing [dstring@macro-dial-one:13] Return("SIP/110-00000002", "") in new stack
    -- Executing [s@macro-dial-one:27] GotoIf("SIP/110-00000002", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:28] GotoIf("SIP/110-00000002", "0?skiptrace") in new stack
    -- Executing [s@macro-dial-one:29] GosubIf("SIP/110-00000002", "1?ctset,1():ctclear,1()") in new stack
    -- Executing [ctset@macro-dial-one:1] Set("SIP/110-00000002", "DB(CALLTRACE/101)=110") in new stack
    -- Executing [ctset@macro-dial-one:2] Return("SIP/110-00000002", "") in new stack
    -- Executing [s@macro-dial-one:30] Set("SIP/110-00000002", "D_OPTIONS=tr") in new stack
    -- Executing [s@macro-dial-one:31] ExecIf("SIP/110-00000002", "0?SIPAddHeader(Alert-Info: )") in new stack
    -- Executing [s@macro-dial-one:32] ExecIf("SIP/110-00000002", "0?SIPAddHeader()") in new stack
    -- Executing [s@macro-dial-one:33] ExecIf("SIP/110-00000002", "0?Set(CHANNEL(musicclass)=)") in new stack
    -- Executing [s@macro-dial-one:34] GosubIf("SIP/110-00000002", "0?qwait,1()") in new stack
    -- Executing [s@macro-dial-one:35] Set("SIP/110-00000002", "__CWIGNORE=") in new stack
    -- Executing [s@macro-dial-one:36] Set("SIP/110-00000002", "__KEEPCID=TRUE") in new stack
    -- Executing [s@macro-dial-one:37] GotoIf("SIP/110-00000002", "0?usegoto,1") in new stack
    -- Executing [s@macro-dial-one:38] GotoIf("SIP/110-00000002", "0?godial") in new stack
    -- Executing [s@macro-dial-one:39] Set("SIP/110-00000002", "CONNECTEDLINE(name,i)=Уткин Дмитрий") in new stack
    -- Executing [s@macro-dial-one:40] Set("SIP/110-00000002", "CONNECTEDLINE(num)=101") in new stack
    -- Executing [s@macro-dial-one:41] Set("SIP/110-00000002", "D_OPTIONS=trI") in new stack
    -- Executing [s@macro-dial-one:42] Dial("SIP/110-00000002", "SIP/101,,trI") in new stack
  == Using UDPTL TOS bits 184
Помогите разобраться и сильно не ругайте(только начал осваивать)
ded
Сообщения: 15628
Зарегистрирован: 26 авг 2010, 19:00

Re: Проблемы с Caller ID

Сообщение ded »

1) Не хотите спросить об этом производителя? Grandstream!
2) Вы думаете, что если указать в вэб интерфейсе по-русски CALLERID(name)=Вася и CONNECTEDLINE(name,i)=Уткин Дмитрий то на экранах телефонов так и будет отображаться? Caller ID должен поддерживаться в корректной кодировке в устройстве (Grandstream), базе MySQL куда пишет вэб интерфейс, и т.д.
На форуме есть ветка по этой теме, надо поискать и прочитать всю.
sartus
Сообщения: 98
Зарегистрирован: 04 июл 2013, 16:13

Re: Проблемы с Caller ID

Сообщение sartus »

дело в том что когда тестировал на другой машине с этой же железкой с теми же настройками все отображалось корректно, проблема с этой сборкой но я не пойму где!
sartus
Сообщения: 98
Зарегистрирован: 04 июл 2013, 16:13

Re: Проблемы с Caller ID

Сообщение sartus »

менял имена на английский все равно эффекта нет. Стоит это все на Centos 6.4
ded
Сообщения: 15628
Зарегистрирован: 26 авг 2010, 19:00

Re: Проблемы с Caller ID

Сообщение ded »

Cli> sip set debug peer 110
и сравнивать до зелёных кругов перед глазами, самостоятельно.
sartus
Сообщения: 98
Зарегистрирован: 04 июл 2013, 16:13

Re: Проблемы с Caller ID

Сообщение sartus »

вот что выдает

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

<--- Transmitting (no NAT) to 192.168.5.45:5092 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.5.45:5092;branch=z9hG4bK1628806412;received=192.168.5.45;rport=5092
From: "110" <sip:110@192.168.5.141>;tag=1281362153
To: <sip:101@192.168.5.141>;tag=as2f79c000
Call-ID: 1790862698-5092-10@BJC.BGI.F.EF
CSeq: 91 INVITE
Server: FPBX-2.11.0(1.8.8.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Contact: <sip:101@192.168.5.141:5060>
Content-Length: 0


<------------>
    -- Connected line update to SIP/110-00000006 prevented.
    -- SIP/101-00000007 is ringing

<--- Transmitting (no NAT) to 192.168.5.45:5092 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.5.45:5092;branch=z9hG4bK1628806412;received=192.168.5.45;rport=5092
From: "110" <sip:110@192.168.5.141>;tag=1281362153
To: <sip:101@192.168.5.141>;tag=as2f79c000
Call-ID: 1790862698-5092-10@BJC.BGI.F.EF
CSeq: 91 INVITE
Server: FPBX-2.11.0(1.8.8.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Contact: <sip:101@192.168.5.141:5060>
Content-Length: 0
<------------>
    -- SIP/101-00000007 is ringing
Reliably Transmitting (no NAT) to 192.168.5.45:5092:
OPTIONS sip:110@192.168.5.45:5092 SIP/2.0
Via: SIP/2.0/UDP 192.168.5.141:5060;branch=z9hG4bK21372af5
Max-Forwards: 70
From: "Unknown" <sip:Unknown@192.168.5.141>;tag=as617054bc
To: <sip:110@192.168.5.45:5092>
Contact: <sip:Unknown@192.168.5.141:5060>
Call-ID: 0b551dd148b1525741f76c37467acb19@192.168.5.141:5060
CSeq: 102 OPTIONS
User-Agent: FPBX-2.11.0(1.8.8.1)
Date: Thu, 04 Jul 2013 13:44:46 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


---

<--- SIP read from UDP:192.168.5.45:5092 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.5.141:5060;branch=z9hG4bK21372af5
From: "Unknown" <sip:Unknown@192.168.5.141>;tag=as617054bc
To: <sip:110@192.168.5.45:5092>;tag=1408147219
Call-ID: 0b551dd148b1525741f76c37467acb19@192.168.5.141:5060
CSeq: 102 OPTIONS
Supported: replaces, path, timer, eventlist
User-Agent: Grandstream GXW4232 V2.3B 1.0.3.9
Allow: INVITE, ACK, OPTIONS, CANCEL, BYE, SUBSCRIBE, NOTIFY, INFO, REFER, UPDATE
Content-Length: 0

<------------->
--- (10 headers 0 lines) ---
Really destroying SIP dialog '0b551dd148b1525741f76c37467acb19@192.168.5.141:5060' Method: OPTIONS

<--- SIP read from UDP:192.168.5.45:5092 --->
CANCEL sip:101@192.168.5.141 SIP/2.0
Via: SIP/2.0/UDP 192.168.5.45:5092;branch=z9hG4bK1628806412;rport
Route: <sip:192.168.5.141:5060;lr>
Route: <sip:192.168.5.141:5060;lr>
From: "110" <sip:110@192.168.5.141>;tag=1281362153
To: <sip:101@192.168.5.141>
Call-ID: 1790862698-5092-10@BJC.BGI.F.EF
CSeq: 91 CANCEL
Max-Forwards: 70
User-Agent: Grandstream GXW4232 V2.3B 1.0.3.9
Content-Length: 0

<------------->
--- (11 headers 0 lines) ---
Sending to 192.168.5.45:5092 (no NAT)

<--- Reliably Transmitting (no NAT) to 192.168.5.45:5092 --->
SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 192.168.5.45:5092;branch=z9hG4bK1628806412;received=192.168.5.45;rport=5092
From: "110" <sip:110@192.168.5.141>;tag=1281362153
To: <sip:101@192.168.5.141>;tag=as2f79c000
Call-ID: 1790862698-5092-10@BJC.BGI.F.EF
CSeq: 91 INVITE
Server: FPBX-2.11.0(1.8.8.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


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

<--- Transmitting (no NAT) to 192.168.5.45:5092 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.5.45:5092;branch=z9hG4bK1628806412;received=192.168.5.45;rport=5092
From: "110" <sip:110@192.168.5.141>;tag=1281362153
To: <sip:101@192.168.5.141>;tag=as2f79c000
Call-ID: 1790862698-5092-10@BJC.BGI.F.EF
CSeq: 91 CANCEL
Server: FPBX-2.11.0(1.8.8.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0


<------------>
  == Spawn extension (macro-dial-one, s, 42) exited non-zero on 'SIP/110-00000006' in macro 'dial-one'
  == Spawn extension (macro-exten-vm, s, 7) exited non-zero on 'SIP/110-00000006' in macro 'exten-vm'
  == Spawn extension (from-internal, 101, 2) exited non-zero on 'SIP/110-00000006'
    -- Executing [h@from-internal:1] Hangup("SIP/110-00000006", "") in new stack
  == Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/110-00000006'

<--- SIP read from UDP:192.168.5.45:5092 --->
ACK sip:101@192.168.5.141 SIP/2.0
Via: SIP/2.0/UDP 192.168.5.45:5092;branch=z9hG4bK1628806412;rport
Route: <sip:192.168.5.141:5060;lr>
From: "110" <sip:110@192.168.5.141>;tag=1281362153
To: <sip:101@192.168.5.141>;tag=as2f79c000
Call-ID: 1790862698-5092-10@BJC.BGI.F.EF
CSeq: 91 ACK
Content-Length: 0

<------------->
--- (8 headers 0 lines) ---
Really destroying SIP dialog '1790862698-5092-10@BJC.BGI.F.EF' Method: ACK

sartus
Сообщения: 98
Зарегистрирован: 04 июл 2013, 16:13

Re: Проблемы с Caller ID

Сообщение sartus »

конвертнул базу в utf-8 легче не стало(((
4 день уже мучаюсь, голова опухла((
sartus
Сообщения: 98
Зарегистрирован: 04 июл 2013, 16:13

Re: Проблемы с Caller ID

Сообщение sartus »

Господа телефонисты есть идеи?
sartus
Сообщения: 98
Зарегистрирован: 04 июл 2013, 16:13

Re: Проблемы с Caller ID

Сообщение sartus »

Проблема решена! У китайских производителей плохо с английским языком. В настройках перепутаны значения yes и no в параметре скрытия номера. Тему можно закрывать! Всем спасибо!
Ответить
© 2008 — 2025 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH