gracias Rafael por la ayuda, aunque no es ahí mi problema por que el asterisk esta mapeando bien el 5070 y el openser el 5060 , si te fijas en la traza del sip , hice el cambio y veo que llega al ip 192.168.10.100 , cree la interfaz virtual por si la moscas pero falla , lo vuelvo a su estado normal ..
thank
El día 20 de agosto de 2008 11:49, Raúl Alexis Betancor Santana rabs@dimension-virtual.com escribió:
Ya te lo dije, cambia la expresión regular, la tienes mal, siempre está pasando de ese if al else.
aquí me perdí, exactamente a cual te refieres ?
Lo que necesitas es leer un buen tutorial sobre expresiones regulares, si lo que quieres es que machee un número de 7 cifras que empiece por 2 o 9 la expresión es "[29][0-9]{6}"
ok creo que voy entendiendo me he encontrado uno, haciendo los últimos cambios veo que la llamada la pasa al asterisk y asterisk la lanza a la pstn , pero se cae ya que en el tel ahora me da un error 500 por lo menos en los grandstream y en la traza del sip , ademas de siempre ver el 407 Proxy Authenticated Requerid
saludoss
rickygm
Verbosity is at least 21 -- Executing [2686891@netsoluciones:1] Dial("SIP/192.168.10.1-b7e015b0", "Zap/g0/2686891|68|tT") in new stack -- Called g0/2686891 -- Zap/4-1 answered SIP/192.168.10.1-b7e015b0 [Aug 20 17:56:05] WARNING[3552]: chan_sip.c:1949 retrans_pkt: Maximum retries exceeded on transmission 9fe4c343e9d68112@192.168.10.28 for seqno 22086 (Critical Response) [Aug 20 17:56:05] WARNING[3552]: chan_sip.c:1973 retrans_pkt: Hanging up call 9fe4c343e9d68112@192.168.10.28 - no reply to our critical packet. -- Hungup 'Zap/4-1' == Spawn extension (netsoluciones, 2686891, 1) exited non-zero on 'SIP/192.168.10.1-b7e015b0'
##### Nueva Traza SIP #####
U +0.000072 192.168.10.1:5060 -> 192.168.10.1:5070 INVITE sip:2665060@192.168.10.1:5070 SIP/2.0 Record-Route: sip:192.168.10.1;lr=on;ftag=98e3b5315d21ccb2 Via: SIP/2.0/UDP 192.168.10.1;branch=z9hG4bKfe3f.22822004.0 Via: SIP/2.0/UDP 192.168.10.28:5060;branch=z9hG4bK44260ea683f48ef2 From: sip:119@192.168.10.1;tag=98e3b5315d21ccb2 To: sip:2665060@192.168.10.1 Contact: sip:119@192.168.10.28:5060 Supported: replaces, timer, path Call-ID: 569023b63715f566@192.168.10.28 CSeq: 19358 INVITE User-Agent: Grandstream GXV3000 1.1.3.14 Max-Forwards: 69 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
U +0.000083 192.168.10.1:5060 -> 192.168.10.28:5060 SIP/2.0 500 Server error occurred (19/SL) Via: SIP/2.0/UDP 192.168.10.28:5060;branch=z9hG4bK44260ea683f48ef2 From: sip:119@192.168.10.1;tag=98e3b5315d21ccb2 To: sip:2665060@192.168.10.1;tag=d7e793d797690be5ce5420203095040f.de45 Call-ID: 569023b63715f566@192.168.10.28 CSeq: 19358 INVITE Server: OpenSER (1.3.2-notls (i386/linux)) Content-Length: 0
U +0.000387 192.168.10.1:5070 -> 192.168.10.1:5060 SIP/2.0 100 Trying Via: SIP/2.0/UDP 192.168.10.1;branch=z9hG4bKfe3f.22822004.0;received=192.168.10.1 Via: SIP/2.0/UDP 192.168.10.28:5060;branch=z9hG4bK44260ea683f48ef2 Record-Route: sip:192.168.10.1;lr=on;ftag=98e3b5315d21ccb2 From: sip:119@192.168.10.1;tag=98e3b5315d21ccb2 To: sip:2665060@192.168.10.1 Call-ID: 569023b63715f566@192.168.10.28 CSeq: 19358 INVITE User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Supported: replaces Contact: sip:2665060@192.168.10.1:5070 Content-Length: 0
# U +0.001567 192.168.10.28:5060 -> 192.168.10.1:5060 ACK sip:2665060@192.168.10.1 SIP/2.0 Via: SIP/2.0/UDP 192.168.10.28:5060;branch=z9hG4bK44260ea683f48ef2 From: sip:119@192.168.10.1;tag=98e3b5315d21ccb2 To: sip:2665060@192.168.10.1;tag=d7e793d797690be5ce5420203095040f.de45 Contact: sip:119@192.168.10.28:5060 Proxy-Authorization: Digest username="119", realm="192.168.10.1", algorithm=MD5, uri="sip:2665060@192.168.10.1", nonce="48acb2c1b14247d761556d6ffd4c759b6867460a", response="d521153636dd6059136fcd21eee3a881" Call-ID: 569023b63715f566@192.168.10.28 CSeq: 19358 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.019795 192.168.10.1:5070 -> 192.168.10.1:5060 SIP/2.0 503 Service Unavailable Via: SIP/2.0/UDP 192.168.10.1;branch=z9hG4bKfe3f.22822004.0;received=192.168.10.1 Via: SIP/2.0/UDP 192.168.10.28:5060;branch=z9hG4bK44260ea683f48ef2 From: sip:119@192.168.10.1;tag=98e3b5315d21ccb2 To: sip:2665060@192.168.10.1;tag=as3d98802e Call-ID: 569023b63715f566@192.168.10.28 CSeq: 19358 INVITE User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Supported: replaces Contact: sip:2665060@192.168.10.1:5070 Content-Length: 0
# U +0.000090 192.168.10.1:5060 -> 192.168.10.1:5070 ACK sip:2665060@192.168.10.1:5070 SIP/2.0 Via: SIP/2.0/UDP 192.168.10.1;branch=z9hG4bKfe3f.22822004.0 From: sip:119@192.168.10.1;tag=98e3b5315d21ccb2 Call-ID: 569023b63715f566@192.168.10.28 To: sip:2665060@192.168.10.1;tag=as3d98802e CSeq: 19358 ACK Max-Forwards: 70 User-Agent: OpenSER (1.3.2-notls (i386/linux)) Content-Length: 0