{"id":1141,"date":"2015-08-30T22:39:56","date_gmt":"2015-08-30T21:39:56","guid":{"rendered":"http:\/\/diablo.craem.net\/?p=1141"},"modified":"2015-08-30T22:39:56","modified_gmt":"2015-08-30T21:39:56","slug":"voip-jazztel-ftth-y-asterisk-pjsip","status":"publish","type":"post","link":"https:\/\/diablo.craem.net\/?p=1141","title":{"rendered":"VoIP jazztel ftth y asterisk pjsip"},"content":{"rendered":"<p>En esta ocasi\u00f3n, registraremos nuestro servicio de VoIP de fibra Jazztel en nuestro asterisk.<br \/>\nRequisitos:<br \/>\n1\u00ba) Capturar el proceso de register del router de jazztel contra sus SBC. Para ello, mediante un hub colocado entre el router y la ONT, colocaremos nuestro pc capturando el paquete deseado.<br \/>\nEn las capturas, deber\u00e1s ver un paquete tal que:<br \/>\n<code><br \/>\nVia: SIP\/2.0\/UDP x.x.x.x:5060;branch=asdfgsdfgsdfgsdfgsd<br \/>\nTo: <sip:+349xxxxxxxx@ims.jazztel.net><br \/>\nFrom: <sip:+349xxxxxxxx@ims.jazztel.net>;tag=d2derwerqwer19-f45ffrr<br \/>\nCall-ID: xxxxxxxxxxx-xxxxxxxxx@x.x.x.x<br \/>\nCSeq: 46360 REGISTER<br \/>\nContact: <sip:+349xxxxxxxx@x.x.x.x:5060><br \/>\nAuthorization: Digest username=\"misuperusuario007@ims.jazztel.net\",realm=\"ims.jazztel.net\",nonce=\"elsuperNonce\",uri=\"sip:ims.jazztel.net\",response=\"idRespuestaasfasdfasdfwererer\",algorithm=MD5,cnonce=\"sdferelcenoncd\",qop=auth,nc=00000001<br \/>\nExpires: 3600<br \/>\nMax-Forwards: 70<br \/>\nSupported: 100rel<br \/>\nUser-Agent: ZXHN H218N\/V2.0.0_JAZZT7<br \/>\nContent-Length: 0<\/code><br \/>\n<\/code><br \/>\nEn vez de las &#8216;x&#8217;, saldr\u00e1n tus valores xDDD; no preguntes<br \/>\n<strong>2\u00ba) HTTPBrute, que nos servir\u00e1 para sacar el password con el paquete SIP.<\/strong><br \/>\n<a href=\"https:\/\/diablo.craem.net\/wp-content\/uploads\/2015\/08\/Pantallazo.png\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/diablo.craem.net\/wp-content\/uploads\/2015\/08\/Pantallazo-300x169.png\" alt=\"Pantallazo\" width=\"300\" height=\"169\" class=\"alignnone size-medium wp-image-1152\" \/><\/a><br \/>\nRellena cada casilla con lo que toca&#8230;. es bastante clarito todo. Le das a crack y calculate y te esperas unas horas (en mi caso)<br \/>\n<strong>3\u00ba) Asterisk 12 o 13 con pjSip<\/strong>. Yo en mi caso tengo una 12 con poca ram y cpu.<br \/>\nLa versi\u00f3n 12 o 13 tiene su raz\u00f3n bastante obvia&#8230;&#8230;  Para poder hacer una llamada, tienes que tener activada la opci\u00f3n 100rel&#8230;. en el chan_sip de asterisk, esta opci\u00f3n no est\u00e1, pero en pjsip si, as\u00ed\u00ad que ya sab\u00e9is.<br \/>\nEl user-agent, debe ser igual al que os proponga el router.<br \/>\n<strong>4\u00ba) Configuraci\u00f3n del pjsip.conf<\/strong><br \/>\n<code><br \/>\n[global]<br \/>\nuser_agent=ZXHN H298N\/V1.1.4_JAZZT15<br \/>\n[endpoint]<br \/>\n100rel=yes  <strong>--> Importante definir el endpoint con el 100rel=yes<\/strong><br \/>\nsdp_session=ZXHN H298N\/V1.1.4_JAZZT15<br \/>\n[transport-udp]<br \/>\ntype=transport<br \/>\nprotocol=udp<br \/>\nbind=0.0.0.0<br \/>\nlocal_net=192.168.0.0\/16 <strong>--> tu red local<\/strong><br \/>\nlocal_net=127.0.0.1\/32<br \/>\n[Jazztel]<br \/>\ntype=registration<br \/>\ntransport=transport-udp<br \/>\noutbound_auth=Jazztel<br \/>\nserver_uri=sip:212.106.212.22:5060<br \/>\nclient_uri=sip:+349xxxxxxxx@ims.jazztel.net  <strong>--> tu n\u00famero de tel\u00e9fono con el +34<\/strong><br \/>\nretry_interval=60<br \/>\nexpiration=3600<br \/>\nsupport_path=yes<br \/>\n[Jazztel]<br \/>\ntype=auth<br \/>\nauth_type=userpass<br \/>\npassword=<em>PasswordQueHayasCalculado<\/em><br \/>\nusername=tuUsuari0DeJazttel@ims.jazztel.net<br \/>\nrealm=ims.jazztel.net<br \/>\n[Jazztel]<br \/>\ntype=aor<br \/>\ncontact=sip:<em>ip.del.sbc.jazztel<\/em>:5060<br \/>\n[Jazztel]<br \/>\ntype=endpoint<br \/>\ntransport=transport-udp<br \/>\ncontext=<em>Tu_Contexto_De_Llamadas_Entrantes<\/em><br \/>\ndisallow=all<br \/>\nallow=alaw<br \/>\nallow=ulaw<br \/>\nallow=gsm<br \/>\nallow=g729<br \/>\noutbound_auth=Jazztel<br \/>\naors=Jazztel<br \/>\nfrom_user=+349xxxxxxxx  <em>--> tu n\u00famero de tel\u00e9fono de jazztel<\/em><br \/>\nfrom_domain=ims.jazztel.net<br \/>\naors=Jazztel<br \/>\ndirect_media=no<br \/>\n[Jazztel]<br \/>\ntype=identify<br \/>\nendpoint=Jazztel<br \/>\nmatch=<em>ip.del.sbc.de.jazztel<\/em><br \/>\n<\/code><br \/>\nY a partir de aqu\u00ed\u00ad&#8230;. enjoy your VoIP FTTH Service \ud83d\ude09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>En esta ocasi\u00f3n, registraremos nuestro servicio de VoIP de fibra Jazztel en nuestro asterisk. Requisitos: 1\u00ba) Capturar el proceso de register del router de jazztel contra sus SBC. Para ello, mediante un hub colocado entre el router y la ONT, colocaremos nuestro pc capturando el paquete deseado. En las capturas, deber\u00e1s ver un paquete tal [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[28,192],"class_list":["post-1141","post","type-post","status-publish","format-standard","hentry","category-sin-categoria","tag-asterisk-2","tag-voip"],"_links":{"self":[{"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/posts\/1141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1141"}],"version-history":[{"count":0,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/posts\/1141\/revisions"}],"wp:attachment":[{"href":"https:\/\/diablo.craem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}