El día 19 de agosto de 2008 0:40, Raúl Alexis Betancor Santana rabs@dimension-virtual.com escribió:
Tu traza sip es incompleta, solo hay 2 paquetes, el del GXV3000 mandando el INVITE y la respuesta del Kamailio al GXV3000 pidiéndole la autenticación del INVITE .. hasta ahí no hay nada raro.
ya, posteo la traza completa de openser y asterisk , pero aun así todavía no tengo claro despues del invite le envió el uri al ip del asterisk este me devuelve el 407 o un 404 donde tengo autenticado un usuario openser en asterisk por medio de port,invite , en mi codigo le digo que si es un INVITE le digo que se vaya por la ruta 3 , la que postee en el anterior mensaje ..
if (method=="ACK") { route(1); exit; } if (method=="INVITE") { route(3); exit; } else if (method=="REGISTER") { route(2); exit; };
gracias por la ayuda ..
rickygm
U +0.001577 192.168.10.28:5060 -> 192.168.10.1:5060 ACK sip:2685249@192.168.10.1 SIP/2.0 Via: SIP/2.0/UDP 192.168.10.28:5060;branch=z9hG4bKfac676462dc27a15 From: sip:119@192.168.10.1;tag=4d05943081e20fe5 To: sip:2685249@192.168.10.1;tag=d7e793d797690be5ce5420203095040f.bfd9 Contact: sip:119@192.168.10.28:5060 Call-ID: d9b1c0f3c0f41c45@192.168.10.28 CSeq: 24261 ACK User-Agent: Grandstream GXV3000 1.1.3.14 Max-Forwards: 70 Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK Content-Length: 0
# U +0.001295 192.168.10.28:5060 -> 192.168.10.1:5060 INVITE sip:2685249@192.168.10.1 SIP/2.0 Via: SIP/2.0/UDP 192.168.10.28:5060;branch=z9hG4bK18e769c391352e13 From: sip:119@192.168.10.1;tag=4d05943081e20fe5 To: sip:2685249@192.168.10.1 Contact: sip:119@192.168.10.28:5060 Supported: replaces, timer, path Proxy-Authorization: Digest username="119", realm="192.168.10.1", algorithm=MD5, uri="sip:2685249@192.168.10.1", nonce="48aadffc49f98144325a406e9e40e752c7ffee24", response="fc7c594b0ce792a909e9a4ee7cdf2d5d" Call-ID: d9b1c0f3c0f41c45@192.168.10.28 CSeq: 24262 INVITE User-Agent: Grandstream GXV3000 1.1.3.14 Max-Forwards: 70 Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK Content-Type: application/sdp Content-Length: 545
v=0 o=119 8000 8001 IN IP4 192.168.10.28 s=SIP Call c=IN IP4 192.168.10.28 t=0 0 m=audio 5004 RTP/AVP 0 18 4 3 2 101 a=sendrecv a=rtpmap:0 PCMU/8000 a=rtpmap:18 G729/8000 a=rtpmap:4 G723/8000 a=rtpmap:3 GSM/8000 a=rtpmap:2 G726-32/8000 a=ptime:20 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-11 m=video 5006 RTP/AVP 99 34 a=sendrecv a=rtpmap:99 H264/90000 a=fmtp:99 profile-level-id=428014; packetization-mode=0; sprop-parameter-sets=Z0KADJWgUH5A,aM4BryA= a=rtpmap:34 H263/90000 a=fmtp:34 CIF=2 MaxBR=1280 a=framerate:20
U +0.000572 192.168.10.1:5060 -> 192.168.10.28:5060 SIP/2.0 404 User Not Found Via: SIP/2.0/UDP 192.168.10.28:5060;branch=z9hG4bK18e769c391352e13 From: sip:119@192.168.10.1;tag=4d05943081e20fe5 To: sip:2685249@192.168.10.1;tag=d7e793d797690be5ce5420203095040f.c92a Call-ID: d9b1c0f3c0f41c45@192.168.10.28 CSeq: 24262 INVITE Server: OpenSER (1.3.2-notls (i386/linux)) Content-Length:
##### Traza de Asterisk en puerto 5070 ##############
U +2.006392 192.168.10.1:5070 -> 192.168.10.1:5060 OPTIONS sip:192.168.10.1 SIP/2.0 Via: SIP/2.0/UDP 192.168.10.1:5070;branch=z9hG4bK1a7aea28;rport From: "asterisk" sip:asterisk@192.168.10.1:5070;tag=as1175ed86 To: sip:192.168.10.1 Contact: sip:asterisk@192.168.10.1:5070 Call-ID: 708405127faf7985169df28f1ec1711d@192.168.10.1 CSeq: 102 OPTIONS User-Agent: Asterisk PBX Max-Forwards: 70 Date: Tue, 19 Aug 2008 15:05:02 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Supported: replaces Content-Length: 0
# U +0.000196 192.168.10.1:5060 -> 192.168.10.1:5070 SIP/2.0 404 User Not Found Via: SIP/2.0/UDP 192.168.10.1:5070;branch=z9hG4bK1a7aea28;rport=5070 From: "asterisk" sip:asterisk@192.168.10.1:5070;tag=as1175ed86 To: sip:192.168.10.1;tag=d7e793d797690be5ce5420203095040f.6449 Call-ID: 708405127faf7985169df28f1ec1711d@192.168.10.1 CSeq: 102 OPTIONS Server: OpenSER (1.3.2-notls (i386/linux)) Content-Length: 0
U +0.000073 192.168.10.1:5060 -> 192.168.10.1:5060 SIP/2.0 404 User Not Found Via: SIP/2.0/UDP 192.168.10.1;branch=z9hG4bK10af.3202c572.0 Via: SIP/2.0/UDP 192.168.10.1;branch=z9hG4bK10af.2202c572.0 Via: SIP/2.0/UDP 192.168.10.1;branch=z9hG4bK10af.1202c572.0 Via: SIP/2.0/UDP 192.168.10.1;branch=z9hG4bK10af.0202c572.0 Via: SIP/2.0/UDP 192.168.10.1;branch=z9hG4bK10af.f102c572.0 Via: SIP/2.0/UDP 192.168.10.1;branch=z9hG4bK10af.e102c572.0 Via: SIP/2.0/UDP 192.168.10.1;branch=z9hG4bK10af.d102c572.0 Via: SIP/2.0/UDP 192.168.10.1;branch=z9hG4bK10af.c102c572.0 Via: SIP/2.0/UDP 192.168.10.1;branch=z9hG4bK10af.b102c572.0 Via: SIP/2.0/UDP 192.168.10.1:5070;branch=z9hG4bK1a7aea28;rport=5070 From: "asterisk" sip:asterisk@192.168.10.1:5070;tag=as1175ed86 To: sip:192.168.10.1;tag=d7e793d797690be5ce5420203095040f.2bab Call-ID: 708405127faf7985169df28f1ec1711d@192.168.10.1 CSeq: 102 OPTIONS Server: OpenSER (1.3.2-notls (i386/linux)) Content-Length: 0