Вход | Регистрация
Вы здесь: Главная / Форум / Главный форум по Asterisk / Общего характера / Сново входящие

Сново входящие

Помогите плиззззз
Откуда: Харьков
Сообщений: 41

Re: Сново входящие

Поробовал
-- Executing [80577664000@data1:9] NoOp("SIP/80577664024-b584a0a0", "") in new stack

но у CALLERID нет такого параметра
админ, asterisk, freebsd, linux, w2k3, w2k8
2008-10-02 18:11

Сообщений: 1573

Re: Сново входящие

CLI>
-= Info about function 'CALLERID' =-

[Syntax]
CALLERID(datatype[,<optional-CID>])

[Synopsis]
Gets or sets Caller*ID data on the channel.

[Description]
Gets or sets Caller*ID data on the channel. The allowable datatypes
are "all", "name", "num", "ANI", "DNID", "RDNIS".
Uses channel callerid by default or optional callerid, if specified.
2008-10-02 18:14

Откуда: Харьков
Сообщений: 41

Re: Сново входящие

Извините, я смотрел по документыции
админ, asterisk, freebsd, linux, w2k3, w2k8
2008-10-02 18:26

Сообщений: 1573

Re: Сново входящие

Тогда попробуйте так:

exten => s,1,Set(NUM=${SIP_HEADER(TO):5})
exten => s,n,Set(NUM=${CUT(NUM,@,1)})
exten => s,n,NoOp(${NUM}) - здесь должен появиться нужный номер ...

exten => s,n,GoTo(${NUM},1)
exten => _X.,1,Dial ...
2008-10-02 18:31

Откуда: Харьков
Сообщений: 41

Re: Сново входящие

Получилось
-- Executing [80577664000@data1:1] Wait("SIP/80577664024-b5835190", "1") in new stack
-- Executing [80577664000@data1:2] Answer("SIP/80577664024-b5835190", "") in new stack
-- Executing [80577664000@data1:3] NoOp("SIP/80577664024-b5835190", ""80577664000" <80577664000>") in new stack
-- Executing [80577664000@data1:4] Set("SIP/80577664024-b5835190", "NUM=80577664011@80.91.169.3;user=phone>") in new stack
-- Executing [80577664000@data1:5] Set("SIP/80577664024-b5835190", "NUM=80577664011") in new stack
-- Executing [80577664000@data1:6] NoOp("SIP/80577664024-b5835190", "80577664011") in new stack

админ, asterisk, freebsd, linux, w2k3, w2k8
2008-10-02 18:43

Откуда: Харьков
Сообщений: 41

Re: Сново входящие

Спасибо большое.
админ, asterisk, freebsd, linux, w2k3, w2k8
2008-10-02 18:58

Откуда: Ровно
Сообщений: 16

Re: Сново входящие

Может кто знает, как с датагрупом без allowguest=yes работать?

type=friend не помогает.
2010-01-13 13:38

Сообщений: 6521

Re: Сново входящие

Сам датагруп и должен знать в первую очередь.
2010-01-13 14:15

Avatara of svoy
Откуда: Киев
Сообщений: 1096

Re: Сново входящие

vabue:

type=friend не помогает.
а может еще раз почитать про настройки транка? входящий контекст для данного соединения правильно прописали?..
2010-01-13 15:32

Откуда: Донецк
Сообщений: 3

Re: Сново входящие

Помогите пожалуйста разобраться с проблемой со входящими:

SIP Debugging enabled

<--- SIP read from UDP:62.64.127.43:5060 --->
hello
<------------->

<--- SIP read from UDP:62.64.127.43:5060 --->
INVITE sip:622102478@192.168.2.25:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 62.64.127.43:5060;branch=z9hG4bK4f7593b54e4d4c493962fa2d3
Call-ID: SBCd5dd492bdacbf7ae4d1e1dc3ec000893@SoftX3000
From: Anonymous <sip:Anonymous@62.64.127.43;user=phone>;tag=973dba9f-CC-22
To: <sip:2102478@192.168.2.25;user=phone>
CSeq: 1 INVITE
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE,MESSAGE,REFER
Max-Forwards: 28
Supported: timer
User-Agent: Huawei SoftX3000 V300R010
Session-Expires: 1800
Min-SE: 90
Contact: <sip:Anonymous@62.64.127.43:5060;user=phone>
Content-Length: 207
Content-Type: application/sdp

v=0
o=HuaweiSoftX3000 24025878 24025878 IN IP4 62.64.127.43
s=Sip Call
c=IN IP4 62.64.127.43
t=0 0
m=audio 30020 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15

<------------->
--- (15 headers 9 lines) ---
Sending to 62.64.127.43 : 5060 (NAT)
Using INVITE request as basis request - SBCd5dd492bdacbf7ae4d1e1dc3ec000893@SoftX3000
Found peer 'goldentelecom-out' for 'Anonymous' from 62.64.127.43:5060

<--- Reliably Transmitting (NAT) to 62.64.127.43:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 62.64.127.43:5060;branch=z9hG4bK4f7593b54e4d4c493962fa2d3;received=62.64.127.43
From: Anonymous <sip:Anonymous@62.64.127.43;user=phone>;tag=973dba9f-CC-22
To: <sip:2102478@192.168.2.25;user=phone>;tag=as6524379d
Call-ID: SBCd5dd492bdacbf7ae4d1e1dc3ec000893@SoftX3000
CSeq: 1 INVITE
Server: Asterisk PBX 1.6.2.9-2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="5b255920"
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog 'SBCd5dd492bdacbf7ae4d1e1dc3ec000893@SoftX3000' in 32000 ms (Method: INVITE)

<--- SIP read from UDP:62.64.127.43:5060 --->
ACK sip:622102478@192.168.2.25:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 62.64.127.43:5060;branch=z9hG4bK4f7593b54e4d4c493962fa2d3
Call-ID: SBCd5dd492bdacbf7ae4d1e1dc3ec000893@SoftX3000
From: Anonymous <sip:Anonymous@62.64.127.43;user=phone>;tag=973dba9f-CC-22
To: <sip:2102478@192.168.2.25;user=phone>;tag=as6524379d
CSeq: 1 ACK
Max-Forwards: 70
Content-Length: 0


<------------->
--- (8 headers 0 lines) ---

<--- SIP read from UDP:62.64.127.43:5060 --->
INVITE sip:622102478@192.168.2.25:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 62.64.127.43:5060;branch=z9hG4bK8f51da2b25052a801a2768a06
Call-ID: SBCe074c63cec66653fb959b83d096db8b9@SoftX3000
From: Anonymous <sip:Anonymous@62.64.127.43;user=phone>;tag=458915a5-CC-22
To: <sip:2102478@192.168.2.25;user=phone>
CSeq: 1 INVITE
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE,MESSAGE,REFER
Max-Forwards: 28
Supported: timer
User-Agent: Huawei SoftX3000 V300R010
Session-Expires: 1800
Min-SE: 90
Contact: <sip:Anonymous@62.64.127.43:5060;user=phone>
Content-Length: 207
Content-Type: application/sdp

v=0
o=HuaweiSoftX3000 24025898 24025898 IN IP4 62.64.127.43
s=Sip Call
c=IN IP4 62.64.127.43
t=0 0
m=audio 30034 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15

<------------->
--- (15 headers 9 lines) ---
Sending to 62.64.127.43 : 5060 (NAT)
Using INVITE request as basis request - SBCe074c63cec66653fb959b83d096db8b9@SoftX3000
Found peer 'goldentelecom-out' for 'Anonymous' from 62.64.127.43:5060

<--- Reliably Transmitting (NAT) to 62.64.127.43:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 62.64.127.43:5060;branch=z9hG4bK8f51da2b25052a801a2768a06;received=62.64.127.43
From: Anonymous <sip:Anonymous@62.64.127.43;user=phone>;tag=458915a5-CC-22
To: <sip:2102478@192.168.2.25;user=phone>;tag=as4e6c19cc
Call-ID: SBCe074c63cec66653fb959b83d096db8b9@SoftX3000
CSeq: 1 INVITE
Server: Asterisk PBX 1.6.2.9-2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="609d591e"
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog 'SBCe074c63cec66653fb959b83d096db8b9@SoftX3000' in 32000 ms (Method: INVITE)

<--- SIP read from UDP:62.64.127.43:5060 --->
ACK sip:622102478@192.168.2.25:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 62.64.127.43:5060;branch=z9hG4bK8f51da2b25052a801a2768a06
Call-ID: SBCe074c63cec66653fb959b83d096db8b9@SoftX3000
From: Anonymous <sip:Anonymous@62.64.127.43;user=phone>;tag=458915a5-CC-22
To: <sip:2102478@192.168.2.25;user=phone>;tag=as4e6c19cc
CSeq: 1 ACK
Max-Forwards: 70
Content-Length: 0


<------------->
--- (8 headers 0 lines) ---

<--- SIP read from UDP:62.64.127.43:5060 --->
hello
<------------->

<--- SIP read from UDP:62.64.127.43:5060 --->
INVITE sip:622102478@192.168.2.25:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 62.64.127.43:5060;branch=z9hG4bK13800bf6bf6c124902cfb4f4a
Call-ID: SBC005a29769bb792caf3297d85434e044a@SoftX3000
From: Anonymous <sip:Anonymous@62.64.127.43;user=phone>;tag=8511fb66-CC-22
To: <sip:2102478@192.168.2.25;user=phone>
CSeq: 1 INVITE
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,REGISTER,INFO,PRACK,SUBSCRIBE,NOTIFY,UPDATE,MESSAGE,REFER
Max-Forwards: 28
Supported: timer
User-Agent: Huawei SoftX3000 V300R010
Session-Expires: 1800
Min-SE: 90
Contact: <sip:Anonymous@62.64.127.43:5060;user=phone>
Content-Length: 207
Content-Type: application/sdp

v=0
o=HuaweiSoftX3000 24025921 24025921 IN IP4 62.64.127.43
s=Sip Call
c=IN IP4 62.64.127.43
t=0 0
m=audio 30050 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15

<------------->
--- (15 headers 9 lines) ---
Sending to 62.64.127.43 : 5060 (NAT)
Using INVITE request as basis request - SBC005a29769bb792caf3297d85434e044a@SoftX3000
Found peer 'goldentelecom-out' for 'Anonymous' from 62.64.127.43:5060

<--- Reliably Transmitting (NAT) to 62.64.127.43:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 62.64.127.43:5060;branch=z9hG4bK13800bf6bf6c124902cfb4f4a;received=62.64.127.43
From: Anonymous <sip:Anonymous@62.64.127.43;user=phone>;tag=8511fb66-CC-22
To: <sip:2102478@192.168.2.25;user=phone>;tag=as7196bbef
Call-ID: SBC005a29769bb792caf3297d85434e044a@SoftX3000
CSeq: 1 INVITE
Server: Asterisk PBX 1.6.2.9-2
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="4779b734"
Content-Length: 0


<------------>
Scheduling destruction of SIP dialog 'SBC005a29769bb792caf3297d85434e044a@SoftX3000' in 32000 ms (Method: INVITE)

<--- SIP read from UDP:62.64.127.43:5060 --->
ACK sip:622102478@192.168.2.25:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 62.64.127.43:5060;branch=z9hG4bK13800bf6bf6c124902cfb4f4a
Call-ID: SBC005a29769bb792caf3297d85434e044a@SoftX3000
From: Anonymous <sip:Anonymous@62.64.127.43;user=phone>;tag=8511fb66-CC-22
To: <sip:2102478@192.168.2.25;user=phone>;tag=as7196bbef
CSeq: 1 ACK
Max-Forwards: 70
Content-Length: 0


<------------->
--- (8 headers 0 lines) ---
Really destroying SIP dialog '5b2459ba1a4c9db70d324191731c3bc2@89.162.182.90' Method: REGISTER

<--- SIP read from UDP:192.168.2.2:17740 --->

В трубке слышно только сообщение о невозможности дозвона.
2010-10-28 12:25

Добавить страницу в закладки:  Delicious Google Slashdot Yahoo Yandex.ru Reddit Digg Technorati Bobrdobr.ru Newsland.ru Smi2.ru Rumarkz.ru Vaau.ru Memori.ru Rucity.com Moemesto.ru News2.ru Mister-Wong.ru Myscoop.ru 100zakladok.ru