Problema con subscribes

125 views
Skip to first unread message

otilio

unread,
Sep 9, 2010, 2:27:30 PM9/9/10
to asterisk-es
Hola, llevo toda la tarde rompiéndome la cabeza para configurar un
SPA932 para hacer BLF y no hay manera.
En teoria está todo correcto pero asterisk no me registra las
suscripciones.

La configuración del 932:
Server type: asterisk

fnc=blf+sd+cp;sub=1...@192.168.1.60;nme=100

configuración de SIP:

Global Settings:
----------------
UDP SIP Port: 5060
UDP Bindaddress: 0.0.0.0
TCP SIP Port: Disabled
TLS SIP Port: Disabled
Videosupport: No
Textsupport: No
AutoCreate Peer: No
Ignore SDP sess. ver.: No
Match Auth Username: No
Allow unknown access: No
Allow subscriptions: Yes
Allow overlap dialing: Yes
Allow promsic. redir: No
Enable call counters: No
SIP domain support: No
Realm. auth: No
Our auth realm asterisk
Call to non-local dom.: Yes
URI user is phone no: No
Always auth rejects: No
Call limit peers only: Yes
Direct RTP setup: No
User Agent: Asterisk PBX 1.6.0.28
SDP Session Name: Asterisk PBX 1.6.0.28
SDP Owner Name: root
Reg. context: (not set)
Regexten on Qualify: No
Caller ID: asterisk
From: Domain:
Record SIP history: Off
Call Events: Off
T.38 support: No
T.38 EC mode: Unknown
T.38 MaxDtgrm: -1
SIP realtime: Disabled
Qualify Freq : 60000 ms

Network QoS Settings:
---------------------------
IP ToS SIP: CS0
IP ToS RTP audio: CS0
IP ToS RTP video: CS0
IP ToS RTP text: CS0
802.1p CoS SIP: 4
802.1p CoS RTP audio: 5
802.1p CoS RTP video: 6
802.1p CoS RTP text: 5
Jitterbuffer enabled: No
Jitterbuffer forced: No
Jitterbuffer max size: -1
Jitterbuffer resync: -1
Jitterbuffer impl:
Jitterbuffer log: No

Network Settings:
---------------------------
SIP address remapping: Disabled, externip is 0.0.0.0
Externhost: <none>
Externip: 0.0.0.0:0
Externrefresh: 10
Internal IP: 192.168.2.60:5060
Localnet: 192.168.1.0/255.255.255.0
STUN server: 0.0.0.0:0

Global Signalling Settings:
---------------------------
Codecs: 0x40e (gsm|ulaw|alaw|ilbc)
Codec Order: alaw:20,ulaw:20,gsm:20,ilbc:30
Relax DTMF: No
RFC2833 Compensation: No
Compact SIP headers: No
RTP Keepalive: 0 (Disabled)
RTP Timeout: 20
RTP Hold Timeout: 0 (Disabled)
MWI NOTIFY mime type: application/simple-message-summary
DNS SRV lookup: Yes
Pedantic SIP support: No
Reg. min duration 60 secs
Reg. max duration: 3600 secs
Reg. default duration: 120 secs
Outbound reg. timeout: 20 secs
Outbound reg. attempts: 0
Notify ringing state: Yes
Notify hold state: Yes
SIP Transfer mode: open
Max Call Bitrate: 384 kbps
Auto-Framing: No
Outb. proxy: <not set>
Session Timers: Accept
Session Refresher: uas
Session Expires: 1800 secs
Session Min-SE: 90 secs
Timer T1: 500
Timer T1 minimum: 100
Timer B: 32000
No premature media: No

Default Settings:
-----------------
Context: default
Nat: RFC3581
DTMF: rfc2833
Qualify: 0
Use ClientCode: No
Progress inband: Never
Language: es
MOH Interpret: default
MOH Suggest:
Voice Mail Extension: asterisk

el debug tira esto:

[Sep 9 20:13:35] DEBUG[6215]: acl.c:497 ast_ouraddrfor: Found IP
address for this socket
[Sep 9 20:13:35] DEBUG[6215]: chan_sip.c:2859 ast_sip_ouraddrfor:
Setting SIP_TRANSPORT_UDP with address 192.168.1.60:5060
[Sep 9 20:13:35] DEBUG[6215]: chan_sip.c:6398 sip_alloc: Allocating
new SIP dialog for 12a88393...@192.168.1.36 - SUBSCRIBE (No RTP)
[Sep 9 20:13:35] DEBUG[6215]: chan_sip.c:19709 handle_incoming: ****
Received SUBSCRIBE (10) - Command in SIP SUBSCRIBE
[Sep 9 20:13:35] DEBUG[6215]: chan_sip.c:11162 build_route:
build_route: Contact hop: "Conchi" <sip:1...@192.168.1.36:5060>
[Sep 9 20:13:35] DEBUG[6215]: chan_sip.c:2727 __sip_xmit: Trying to
put 'SIP/2.0 401' onto UDP socket destined for 192.168.1.36:5060
[Sep 9 20:13:35] DEBUG[6215]: chan_sip.c:6464 find_call: = No match
Their Call ID: 12a88393...@192.168.1.36 Their Tag
a12c2639ce0c304f Our tag: as0a999b6b
[Sep 9 20:13:35] DEBUG[6215]: chan_sip.c:6464 find_call: = No match
Their Call ID: 2a137f09...@192.168.1.34 Their Tag
a0fdf42fd800b9b0o0 Our tag: as7d3b877d
[Sep 9 20:13:35] DEBUG[6215]: chan_sip.c:6464 find_call: = No match
Their Call ID: 7e01c6ee...@192.168.1.41 Their Tag
343c4dc4788da523o0 Our tag: as0280747d
[Sep 9 20:13:35] DEBUG[6215]: chan_sip.c:6464 find_call: = No match
Their Call ID: 9c3e07b3...@192.168.1.43 Their Tag
4c059984a18ecc5fo0 Our tag: as24d658f1
[Sep 9 20:13:35] DEBUG[6215]: chan_sip.c:6464 find_call: = No match
Their Call ID: 04ffe017738fe3b9...@192.168.2.60 Their Tag
55945f39a9b6124c308bef45a8f6126d.15cb Our tag: as7540bfca

También pego las trazas sip por si alguien ve algo raro:

#
U +0.000050 192.168.1.60:5060 -> 192.168.1.36:5060
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.168.1.36:5060;branch=z9hG4bK-
d959965c;received=192.168.1.36
From: "Conchi" <sip:1...@192.168.1.60>;tag=f7d9ce5cbb706e87
To: <sip:1...@192.168.1.60>;tag=as018d0d71
Call-ID: f262f4c-...@192.168.1.36
CSeq: 1002 SUBSCRIBE
User-Agent: Asterisk PBX 1.6.0.28
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO
Supported: replaces, timer
Content-Length: 0

#
U +0.023514 192.168.1.36:5060 -> 192.168.1.60:5060
SUBSCRIBE sip:1...@192.168.1.60 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.36:5060;branch=z9hG4bK-73837c1d
From: "Conchi" <sip:1...@192.168.1.60>;tag=e5ce6709633a65bf
To: <sip:1...@192.168.1.60>
Call-ID: 56cb6643...@192.168.1.36
CSeq: 1001 SUBSCRIBE
Max-Forwards: 70
Contact: "Conchi" <sip:1...@192.168.1.36:5060>
Accept: application/dialog-info+xml
Expires: 1800
Event: dialog
User-Agent: Linksys/SPA962-5.2.8(SC)
Content-Length: 0

#
U +0.000052 192.168.1.60:5060 -> 192.168.1.36:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
192.168.1.36:5060;branch=z9hG4bK-73837c1d;received=192.168.1.36
From: "Conchi" <sip:1...@192.168.1.60>;tag=e5ce6709633a65bf
To: <sip:1...@192.168.1.60>;tag=as3de2a16a
Call-ID: 56cb6643...@192.168.1.36
CSeq: 1001 SUBSCRIBE
User-Agent: Asterisk PBX 1.6.0.28
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk",
nonce="00ccdbeb"
Content-Length: 0

#
U +0.016721 192.168.1.36:5060 -> 192.168.1.60:5060
SUBSCRIBE sip:1...@192.168.1.60 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.36:5060;branch=z9hG4bK-cde43e1d
From: "Conchi" <sip:1...@192.168.1.60>;tag=e5ce6709633a65bf
To: <sip:1...@192.168.1.60>
Call-ID: 56cb6643...@192.168.1.36
CSeq: 1002 SUBSCRIBE
Max-Forwards: 70
Authorization: Digest
username="104",realm="asterisk",nonce="00ccdbeb",uri="sip:
1...@192.168.1.60",algorithm=MD5,response="3259e529f72ec44862d46369143cf318"
Contact: "Conchi" <sip:1...@192.168.1.36:5060>
Accept: application/dialog-info+xml
Expires: 1800
Event: dialog
User-Agent: Linksys/SPA962-5.2.8(SC)
Content-Length: 0

#
U +0.000048 192.168.1.60:5060 -> 192.168.1.36:5060
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.168.1.36:5060;branch=z9hG4bK-
cde43e1d;received=192.168.1.36
From: "Conchi" <sip:1...@192.168.1.60>;tag=e5ce6709633a65bf
To: <sip:1...@192.168.1.60>;tag=as3de2a16a
Call-ID: 56cb6643...@192.168.1.36
CSeq: 1002 SUBSCRIBE
User-Agent: Asterisk PBX 1.6.0.28
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO
Supported: replaces, timer
Content-Length: 0

#
U +0.012731 192.168.1.36:5060 -> 192.168.1.60:5060
SUBSCRIBE sip:1...@192.168.1.60 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.36:5060;branch=z9hG4bK-185e7b3b
From: "Conchi" <sip:1...@192.168.1.60>;tag=8d66a7b16f1add37
To: <sip:1...@192.168.1.60>
Call-ID: b318e6e4...@192.168.1.36
CSeq: 1001 SUBSCRIBE
Max-Forwards: 70
Contact: "Conchi" <sip:1...@192.168.1.36:5060>
Accept: application/dialog-info+xml
Expires: 1800
Event: dialog
User-Agent: Linksys/SPA962-5.2.8(SC)
Content-Length: 0

#
U +0.000050 192.168.1.60:5060 -> 192.168.1.36:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
192.168.1.36:5060;branch=z9hG4bK-185e7b3b;received=192.168.1.36
From: "Conchi" <sip:1...@192.168.1.60>;tag=8d66a7b16f1add37
To: <sip:1...@192.168.1.60>;tag=as1717556f
Call-ID: b318e6e4...@192.168.1.36
CSeq: 1001 SUBSCRIBE
User-Agent: Asterisk PBX 1.6.0.28
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk",
nonce="3cd7311d"
Content-Length: 0

#
U +0.010484 192.168.1.36:5060 -> 192.168.1.60:5060
SUBSCRIBE sip:1...@192.168.1.60 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.36:5060;branch=z9hG4bK-cf9650c7
From: "Conchi" <sip:1...@192.168.1.60>;tag=8d66a7b16f1add37
To: <sip:1...@192.168.1.60>
Call-ID: b318e6e4...@192.168.1.36
CSeq: 1002 SUBSCRIBE
Max-Forwards: 70
Authorization: Digest
username="104",realm="asterisk",nonce="3cd7311d",uri="sip:
1...@192.168.1.60",algorithm=MD5,response="c49f38a167dd5ed597dcc4b8e9f444eb"
Contact: "Conchi" <sip:1...@192.168.1.36:5060>
Accept: application/dialog-info+xml
Expires: 1800
Event: dialog
User-Agent: Linksys/SPA962-5.2.8(SC)
Content-Length: 0

#
U +0.000068 192.168.1.60:5060 -> 192.168.1.36:5060
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.168.1.36:5060;branch=z9hG4bK-
cf9650c7;received=192.168.1.36
From: "Conchi" <sip:1...@192.168.1.60>;tag=8d66a7b16f1add37
To: <sip:1...@192.168.1.60>;tag=as1717556f
Call-ID: b318e6e4...@192.168.1.36
CSeq: 1002 SUBSCRIBE
User-Agent: Asterisk PBX 1.6.0.28
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO
Supported: replaces, timer
Content-Length: 0

#
U +0.019801 192.168.1.36:5060 -> 192.168.1.60:5060
SUBSCRIBE sip:1...@192.168.1.60 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.36:5060;branch=z9hG4bK-53d01820
From: "Conchi" <sip:1...@192.168.1.60>;tag=31c5d119775382ef
To: <sip:1...@192.168.1.60>
Call-ID: dd8de132...@192.168.1.36
CSeq: 1001 SUBSCRIBE
Max-Forwards: 70
Contact: "Conchi" <sip:1...@192.168.1.36:5060>
Accept: application/dialog-info+xml
Expires: 1800
Event: dialog
User-Agent: Linksys/SPA962-5.2.8(SC)
Content-Length: 0

#
U +0.000055 192.168.1.60:5060 -> 192.168.1.36:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
192.168.1.36:5060;branch=z9hG4bK-53d01820;received=192.168.1.36
From: "Conchi" <sip:1...@192.168.1.60>;tag=31c5d119775382ef
To: <sip:1...@192.168.1.60>;tag=as61bb56d3
Call-ID: dd8de132...@192.168.1.36
CSeq: 1001 SUBSCRIBE
User-Agent: Asterisk PBX 1.6.0.28
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk",
nonce="56ffa18d"
Content-Length: 0

#
U +0.016469 192.168.1.36:5060 -> 192.168.1.60:5060
SUBSCRIBE sip:1...@192.168.1.60 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.36:5060;branch=z9hG4bK-26b47bd0
From: "Conchi" <sip:1...@192.168.1.60>;tag=31c5d119775382ef
To: <sip:1...@192.168.1.60>
Call-ID: dd8de132...@192.168.1.36
CSeq: 1002 SUBSCRIBE
Max-Forwards: 70
Authorization: Digest
username="104",realm="asterisk",nonce="56ffa18d",uri="sip:
1...@192.168.1.60",algorithm=MD5,response="2085d8232105444fd7f56615cbcaae64"
Contact: "Conchi" <sip:1...@192.168.1.36:5060>
Accept: application/dialog-info+xml
Expires: 1800
Event: dialog
User-Agent: Linksys/SPA962-5.2.8(SC)
Content-Length: 0

#
U +0.000046 192.168.1.60:5060 -> 192.168.1.36:5060
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP
192.168.1.36:5060;branch=z9hG4bK-26b47bd0;received=192.168.1.36
From: "Conchi" <sip:1...@192.168.1.60>;tag=31c5d119775382ef
To: <sip:1...@192.168.1.60>;tag=as61bb56d3
Call-ID: dd8de132...@192.168.1.36
CSeq: 1002 SUBSCRIBE
User-Agent: Asterisk PBX 1.6.0.28
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO
Supported: replaces, timer
Content-Length: 0

#
U +0.243369 192.168.1.36:5060 -> 192.168.1.60:5060
SUBSCRIBE sip:1...@192.168.1.60 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.36:5060;branch=z9hG4bK-3a8185d1
From: "Conchi" <sip:1...@192.168.1.60>;tag=3f13ad418bcf14e7
To: <sip:1...@192.168.1.60>
Call-ID: a5cf765f...@192.168.1.36
CSeq: 1001 SUBSCRIBE
Max-Forwards: 70
Contact: "Conchi" <sip:1...@192.168.1.36:5060>
Accept: application/dialog-info+xml
Expires: 1800
Event: dialog
User-Agent: Linksys/SPA962-5.2.8(SC)
Content-Length: 0

#
U +0.000056 192.168.1.60:5060 -> 192.168.1.36:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
192.168.1.36:5060;branch=z9hG4bK-3a8185d1;received=192.168.1.36
From: "Conchi" <sip:1...@192.168.1.60>;tag=3f13ad418bcf14e7
To: <sip:1...@192.168.1.60>;tag=as20662984
Call-ID: a5cf765f...@192.168.1.36
CSeq: 1001 SUBSCRIBE
User-Agent: Asterisk PBX 1.6.0.28
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk",
nonce="4a17fbf4"
Content-Length: 0

#
U +0.016468 192.168.1.36:5060 -> 192.168.1.60:5060
SUBSCRIBE sip:1...@192.168.1.60 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.36:5060;branch=z9hG4bK-8428e471
From: "Conchi" <sip:1...@192.168.1.60>;tag=3f13ad418bcf14e7
To: <sip:1...@192.168.1.60>
Call-ID: a5cf765f...@192.168.1.36
CSeq: 1002 SUBSCRIBE
Max-Forwards: 70
Authorization: Digest
username="104",realm="asterisk",nonce="4a17fbf4",uri="sip:
1...@192.168.1.60",algorithm=MD5,response="8a796e79b99907f90576ede54a7b10e2"
Contact: "Conchi" <sip:1...@192.168.1.36:5060>
Accept: application/dialog-info+xml
Expires: 1800
Event: dialog
User-Agent: Linksys/SPA962-5.2.8(SC)
Content-Length: 0

#
U +0.000049 192.168.1.60:5060 -> 192.168.1.36:5060
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP
192.168.1.36:5060;branch=z9hG4bK-8428e471;received=192.168.1.36
From: "Conchi" <sip:1...@192.168.1.60>;tag=3f13ad418bcf14e7
To: <sip:1...@192.168.1.60>;tag=as20662984
Call-ID: a5cf765f...@192.168.1.36
CSeq: 1002 SUBSCRIBE
User-Agent: Asterisk PBX 1.6.0.28
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO
Supported: replaces, timer
Content-Length: 0

#
U +0.013080 192.168.1.36:5060 -> 192.168.1.60:5060
SUBSCRIBE sip:1...@192.168.1.60 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.36:5060;branch=z9hG4bK-166bff7
From: "Conchi" <sip:1...@192.168.1.60>;tag=23ed36294104e11f
To: <sip:1...@192.168.1.60>
Call-ID: 697087d8...@192.168.1.36
CSeq: 1001 SUBSCRIBE
Max-Forwards: 70
Contact: "Conchi" <sip:1...@192.168.1.36:5060>
Accept: application/dialog-info+xml
Expires: 1800
Event: dialog
User-Agent: Linksys/SPA962-5.2.8(SC)
Content-Length: 0

#
U +0.000227 192.168.1.60:5060 -> 192.168.1.36:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
192.168.1.36:5060;branch=z9hG4bK-166bff7;received=192.168.1.36
From: "Conchi" <sip:1...@192.168.1.60>;tag=23ed36294104e11f
To: <sip:1...@192.168.1.60>;tag=as51afe839
Call-ID: 697087d8...@192.168.1.36
CSeq: 1001 SUBSCRIBE
User-Agent: Asterisk PBX 1.6.0.28
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk",
nonce="6fceb46b"
Content-Length: 0

Gracias por anticipado por la paciencia.
Salud!


Iñaki Baz Castillo

unread,
Sep 9, 2010, 2:58:10 PM9/9/10
to aster...@googlegroups.com
2010/9/9 otilio <tr...@esdebian.org>:


Te está diciendo que no encuentra el hint para las extensiones (105,
106, 107 y 108) en el contexto al que pertenezca el usuario 104.

¿A qué contexto pertenece el usuario 104? ¿Tienes definido el
parámetro "subscribecontext=XXXXX" para el usuario 104?
¿En ese contexto hay extensiones tipo "exten => 105,hint,SIP/105"?

--
Iñaki Baz Castillo
<i...@aliax.net>

Danny Dias

unread,
Sep 9, 2010, 6:03:43 PM9/9/10
to aster...@googlegroups.com
Como dice Iñaki,

No lo encuentra, 

Te está diciendo que el dispositivo cuya IP es 
192.168.1.36:5060 intenta enviar un SUBSCRIBE a  192.168.1.60:5060, miralo:

#
U +0.023514 192.168.1.36:5060 -> 192.168.1.60:5060
SUBSCRIBE sip:1...@192.168.1.60 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.36:5060;branch=z9hG4bK-73837c1d
From: "Conchi" <sip:1...@192.168.1.60>;tag=e5ce6709633a65bf
To: <sip:1...@192.168.1.60>
Call-ID: 56cb6643...@192.168.1.36
CSeq: 1001 SUBSCRIBE
Max-Forwards: 70
Contact: "Conchi" <sip:1...@192.168.1.36:5060>
Accept: application/dialog-info+xml
Expires: 1800
Event: dialog
User-Agent: Linksys/SPA962-5.2.8(SC)
Content-Length: 0

Y luego el 192.168.1.60:5060 responde al 192.168.1.36:5060 con un 404, que en el RFC en la sección 21.4.5 se define así:

404 Not Found

The server has definitive information that the user does not exist at the domain specified in the Request-URI. This status is also returned if the domain in the Request-URI does not match any of the domains handled by the recipient of the request.

#
U +0.000050 192.168.1.60:5060 -> 192.168.1.36:5060
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.168.1.36:5060;branch=z9hG4bK-
d959965c;received=192.168.1.36
From: "Conchi" <sip:1...@192.168.1.60>;tag=f7d9ce5cbb706e87
To: <sip:1...@192.168.1.60>;tag=as018d0d71
Call-ID: f262f4c-...@192.168.1.36
CSeq: 1002 SUBSCRIBE
User-Agent: Asterisk PBX 1.6.0.28
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO
Supported: replaces, timer
Content-Length: 0

Te puedo asegurar que funciona, sigue las instrucciones de Iñaki y no tendrás fallo

Salutes

----
Danny Dias



2010/9/9 otilio <tr...@esdebian.org>
--
Este email pertenece a la lista de Asterisk-ES (http://www.asterisk-es.org)

Entra ahora en el canal de irc de Asterisk-ES para charlar en directo sobre VoIP y
Asterisk: http://www.asterisk-es.org/

~~~~~ Normas de la lista Asterisk-ES: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://comunidad.asterisk-es.org/index.php?title=Lista:normas-asterisk-es
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Para anular la suscripción: asterisk-es...@googlegroups.com



--
Salu2

otilio

unread,
Sep 10, 2010, 11:50:57 AM9/10/10
to asterisk-es
Vale, aunque por ahí se dice que la version 1.6 ya permite hacer
hint,SIP/${EXTEN} parece que no, que hay que ir uno por uno ...
Bueno, en un par de horas haré la comprobación a ver si es eso y os
cuento.

Gracias a los dos.


On 10 sep, 00:03, Danny Dias <ing.diasda...@gmail.com> wrote:
> Como dice Iñaki,
>
> No lo encuentra,
>
> Te está diciendo que el dispositivo cuya IP es 192.168.1.36:5060 intenta
> enviar un SUBSCRIBE a  192.168.1.60:5060, miralo:
>
> #
> U +0.023514 *192.168.1.36:5060* <http://192.168.1.36:5060/>* -> **
> 192.168.1.60:5060* <http://192.168.1.60:5060/>
> *SUBSCRIBE* sip:1...@192.168.1.60 <sip%3A...@192.168.1.60> SIP/2.0
> Via: SIP/2.0/UDP 192.168.1.36:5060;branch=z9hG4bK-73837c1d
> From: "Conchi" <sip:1...@192.168.1.60 <sip%3A...@192.168.1.60>>;tag=e5ce6709633a65bf
>
> To: <sip:1...@192.168.1.60 <sip%3A...@192.168.1.60>>
> Call-ID: 56cb6643-7acb...@192.168.1.36
> CSeq: 1001 SUBSCRIBE
> Max-Forwards: 70
> Contact: "Conchi" <sip:1...@192.168.1.36:5060>
> Accept: application/dialog-info+xml
> Expires: 1800
> Event: dialog
> User-Agent: Linksys/SPA962-5.2.8(SC)
> Content-Length: 0
>
> Y luego el 192.168.1.60:5060 responde al 192.168.1.36:5060 con un 404, que
> en el RFC en la sección 21.4.5 se define así:
>
> 404 Not Found
>
> The server has definitive information that the user *does not exist* at the
> domain specified in the Request-URI. This status is also returned if the
> domain in the Request-URI does not match any of the domains handled by the
> recipient of the request.
> #
> U +0.000050 192.168.1.60:5060 -> 192.168.1.36:5060
> *SIP/2.0 404 Not Found
> *Via: SIP/2.0/UDP 192.168.1.36:5060;branch=z9hG4bK-
> d959965c;received=192.168.1.36
> From: "Conchi" <sip:1...@192.168.1.60 <sip%3A...@192.168.1.60>>;tag=f7d9ce5cbb706e87
>
> To: <sip:1...@192.168.1.60 <sip%3A...@192.168.1.60>>;tag=as018d0d71
> Call-ID: f262f4c-7670d...@192.168.1.36
> *CSeq: 1002 SUBSCRIBE
> *User-Agent: Asterisk PBX 1.6.0.28
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
> INFO
> Supported: replaces, timer
> Content-Length: 0
>
> Te puedo asegurar que funciona, sigue las instrucciones de Iñaki y no
> tendrás fallo
>
> Salutes
>
> ----
> Danny Dias
>
> 2010/9/9 otilio <tr...@esdebian.org>
>
>
>
> > Hola, llevo toda la tarde rompiéndome la cabeza para configurar un
> > SPA932 para hacer BLF y no hay manera.
> > En teoria está todo correcto pero asterisk no me registra las
> > suscripciones.
>
> > La configuración del 932:
> > Server type: asterisk
>
> > fnc=blf+sd+cp;sub=...@192.168.1.60;nme=100
> > new SIP dialog for 12a88393-4b4a3...@192.168.1.36 - SUBSCRIBE (No RTP)
> > [Sep  9 20:13:35] DEBUG[6215]: chan_sip.c:19709 handle_incoming: ****
> > Received SUBSCRIBE (10) - Command in SIP SUBSCRIBE
> > [Sep  9 20:13:35] DEBUG[6215]: chan_sip.c:11162 build_route:
> > build_route: Contact hop: "Conchi" <sip:1...@192.168.1.36:5060>
> > [Sep  9 20:13:35] DEBUG[6215]: chan_sip.c:2727 __sip_xmit: Trying to
> > put 'SIP/2.0 401' onto UDP socket destined for 192.168.1.36:5060
> > [Sep  9 20:13:35] DEBUG[6215]: chan_sip.c:6464 find_call: = No match
> > Their Call ID: 12a88393-4b4a3...@192.168.1.36 Their Tag
> > a12c2639ce0c304f Our tag: as0a999b6b
> > [Sep  9 20:13:35] DEBUG[6215]: chan_sip.c:6464 find_call: = No match
> > Their Call ID: 2a137f09-f9f81...@192.168.1.34 Their Tag
> > a0fdf42fd800b9b0o0 Our tag: as7d3b877d
> > [Sep  9 20:13:35] DEBUG[6215]: chan_sip.c:6464 find_call: = No match
> > Their Call ID: 7e01c6ee-66856...@192.168.1.41 Their Tag
> > 343c4dc4788da523o0 Our tag: as0280747d
> > [Sep  9 20:13:35] DEBUG[6215]: chan_sip.c:6464 find_call: = No match
> > Their Call ID: 9c3e07b3-b6821...@192.168.1.43 Their Tag
> > 4c059984a18ecc5fo0 Our tag: as24d658f1
> > [Sep  9 20:13:35] DEBUG[6215]: chan_sip.c:6464 find_call: = No match
> > Their Call ID: 04ffe017738fe3b901b182212b513...@192.168.2.60 Their Tag
> > 55945f39a9b6124c308bef45a8f6126d.15cb Our tag: as7540bfca
>
> > También pego las trazas sip por si alguien ve algo raro:
>
> > #
> > U +0.000050 192.168.1.60:5060 -> 192.168.1.36:5060
> > SIP/2.0 404 Not Found
> > Via: SIP/2.0/UDP 192.168.1.36:5060;branch=z9hG4bK-
> > d959965c;received=192.168.1.36
> > From: "Conchi" <sip:1...@192.168.1.60 <sip%3A...@192.168.1.60>
> > >;tag=f7d9ce5cbb706e87
> > To: <sip:1...@192.168.1.60 <sip%3A...@192.168.1.60>>;tag=as018d0d71
> > Call-ID: f262f4c-7670d...@192.168.1.36
> > CSeq: 1002 SUBSCRIBE
> > User-Agent: Asterisk PBX 1.6.0.28
> > Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
> > INFO
> > Supported: replaces, timer
> > Content-Length: 0
>
> > #
> > U +0.023514 192.168.1.36:5060 -> 192.168.1.60:5060
> > SUBSCRIBE sip:1...@192.168.1.60 <sip%3A...@192.168.1.60> SIP/2.0
> > Via: SIP/2.0/UDP 192.168.1.36:5060;branch=z9hG4bK-73837c1d
> > From: "Conchi" <sip:1...@192.168.1.60 <sip%3A...@192.168.1.60>
> > >;tag=e5ce6709633a65bf
> > To: <sip:1...@192.168.1.60 <sip%3A...@192.168.1.60>>
> > Call-ID: 56cb6643-7acb...@192.168.1.36
> > CSeq: 1001 SUBSCRIBE
> > Max-Forwards: 70
> > Contact: "Conchi" <sip:1...@192.168.1.36:5060>
> > Accept: application/dialog-info+xml
> > Expires: 1800
> > Event: dialog
> > User-Agent: Linksys/SPA962-5.2.8(SC)
> > Content-Length: 0
>
> > #
> > U +0.000052 192.168.1.60:5060 -> 192.168.1.36:5060
> > SIP/2.0 401 Unauthorized
> > Via: SIP/2.0/UDP
> > 192.168.1.36:5060;branch=z9hG4bK-73837c1d;received=192.168.1.36
> > From: "Conchi" <sip:1...@192.168.1.60 <sip%3A...@192.168.1.60>
> > >;tag=e5ce6709633a65bf
> > To: <sip:1...@192.168.1.60 <sip%3A...@192.168.1.60>>;tag=as3de2a16a
> > Call-ID: 56cb6643-7acb...@192.168.1.36
> > CSeq: 1001 SUBSCRIBE
> > User-Agent: Asterisk PBX 1.6.0.28
> > Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
> > INFO
> > Supported: replaces, timer
> > WWW-Authenticate: Digest algorithm=MD5, realm="asterisk",
> > nonce="00ccdbeb"
> > Content-Length: 0
>
> > #
> > U +0.016721 192.168.1.36:5060 -> 192.168.1.60:5060
> > SUBSCRIBE sip:1...@192.168.1.60 <sip%3A...@192.168.1.60> SIP/2.0
> > Via: SIP/2.0/UDP 192.168.1.36:5060;branch=z9hG4bK-cde43e1d
> > From: "Conchi" <sip:1...@192.168.1.60 <sip%3A...@192.168.1.60>
> > >;tag=e5ce6709633a65bf
> > To: <sip:1...@192.168.1.60 <sip%3A...@192.168.1.60>>
> > Call-ID: 56cb6643-7acb...@192.168.1.36
> > CSeq: 1002 SUBSCRIBE
> > Max-Forwards: 70
> > Authorization: Digest
> > username="104",realm="asterisk",nonce="00ccdbeb",uri="sip:
> > 1...@192.168.1.60
> > ",algorithm=MD5,response="3259e529f72ec44862d46369143cf318"
> > Contact: "Conchi" <sip:1...@192.168.1.36:5060>
> > Accept: application/dialog-info+xml
> > Expires: 1800
> > Event: dialog
> > User-Agent: Linksys/SPA962-5.2.8(SC)
> > Content-Length: 0
>
> > #
> > U +0.000048 192.168.1.60:5060 -> 192.168.1.36:5060...
>
> leer más »

otilio

unread,
Sep 10, 2010, 12:32:50 PM9/10/10
to asterisk-es
Pues sí, ese era el tema, no tenía debidamente declarados los hints.

Si es que a veces con sólo pensar un poco ... debería haberme dado
cuenta que en este caso no es posible cambiar las extensiones por
variables.

Saludos y gracias de nuevo.
> > > User-Agent:...
>
> leer más »

Danny Dias

unread,
Sep 10, 2010, 1:55:12 PM9/10/10
to aster...@googlegroups.com
COOL :)

2010/9/10 otilio <tr...@esdebian.org>
>
> leer más »

--
Este email pertenece a la lista de Asterisk-ES (http://www.asterisk-es.org)

Entra ahora en el canal de irc de Asterisk-ES para charlar en directo sobre VoIP y
Asterisk: http://www.asterisk-es.org/

~~~~~ Normas de la lista Asterisk-ES: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://comunidad.asterisk-es.org/index.php?title=Lista:normas-asterisk-es
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Para anular la suscripción: asterisk-es...@googlegroups.com



--
Salu2

Reply all
Reply to author
Forward
0 new messages