Home
ESCUELA POLITÉCNICA DEL EJÉRCITO
Contents
1. Configuraci n Avanzada de almacenamiento Desde qu disco desea que se inicie el proceso de instalaci n Revise y modifique la capa de particiones Atr s Figura 3 10 Pantallas de Instalacion 12 Se copian los archivos de instalaci n en el disco duro 60 B Siguiente La instalaci n por defecto de Fedora incluye un grupo de aplicaciones para el uso general de Internet Qu tareas adicionales le gustar a poder realizar en su sistema 4 Ofim tica 7 Desarrollo de software D Servidor de web Por favor seleccione cualquier repositorio adicional que quiera usar para la instalaci n de software O Additional Fedora Software Fedora Agregar repositorios de software adicional 4 Modificar repositorio La selecci n de software se puede personalizar ahora o con el sistema de administraci n de software despu s de la instalaci n Personalizar luego Personalizar ahora Atr s s siguiente Figura 3 11 Pantallas de Instalacion 13 Se seleccionan los paquetes a ser instalados en este caso seleccionamos paquetes b sicos que nos permitan descargar programas del internet wget acceso remoto ssh transferencia de archivos ftp monitoreo de tr fico iptraf publicaci n de p ginas web httpd e instalamos tambi n la distribuci n open office que cuenta con editor de palabras hojas de c lculo editor de diapositivas entre
2. La instalaci n requiere la partici n de su disco duro Por defecto una capa de partici n razonable es escogida sta es suficiente en la mayor a de los casos Usted puede escoger esta partici n predeterminada o crearla usted mismo Seleccione la s unidad es a usar para esta instalaci n Desde qu disco desea que se inicie el proceso de instalaci n O Revise y modifique la capa de particiones Figura 3 7 Pantallas de Instalacion Eliminar las particiones de Linux en los dispositivos seleccionados y crear disefio por defecto Sistema de Encriptado sk Configuraci n Avanzada de almacenamiento qa Atr s a guiente 9 Verificamos que los datos asignados sean los correctos La instalaci n requiere la partici n de su disco duro Por defecto una de partici n razonable es escogida sta es suficiente en la mayor a de los casos Usted puede escoger esta partici n predeterminada o crearla usted mismo Eliminar las particiones de Linux en los dispositivos seleccionados y crear al dise o por defecto Sistema de Encriptado Escribiendo la partici n al disco Seleccione la s unidac Las opciones de particion que seleccionaste ahora ser n escritas al disco Toda la informaci n de estas particiones se perder Volver Atr s Guardar iambios al disco Desde qu disco desea que se inicie el proceso de instalaci n Configuraci n Av C Rev
3. allow ulaw allow alaw allow gsm progressinband yes mailbox 4510 callerid Pablo lt 4410 gt callgroup 1 pickupgroup 1 A continuaci n detallamos algunas opciones User Peer Explicaci n y opciones Context Context Indica el contexto asociado en el dialplan para un usuario o peer 83 Canreinvite Canreinvite Con no se fuerza a Asterisk a no permitir que los puntos finales intercambien mensajes directamente Nat Nat Indica si el dispositivo est detr s de un NAT con Callgroup Callgroup Define un grupo de llamadas Pickupgroup Pickupgroup Define el grupo de llamadas validas para una aplicacion pickup Language Language Define las se ales para un pais Debe estar presente me en el archivo indications conf Allow Allow permite habilitar un codec Pueden ponerse varios en un mismo usuario Posibles Valores allow all allowzalaw allow ulaw allow g723 1 allow g729 allow ilbc allow gsm Disallow Disallow permite deshabilitar un codec Puede tomar los mismos valores que allow Insecure Insecure Define como manejar las conexiones con peers Tiene los siguientes valores verylyeslnolinvitelport Por defecto es no que quiere decir que hay que autenticarse siempre Trustpid Trustpid Si la cabecera Remote Party ID es de confianza Por defecto no 84 progressinban Progressinban Si se deben generar se ales en banda siempre Por defecto never
4. exten gt 4417 2 VoiceMail 4517 exten gt 4417 3 Hangup 102 El contexto para la central 3com es espeexternos el contexto de los casilleros de voz es casillerosvoz y los definimos as espeexternos exten gt _10XX 1 Dial SIP EXTEN 9200 6 80 232 30 Ttr include gt espevoip Siempre hay q incluir el contexto principal casillerosvoz exten gt 4517 1 Ringing exten gt 4517 2 Wait 2 exten gt 4517 3 Authenticate 2222 exten gt 4517 4 VoicemailMain s4517 include gt espevoip Salimos de este archivo guardando los cambios 103 Buz n de Voz Modificamos el archivo voicemail conf vi etc asterisk voicemail conf Y a adimos al final del archivo la siguiente l nea por cada usuario 4511 gt 2222 Pablo Jami T pjami G eolnet net En donde definimos el correo electr nico y el nombre de la persona a cargo de la extensi n Salimos de este archivo guardando los cambios 3 3 4 Manual de Usuario Cuando se configura una extensi n del servidor ASTERISK Se debe tomar en cuenta Usuario Clave Servidor de dominio 104 Para nuestro ejemplo utilizaremos el usuario 4411 Y nuestro servidor ser 200 6 86 4 Ejemplo de configuraci n con un Soft phone XFER HOLD RECORD AA AC Figura 3 34 X lite Softphone 105 1 a a T match 1 prestrip 2 Figura 3 35 X lite Softphone
5. Back __ SOFTWARE amp DOCUMENTATION Your Search Results Results For nbx 7 Resulis Found Sei 3 10600 3Com NEXB V3000 Platform Choose from the following categories to download files Drivers Software lity Software Network Management Software All Downloads 3C10600B 3Com NBX amp V3000 Analog Platform Choose from the following categories to download files Drivers Software Utility Software Documentation 3C10601A 3Corni amp NBX amp V3000 BRI ST Platform Choose from the following categories to download files Software Utility Anwara Quedan 1 elemento Descargando imagen http Juww 3com comfimages commonfen_US greypixel gf Internet Is Figura 3 17 Configuracion de Central Telefonica Elegimos la 1 de download amp drivers luego elegimos la central NBX V3000 67 Welcome to 3Com Corporation Microsoft Internet Explorer Archivo Edici n Ver Favoritos Herramientas Ayuda Q x BH 2 OL EB d http Jfwww 3com com Product Support Home Downlosds 8 Drivers Knowledgebase Product Registration amp eSupport Repair Replacement Service FAQ Service Offerings EAN SWITCHES 60 MORE saka En Ea TCIENT THAN COMPETITION SCom University CUSTOMERS SAVE WITH 3COM SOLUTIONS DID YOU CUSTOMER SUCCESSES arn cna emea Lar na
6. Configuracion de Softphone Ejemplo de configuraci n con un tel fono IP marca Yuxin 106 Network Settings iptype PPPPi local ip router ip 20068231 dns 08 23 mac 00 09 45 41 fl a6 vlan O vlan id jo Audio Settings ee 7 e era vad Ti age D E audio frames 2 2 723 1 high rate ilbc payload o jitter size lo handset in 0 15 handset out 0 31 i ring type dimf v speakerin 0 15 2 speaker out 0 31 lar Dial Plan Settings use dialplan dial number ddd code ho id code 86 idd prefix 00 484 prefix o inner line disable v inner line prefix 0 call waiting o forward number 4411 fwd poweroff o fwd noanswer o fwd always o fwd busy o answer 30 use digitmap O SIP Protocol Settings use service register ttl 13600 servicetype Y sip proxy 2006864 domain 2006864 nat traversal disable v nat addr if nat ttl o phone number 4444 account 4411 pin e register port 15060 ttp port 16384 GO o outbound proxy O dtmf dtmf payload nor nn es Other Settings password mo NEN upgrade type upgrade addr sntp ip 0 0 0 0 use daylight O Figura 3 36 Configuracion Telefono Yuxin Como observamos en los ejemplos las configuraciones SIP principales son sencillas 107 Cap tulo IV CONCLUSIONES Y RECOMENDACIONES 4 1 Conclusiones Asterisk desde su cre
7. First disallow all codecs allow g723 1 allow g729 allow ulaw allow alaw This option specifies a preference for which music on hold class this channel should listen to when put on hold if the music class has not been set on the channel with Set CHANNEL musicclass whatever in the dialplan and the peer channel putting this one on hold did not suggest a music class This option may be specified globally or on a per user or per peer basis mohinterpret default This option specifies which music on hold class to suggest to the peer channel when this channel places the peer on hold It may be specified globally or on a per user or per peer basis mohsuggest default gt language en Default language setting for all users peers This may also be set for individual users peers relaxdtmf yes Relax dtmf handling trustrpid no If Remote Party ID should be trusted sendrpid yes If Remote Party ID should be sent progressinband never If we should generate in band ringing always use never to never use in band signalling even in cases Where some buggy devices might not render it Valid values yes no never Default never useragent Asterisk PBX Allows you to change the user agent string promiscredir no If yes allows 302 or REDIR to non local SIP address Note that promiscredir when redirects are made to the local system will cause loops since Asterisk is incapable of performing a hai
8. Promiscredir Promiscredir Permite soportar redirecciones 302 Por defecto no Callerid Define el identificador cuando no hay ninguna otra BEEN informacion disponible Accountcode Los usuarios pueden estar asociados con un gb accountcode Se usa para facturacion Amaflags Se usa para guardar en los CDR y temas de facturaci n Puede ser default omit billing o documentation Restrictcid Se usa para esconder el ID del Ilamante Anticuada y en desuso Username Si Asterisk actua como cliente SIP este es el nombre de usuario que presenta en el servidor SIP al que llama Wa Z Pone el campo From de los mensajes SIP AAA AAA Fromuser Pone el nombre de usuario en el from por encima de lo que diga el callerID direcci n host donde se encuentra el dispositivo remoto Puede tomar valores Una IP host concreto 85 dynamic con lo que valdr a cualquier IP pero necesita contrasef a due H static vale cualquier IP pero no es necesario contrase a Puerto UDP en el que responder el Asterisk Qualify Para determinar cuando el dispositivo puede ser alcanzado Defaultip IP por defecto del cliente host cuando es bed especificado como dynamic Rtptimeout Termina la llamada cuando llega a ese timeout si no IE ha habido tr fico rtp Rtpholdtimeo Termina la llamada cuando llega a ese timeout si no ut ha habido tr fico rtp on hold 3 2 3 2 Configuraci n de extensiones Para p
9. aka descending sequential hunt group r use a round robin search starting at the next highest channel than last time aka ascending rotary hunt group use a round robin search starting at the next lowest channel than last time aka descending rotary hunt group TRUNKMSD 1 MSD digits to strip usually 1 or 0 TRUNK ZIAX2 user pass provider Any category other than General and Globals represent extension contexts which are collections of extensions Extension names may be numbers letters or combinations thereof If an extension name is prefixed by a character it is interpreted as a pattern rather than a 130 literal In patterns some characters have special meanings X any digit from 0 9 Z any digit from 1 9 N any digit from 2 9 1235 9 any digit in the brackets in this example 1 2 3 5 6 7 8 9 Wildcard matches anything remaining e g 9011 matches anything starting with 9011 excluding 9011 itself wildcard causes the matching process to complete as soon as it can unambiguously determine that no other matches are possible For example the extension NXXXXXX would match normal 7 digit dialings While INXXNXXXXXX would represent an area code plus phone number preceded by a one Each step of an extension is ordered by priority which must always start with 1 to be considered a valid extension The priority next or n means the pr
10. allow g723 1 allow g729 allow gsm allow alaw allow ulaw allow h263 allow h263p progressinband yes mailbox 45 16 callerid Pablin con video lt 4416 gt callgroup 1 pickupgroup 1 4417 type friend context espevoip secret 123456 host dynamic nat yes dtmfmode rfc2833 username 4417 call limit 3 disallow all allow g723 1 allow g729 allow gsm allow alaw allow ulaw allow h263 allow h263p progressinband yes mailbox 4517 callerid Pablin con video2 lt 4417 gt callgroup 1 pickupgroup 1 128 extensions conf extensions conf the Asterisk dial plan Static extension configuration file used by the pbx config module This is where you configure all your inbound and outbound calls in Asterisk This configuration file is reloaded With the dialplan reload command in the CLI With the reload command that reloads everything in the CLI gt The General category 15 for certain variables general gt If static is set to no or omitted then the pbx_config will rewrite this file when extensions are modified Remember that all comments made in the file will be lost when that happens XXX Not yet implemented XXX static yes if static yes and writeprotect no you can save dialplan by CLI command dialplan save too writeprotect no If autofallthrough is set then if an extension runs out of things to do it will terminate the call with BUSY CONGESTION or HANGUP
11. exten s BUSY 1 Voicemail ARGI b If busy send to voicemail w busy announce exten gt s BUSY 2 Goto default s 1 If they press return to start exten _s 1 Goto s NOANSWER 1 Treat anything else as no answer exten gt a 1 VoicemailMain ARG If they press send the user into VoicemailMain macro stdPrivacyexten Standard extension macro ARG1 Extension we could have used MACRO_EXTEN here as well ARG2 Device s to ring ARG3 Optional DONTCALL context name to jump to assumes the s 1 extension priority ARG4 Optional TORTURE context name to jump to assumes the s 1 extension priority exten gt s 1 Dial 2 201 Ring the interface 20 seconds maximum call screening option or use P for databased call screening 135 exten gt s 2 Goto s DIALSTATUS 1 Jump based on status NOANSWER BUSY CHANUNAV AIL CONGESTION ANSWER exten gt s NOANSWER 1 Voicemail ARG1 u If unavailable send to voicemail w unavail announce exten gt s NOANSWER 2 Goto default s 1 If they press return to start exten gt s BUSY 1 Voicemail ARG b If busy send to voicemail w busy announce exten gt s BUSY 2 Goto default s 1 If they press return to start exten gt s DONTCALL 1 Goto ARG3 s 1 Callee chose to send this call to a polite Don t call again script exten gt s TORTURE Goto ARG4 s 1 Callee chose to send
12. gt 3 1 Set LANGUAGE fr Set language to french exten gt 3 n Goto s restart Start with the congratulations exten gt 1000 1 Goto default s 1 E We also create an example user 1234 who is on the console and has voicemail etc 136 exten gt 1234 1 Playback transfer skip Please hold while but skip if channel is not up exten gt 1234 n Macro stdexten 1234 GLOBAL CONSOLE exten 1235 1 Voicemail 1234 u Right to voicemail exten gt 1236 1 Dial Console dsp Ring forever exten 1236 n Voicemail 1234 b Unless busy gt for when they re done with the demo exten gt 1 Playback demo thanks Thanks for trying the demo exten gt n Hangup Hang them up gt A timeout and invalid extension rule exten gt t 1 Goto 1 If they take too long give up exten gt i 1 Playback invalid That s not valid try again Create an extension 500 for dialing the Asterisk demo exten gt 500 1 Playback demo abouttotry Let them know what s going on exten gt 500 n Dial IAX2 guest pbx digium com s O default Call the Asterisk demo exten gt 500 n Playback demo nogo Couldn t connect to the demo site exten gt 500 n Goto s 6 Return to the start over message gt Create an extension 600 for evaluating echo latency exten gt 600 1 Playback demo echotest Let them know what s going on exten gt 600 n Echo Do the echo
13. gt Software Upgrade Software Upgrade Rane k you to install a new version of system software Before you upgrade your system software 3Com recommends that you back up Ge lokna Your system your voice mail and your licenses then run the backups again immediately ater upgrading Telephone Configuration Help User Configuration CAUTION Call Distribution Groups Uploading and installing new software can take 30 minutes or PSTN Gateway Configuration NBX Messaging SIP Applications Dial Plan Until the upgrade is complete Virtual Connections 1 DO NOT REMOVE POWER from the NBX system Downloads 2 DO NOT REBOOT the NBX system gt gt gt Licensing and Upgrades 3 DO NOT REFRESH or CLOSE the browser window in which you started the upgrade until you see the first upgrade status message Reports Network Management A confirmation screen will appear when the upgrade is complete Country Settings 3 Current version D 14 Enter path for new software Examinar Upgrade NBX Version RB 0 14 DOS Disk Space Free 0 250 Gb Copyright 2006 DOS Disk Space Total 0 293 Gb Corporation AN Rights Reserved htfs Disk Space Free 36 056 Gb htfs Disk Space Total 36 979 Gb Select version to remove R6_0_13 Remove Figura 3 22 Configuracion de Central Telefonica 70 Y ca
14. progressinband yes mailbox 98 10 callerid Cristobal Espinosa lt 99 10 gt callgroup 1 pickupgroup 1 9911 type friend context espevoip secret 123456 host dynamic nat no dtmfmode rfc2833 username 99 1 call limit 3 disallow all allow g723 1 allow g729 allow ulaw allow alaw allow gsm progressinband yes mailbox 98 11 callerid Pablo Jami lt 9911 gt callgroup 1 124 pickupgroup 1 9912 type friend context espevoip secret 123456 host dynamic nat yes dtmfmode rfc2833 username 9912 call limit 3 disallow all allow g723 1 allow g729 allow ulaw allow alaw allow gsm progressinband yes mailbox 98 12 callerid Test lt 9912 gt callgroup 1 pickupgroup 1 9913 type friend context espevoip secret 123456 host dynamic nat yes dtmfmode rfc2833 username 99 13 call limit 3 disallow all allow g723 1 allow g729 allow ulaw allow alaw allow gsm progressinband yes mailbox 98 13 callerid Test yo lt 9913 gt callgroup 1 pickupgroup 1 4410 type friend context espevoip secret 123456 host dynamic nat yes dtmfmode rfc2833 username 4410 call limit 3 disallow all allow g723 1 allow g729 allow ulaw allow alaw 125 allow gsm progressinband yes mailbox 4510 calleridz Pablo 4410 callgroup 1 pickupgroup 1 4411 type friend context espevoip secret 123456 host dynamic nat no dtmfmode rfc2833 username 44 1 1 call limit 3 disallow all allow g723 1 allow g729 allow ulaw allow ala
15. will list all dialplan functions core show function lt COMMAND gt will show you more information about one function Remember that function names are UPPER CASE espevoip exten 9910 1 Dial SIP 9910 15 Ttr exten 9910 2 VoiceMail 9810 exten gt 9910 3 Hangup exten gt 9911 1 Dial SIP 9911 15 Ttr exten 9911 2 VoiceMail 9811 exten gt 9911 3 Hangup exten gt 9912 1 Dial SIP 9912 15 Ttr exten gt 9912 2 VoiceMail 9812 exten gt 9912 3 Hangup exten gt 9913 1 Dial SIP 9913 15 Ttr exten gt 9913 2 VoiceMail 9813 exten gt 9913 3 Hangup exten gt 4410 1 Dial SIP 4410 15 Ttr exten gt 4410 2 VoiceMail 4510 exten gt 4410 3 Hangup 139 exten gt 4411 1 Dial SIP 4411 15 Ttr exten gt 4411 2 VoiceMail 4511 exten gt 4411 3 Hangup exten gt 4412 1 Dial SIP 4412 15 Ttr exten gt 4412 2 VoiceMail 4512 exten gt 4412 3 Hangup exten gt 4413 1 Dial SIP 4413 15 Ttr exten gt 4413 2 VoiceMail 4513 exten gt 4413 3 Hangup exten gt 4414 1 Dial SIP 4414 15 Ttr exten 4414 2 VoiceMail 4514 exten 4414 3 Hangup exten gt 4415 1 Dial SIP 4415 15 Ttr exten gt 4415 2 VoiceMail 4515 exten gt 4415 3 Hangup exten 4416 1 Dial SIP 4416 15 Ttr exten gt 4416 2 VoiceMail 4516 exten 4416 3 Hangup exten 4417 1 Dial SIP 4417 15 Ttr exten 4417 2 VoiceMail 4517 exten 4417 3 Hangup include gt casillerosvoz include
16. 1234 conf gt 2345 9938 conf gt 4001 1111 conf gt 4002 conf gt 4004 1234 conf 4003 conf gt 4005 1234 148 Plan de marcaci n Para configurar el plan de marcaci n nos dirigimos a Dial Plan y seleccionamos configurar Google II go http 200 6 80 232 sec_cont system htm Archivo Edici n Ver Favoritos Herramientas Ayuda xk d BB BAGmal Recbidos 5 pjamit er NBX nbxdecclabwifi 3com System Wide Settings gt System Ide System Identity System Wide Settings Feature Settings System Maintenance Telephone Configuration User Configuration Call Distribution Groups PSTN Gateway Configuration NBX Messaging Software Version R6_0_59 System Serial s 0972700080 SIP ons Host Name nbxdecclabwifi 200 6 80 232 a Virtual Connections 3 beatza 200 6 80 225 Licensing and Upgrades 255 255 255 240 Reports gt Network Management Country Settings System MAC Address 00 e0 bb 2b 74 38 MOH MAC Address NA Free Memory in bytes 533 754 788 Memory Upgrade Installed YES 654 307 328 byte File System NBXFSV2 Date and Time Monday December 15 2008 8 40 26 PM System Start Time Monday December 15 2008 11 08 50 AM iw m II E HEE 1111111 internet 100 7 Seleccionamos modify Go gt E http 200 6
17. 2 Codecs de audio en telefon a TE 43 PRI mE 44 2 5 1 Configuraci n de ArChivOS rruna 44 2 6 Factibilidad ciar 46 2 ES ERAN 46 2 6 2 Desventajas nee a tee a eee lec ku ree ee dee EV e Nut 47 2 6 3 Situaci n actual del servidor NBX 3000 rra 48 Capitulo a EET E EA EEEa ERE 49 3 T Requerimientos iei genet ene genre Eno eee gene qae sie dede ee een ch de u edens 49 3 1 1 Paquetes de software b sicos a 49 3 1 2 Hardware nh tee tte hoa cen tita hei einge att dee eto a 50 3 2 Instalaci n P 50 3 2 1 Sistema Qp ratiV O ii aqa na exc 50 3 2 2 Instalaci n de Asterisk eroe ente badana 73 EA CODfIBUFAclOn zr a Tae te aet e E 79 3 3 Implementaci n del proyecto rra 90 GA e a 90 3 3 2 EEA 93 3 3 3 rrura 97 3 3 4 Manual de Usuario ted Rent E RR arr 104 A O 108 CONCLUSIONES Y RECOMENDACIONES 108 4 12 Conclusi ONES AE 108 4 2 Recomendaciones rra cnn cananea rre 109 Gat eeta d EEA 110 ANEXOS M a 111 dile dela AEE A T I ei ici 112 extensi ns C
18. 200 6 80 232 owned by ESPE DECC Generated on MON DEC 15 20 42 15 2008 ALLAN First delete all existing dialplan information Table Delete DestinationRoute Delete TimedRoute Delete PreTranslator Delete Now create all dialplan information ALLAN Settings Note ACD ranges included in HuntGroup category IHH ExtensionLength 4 ExtensionRange Telephone 1000 3999 ExtensionRange Park 6000 6099 ExtensionRange AutoAttendant 5500 5599 ExtensionRange HuntGroup 4000 4099 ExtensionRange External 6000 7999 150 ALLAN The ExtensionRange External Setting MUST include the Park range If the Call Park range is outside of the ExtensionRange External the Call Park feature will not work ALLAN ExternalSettings 9 7250 500 ALUA Dial Plan Tables ALLAN Table Create 1 Internal 4 Digit Extensions Id Entry Digits Min Max Class Prio Route LAA TableEntry Create 1 1 0 1 1 Internal 0 4 TableEntry Create 1 2 1 4 4 Internal 0 0 TableEntry Create 1 32 4 4Internal 0 0 TableEntry Create 1 4 3 4 4Internal 0 0 TableEntry Create 1 5 44 4 4 nternal 0 9 TableEntry Create 1 6 500 3 3Internal 0 3 TableEntry Create 1 7 55 4 4 nternal 0 3 TableEntry Create 1 8 6 4 4 Internal 0 0 TableEntry Create 1 9 7 4 4 Diagnostics 0 0 TableEntry Create 1 10 9 8 8 Local 0 1 TableEntry Create 1 11 90 2 64 Operator 0 1 TableEntry Create 1 12 901 4 64 International 0 1 TableEntry Create 1 13 91 9 12 LongDistance 0 1 TableEntry Cre
19. SIP no propietarios abaratara los costos en compra de nuevos tel fonos SIP Adem s nos brinda la posibilidad de no estar atados a lo que 3Com nos ofrece pidiendo tomar lo mejor y m s conveniente econ micamente del mercado seg n los requerimientos y presupuesto que se mantenga El tener un protocolo abierto como lo es SIP abre las puertas a que alumnos de la instituci n puedan empezar a desarrollar investigar y experimentar sobre este de una manera gratuita y con una tecnolog a tan usada en el medio de VoIP La oportunidad de unir varios servidores Asterisk es una gran ventaja para la escalabilidad de la implementaci n ya que esto nos permite implementar la misma soluci n en diferentes localidades de la instituci n obteniendo las mismas ventajas y funcionalidades ya nombradas logrando un sistema integral y no dependiente de la localidad 2 6 2 Desventajas La implementaci n del protocolo SIP en la central telef nica demando la compra de un Release que permita la configuraci n de SIP dentro de la central NBX adem s del upgrade de una tarjeta de memoria RAM 47 e La implementaci n de NAT para la red interna para reemplazar el uso de direcciones IPs p blicas por privadas para usuarios de la red interna tambi n requiere de actualizaci n de hardware en la central telef nica 2 6 3 Situaci n actual del servidor NBX 3000 La central telef nica 3COM cuenta con la versi n 6 059 con protocolo SIP abierto esto no
20. Settings amp d Current version 0 14 Enter path for new software C Release R6_0_59_V Upgrade NBX6 Version Re 0 14 DOS Disk Space Free 0 250 Gb Copyright 2006 DOS Disk Space Total 0 293 Gb 3Com Corporation Al Rights Reserved htfs Disk Space Free 36 056 Gb htfs Disk Space Total 36 979 Gb Select version to remove R6_0_13 Figura 3 23 Configuracion de Central Telefonica 71 Presionamos UPGRADE Microsoft Internet Explorer UPGRADE CAUTION The time required For a software upgrade depends on the speed of the network connection between the NBX system and the computer From which the software is being loaded To mimimize the time required For the upgrade 3Com recommends that you place the software upgrade File on computer that is on the same local network segment as the NBX system Access to the NetSet utility will be disrupted For all users and Admins during the upgrade process 3Com recommends that you upgrade your system outside of business hours Caution Until the upgrade is complete DO NOT REMOVE POWER from the NBX system DO NOT REBOOT the NBX system DO NOT REFRESH or CLOSE the browser window in which you started the upgrade until you see the first upgrade status message 4 confirmation screen will appear when the upgrade is complete Are you sure that you want Eo upgrade the system now Click OK ko continue or Cancel to terminate this operation Figura 3 24 Conf
21. astl4 icc glibc x86 64 core2 so wget http asterisk hosting lv bin codec g729 ast14 icc glibc x86 64 core2 so Los renombramos cp codec_g723 ast14 icc glibc x86_64 core2 so codec g723 so cp codec g729 ast14 icc glibc x86 64 core2 so codec g729 so 78 Y concedemos todos los permisos chmod 777 codec g723 so chmod 777 codec g729 so 3 2 3 Configuraci n Para poder operar el sistema es necesario contar con un contexto principal que abarcara a todas las extensiones y servicios alojados en el servidor 3 2 3 1 Configuraci n SIP Las configuraciones son realizadas en el archivo SIP CONF en este archivo hay que destacar los siguientes puntos disallow all codecs allow g723 1 allow g729 allow ulaw allow alaw Hay que tomar en cuenta que estos par metros son generales pero se pueden configurar para cada uno de los usuarios SIP Definimos el idioma language es 79 Definimos el modo en el que se transmite los tonos dtmfmode rfc2833 Habilitamos la opci n de video para realizar pruebas del mismo videosupport yes Con esta opci n activamos los mensajes de asterisk as nos damos cuenta que paquetes env a y hacia a donde sipdebug yes Guardamos los mensajes con las sentencias recordhistory yes dumphistory yes Uso de NAT Network address translation traducci n de direcciones de red en modo se alizaci n sim trica nat no 80 SIP los invites
22. away snat yes This phone may be natted Send SIP and RTP to the IP address that packet is received from instead of trusting SIP headers shost dynamic This device registers with us canreinvite no Asterisk by default tries to redirect the RTP media stream audio to go directly from the caller to the callee Some devices do not support this especially if one of them is behind a NAT defaultip 192 168 0 4 IP address to use until registration 123 username goran Username to use when calling this device before registration Normally you do NOT need to set this parameter setvar CUSTID 5678 Channel variable to be set for all calls from this device pre 14 asterisk type friend secret digium hostzdynamic srfc2833compensate yes Compensate for pre 1 4 DTMF transmission from another Asterisk machine You must have this turned on or DTMF reception will work improperly t38pt_usertpsource yes Use the source IP address of RTP as the destination IP address for UDPTL packets if the nat option is enabled If a single RTP packet is received Asterisk will know the external IP address of the remote device If port forwarding is done at the client side then UDPTL will flow to the remote device 9910 type friend context espevoip secret 123456 host dynamic nat no canreinvite yes dtmfmode rfc2833 username 99 10 call limit 3 disallow all allow g723 1 allow g729 allow ulaw allow alaw allow gsm
23. begin executing the priorities there in sequence b If not found Search the switches if any declared in 3 sequence c Ifstill not found for each include push that context onto x the top of the context stack and recurse to a d If still not found pop the entry from the top of the stack if the stack is empty the search has failed If it s not continue with the next context in c This is a depth first traversal and stops with the first context that provides a matching extension As usual if more than one pattern in a context will match the best match will win Please note that that extensions found in an included context are 131 treated as if they were in the context from which the search began The PBX s notion of the current context is not changed Please note that in a context it does not matter where an include directive occurs Whether at the top or near the bottom the effect Will be the same The only thing that matters is that if there is more than one include directive they will be searched for extensions in order first to last Also please note that pattern matches like OXX are not treated any differently than exact matches like 987 Also note that the order of extensions in a context have no affect on the outcome Timing list for includes is time range gt l lt days of week l days of month l months Note that ranges may be specified t
24. con la centralita telef nica de sus clientes mediante la cual la empresa de telefon a asigna un rango de n meros conectados a la centralita de su cliente RFC En espa ol sus siglas significan Petici n de Comentarios Es uno dentro de una serie de documentos informativos numerados de Internet y est ndares que tanto el software comercial y el freeware y las comunidades Unix siguen ampliamente Tel fono VoIP El tel fono VoIP permite al usuario hacer llamadas a cualquier otro tel fono por medio de la tecnolog a de voz sobre IP VoIP De esta manera la voz es transmitida sobre la red de internet en lugar del sistema tradicional PSTN Un tel fono VoIP puede ser un sencillo tel fono basado en software un aparato telef nico que se asemeja mucho a un tel fono com n SIP Session Initiation Protocol En espa ol sus siglas significan Protocolo de Inicio de Sesi n Es un protocolo est ndar desarrollado por el Grupo de Trabajo IETF MMUSIC propuesto para iniciar modificar y terminar una sesi n de usuario interactiva que implica elementos multimedia tal como video voz mensajer a instant nea juegos en l nea y realidad virtual entre otros Esta es una descripci n general de lo que el protocolo es m s adelante se explica m s a fondo el funcionamiento del mismo Historia del protocolo SIP E 22 de febrero de 1996 Mark Handley y Eve Schooler presentaron al un borrador del Session Invitation Pr
25. de Instalacion Fedora 69 Figura 3 11 Pantallas de Instalacion Fedora 70 Figura 3 12 Pantallas de Instalacion Fedora 71 Figura 3 13 Pantallas de Instalacion Fedora 72 Figura 3 14 Pantallas de Instalacion Fedora 73 Figura 3 15 Pantallas de Instalacion Fedora 74 Figura 3 16 Pantallas de Instalacion Fedora 75 Figura 3 17 Configuracion de Central Telefonica 76 Figura 3 18 Configuracion de Central Telefonica 77 Figura 3 19 Configuracion de Central Telefonica 77 Figura 3 20 Configuracion de Central Telefonica 78 Figura 3 21 Configuracion de Central Telefonica 79 Figura 3 22 Configuracion de Central Telefonica 79 Figura 3 23 Configuracion de Central Telefonica 80 Figura 3 24 Configuracion de Central Telefonica 81 Figura 3 25 Topologia Proyecto 100 Figura 3 26 Sistema de Monitoreo Analisis de Paquetes 1 101 Figura 3 27 Sistema de Monitoreo Analisis de Paquetes 2 102 Figura 3 28 Consola Asterisk Llamado a una extension 1 104 Figura 3 29 Consola Asterisk Llamado a una extension 2 105 Figura 3 30 Consola Asterisk Llamado a telefono autentificado 3COM 105 Figura 3 31 Central Telefonica NBX trusted SIP Interfaces 107 Figura 3 32 Central Telefonica NBX Asignacion de Extensiones 108 Figura 3 33 Central Telefonica NBX Direccion IP Servidor 109 Figura 3 34 X lite Softphone 114 Figura 3 35 X lite Softphone Configuracion de Softphone 115 Figura 3 36 Configuracion Telefono Yuxin 116 viii CAP TULO I 1 INTROD
26. extensions that are not known here for example with remote IAX switching you transparently get access to the remote Asterisk PBX 134 switch gt IAX2 user password O bigserver local An Iswitch is like a switch but is literal in that variable substitution is not performed at load time but is passed to the switch directly presumably to be substituted in the switch routine itself Iswitch gt Loopback 12 EXTEN othercontext An eswitch is like a switch but the evaluation of variable substitution is performed at runtime before being passed to the switch routine eswitch gt IAX2 context 9 CURSERVER macro trunkdial Standard trunk dial macro hangs up on a dialstatus that should terminate call ARG1 What to dial exten gt s 1 Dial ARGI exten gt s n Goto s DIALSTATUS 1 exten gt s NOANSWER 1 Hangup exten gt s BUSY 1 Hangup exten gt _s 1 NoOp macro stdexten Standard extension macro ARG1 Extension we could have used MACRO EXTENT here as well ARG2 Device s to ring exten gt s 1 Dial ARG2 20 Ring the interface 20 seconds maximum exten gt s 2 Goto s DIALSTATUS 1 Jump based on status NOANSWER BUSY CHANUNAVAIL CONGESTION ANSWER exten s NOANSWER 1 Voicemail ARG1 u If unavailable send to voicemail w unavail announce exten s NOANSWER 2 Goto default s 1 If they press return to start
27. g729 allow ulaw allow alaw zte type peer context espevoip host 66 165 169 100 allow g723 1 allow g729 allow ulaw allow alaw espeexternos type peer context espevoip host 200 6 80 232 canreinvite no allow g723 1 allow g729 allow ulaw allow alaw sip proxy out type peer we only want to call out not be called secret guessit username yourusername Authentication user for outbound proxies fromuser yourusername Many SIP providers require this fromdomain provider sip domain shost box provider com susereqphone yes This provider requires user phone on URI scall limit 5 permit only 5 simultaneous outgoing calls to this peer outboundproxy proxy provider domain send outbound signaling to this proxy not directly to the peer Call limits will not be enforced on real time peers since they are not stored in memory port 80 The port number we want to connect to on the remote side Also used as defaultport in combination with defaultip settings Definitions of locally connected SIP devices type user a device that authenticates to us by from field to place calls type peer a device we place calls to or that calls us and we match by host type friend two configurations peer user in one gt For device names we recommend using only a z numerics 0 9 and underscore For local phones type friend works most of the time If you have one way audio you probably have N
28. is checked first if no entry exists string is then run through the associated internal dial plan 10 szExtension 0001 is the default Line Card Port extension list 11 szExtension 0002 is the default T1 extension list 12 szExtension 0003 is the default Voicemail extension list 13 szExtension 0004 is the default Attendant extension list The lowest telephone extension that is Auto discovered will populate 14 szExtension 0005 is the default H323 extension list 15 szExtension 0008 is the default 8 Pool extension list for backward compatibility 8 Pool from R1 x upgrades 16 szOperation can be stripLead stripTrail replace prepend append 17 szCallClass can be Internal Local LongDistance International WAN TollFree Emergency COCode Other Wireless Toll AlternateLong Operator TrunkToTrunk Diagnostics NotAllowed 18 route 0 always means look up internal device by extension 157 19 szStartTime and szEndTime are military time 00 00 through 23 59 20 szStartTime and szEndTime can be open closed lunch other if specifying a system mode both must be the same mode 2 szExtensionType can be telephone park autoAttendant huntGroup external page 22 nISDNNumberType types for ETSI are as follows 0 default unknown 1 international 2 national 3 network 4 subscriber IHH 158
29. que me han dado muchos consejos informaci n ayuda y aliento para la culminaci n de mi carrera a mi compafiero de tesis con quien hemos superado varios obst culos pero nunca desistimos ni bajamos la cabeza y por ultimo pero no menos importante a mi director de tesis quien nunca me neg su apoyo y me gui no solo en lo t cnico sino en todos los campos Pablo Javier Jami Tapia DEDICATORIA A mis Padres y Hermana por creer y confiar siempre en m apoy ndome en todas las decisiones que he tomado en la vida por darme la oportunidad de ser un profesional pero mas que todo por el amor paciencia cuidado y sabiduria que me brindaron en cada momento de mi vida A mis compa eros y compafieras por el apoyo y motivaci n que de ellos he recibido especialmente a mi companero de tesis que ha sido m s que todo un gran amigo A mis maestros por compartir sus amplios conocimientos y experiencia ademas de brindarnos su amistad Especialmente agradezco a mi director de tesis quien entrego su apoyo tiempo y consejos de una manera desinteresada en todo momento A las personas que siempre estuvieron apoyandome para lograr xito en mis objetivos y con quienes tuve la dicha de compartir muchos momentos que ahora forman parte de las situaciones y experiencias que han construido lo que hoy soy Ilich Alexander Almeida Torres ndice de contenidos HSTADO JDE FIGURAS ttr PP tp e DER eterra e OE viii GGe DA nbn aaa a ia 1 LoI
30. tel fono suene al ser llamado escuchar la se al de tono o de ocupado La implementaci n y terminolog a en SIP son diferentes SIP tambi n implementa muchas de las m s avanzadas caracter sticas del procesamiento de llamadas de SS7 aunque los dos protocolos son muy diferentes SS7 es altamente centralizado caracterizado por una compleja arquitectura central de red y unos terminales tontos los tradicionales tel fonos de auricular SIP es un protocolo peer to peer p2p Como tal requiere un n cleo de red sencillo y altamente escalable con inteligencia distribuida en los extremos de la red incluida en los terminales ya sea mediante hardware software Muchas caracter sticas de SIP son implementadas en los terminales a diferencia de las tradicionales caracter sticas de SS7 que son implementadas en la red Aunque existen muchos otros protocolos de se alizaci n para VoIP SIP se caracteriza porque sus promotores tienen sus ra ces en la comunidad IP y no en la industria de las telecomunicaciones SIP ha sido estandarizado y dirigido principalmente por el IETF mientras que el protocolo de VoIP H 323 ha sido tradicionalmente m s asociado con la Uni n Internacional de Telecomunicaciones SIP es similar a HTTP y comparte algunas caracter sticas en sus principios de dise o e Es legible por humanos y sigue una estructura de petici n respuesta Los promotores de SIP afirman que es m s simple que H 323 Aunque originalmente u
31. 0 Configuracion de Central Telefonica Una vez descargados los paquetes accedemos a la central telef nica v a http verificamos la versi n actual 69 NBX NetSet Microsoft Internet Explorer chivo yer Favoritos Herramientas Ayuda Ore DAO Poms Zure 8 SSR Direcci n 42 http 192 168 1 190 sec_cont ops reboot htm e Ge NBX nbxdecclabwifi acom System Maintenance gt Reboot Shutdown Wide Setti wa 4 Reboots the system after a software upgrade The selectable boot capability lets you restore an earlier operating environment if System Maintenance gt nen Telephone Configuration gt User Configuration Call Distribution Groups gt Ze PSTN Gateway Configuration Current version Penia NBX Messagi bar Select version P6014 v Dial Plan Virtual Connections Shutdown ege Licensing and Upgrades gt Reports Network Management Country Settings 3 NBX Version RB 0 14 Copyright 2006 Com Corporation Al Rchts Reserved Figura 3 21 Configuracion de Central Telefonica Y nos dirigimos a LICENSING AND UPGRADES NBX NetSet Microsoft Internet Explorer oyee Herrectentes Ayuda Ors x d fb erm O 2 28 Direcci n http 192 168 1 190 sec_cont ops software htm ea NBX nbxdecclabwifi acom Licensing and Upgrades
32. 0 Consola Asterisk Llamado a telefono autentificado 3COM 96 3 3 2 3 Interpretaci n de los resultados Nos damos cuenta que la llamada se enruta hacia el canal 3COM por el mensaje Executing s macro dialout trunk 16 Dial SIP 4410 cO00bebO SIP espeexternos 10011120l in new stack Como ya hab amos descrito se enrutan de acuerdo a los contextos designados en este caso se enruta por el contexto espeexternos Las llamadas dentro del servidor se las toma como internas al igual que las llamadas hacia el buzon de correo 3 3 3 Manual de Administrador E administrador tiene que cerciorarse que est n bien configuradas las interconexiones en la central 3COM y en el servidor asterisk Para comprobar que exista conexi n entre 3COM y Asterisk nos dirigimos a Sip Applications Trusted SIP Interfaces 97 NBX NetSet Windows Internet Explorer NBX nbxdecclabwifi ttem Wide Settings gt System Identity System Wide Settings Feature Settings gt System Maintenance Telephone Configuration User Configuration Call Distribution Groups PSTN Gateway Configuration NBX Messaging lecclabwifi IP Messaging Dial Plan 3Com IP Conferencing Module p0 6 80 232 Virtual Connections 6 80 225 Downloads Licensing and Upgrades Subnet Mask 255 255 255 240 Reports Network Management Country Settings System MAC Address 00 e0 bb 2b 74 38 MAC Address NA Free Memory in bytes 533 767
33. 1999 En septiembre de 1999 se cre el grupo de trabajo SIP en el IETF que continu con el desarrollo del protocolo para posteriormente en Junio de 2002 publicar la RFC 3261 que reemplaz a la anterior introduciendo modificaciones propuestas durante el trabajo del grupo SIP Los autores de esta ltima RFC hoy vigente son Jonnathan Rosenberg Henning Schulzrinne Gonzalo Camarillo Allan Johnston Jon Peterson Robert Sparks Mark Handley y Eve Schooler Dise o del protocolo E protocolo SIP fue dise ado por el con el concepto de caja de herramientas es decir el protocolo SIP se vale de las funciones aportadas por otros protocolos las que da por hechas y no vuelve a desarrollarlas Este es el motivo del porque SIP funciona en colaboraci n con otros muchos protocolos El protocolo SIP se concentra en el establecimiento modificaci n y terminaci n de las sesiones se complementa entre otros con el SDP que describe el contenido multimedia de la sesi n por ejemplo qu direcciones IPs puertos y codecs se usar n durante la comunicaci n Tambi n se complementa con el RTP Real time Transport Protocol RTP 11 es el verdadero portador para el contenido de voz y video que intercambian los participantes en una sesi n establecida por SIP Otro concepto importante en su disef o es el de extensibilidad Esto significa que las funciones b sicas del protocolo definidas en la RFC 3261 pueden ser extendidas med
34. 222 exten gt 4511 4 VoicemailMain s4511 exten gt 4599 1 Ringing exten gt 4599 2 Wait 2 exten gt 4599 3 Authenticate 2222 exten gt 4599 4 VoicemailMain s45 12 include gt espevoip conferencia exten gt 4400 1 MeetMe 4001 ri exten gt 4401 1 MeetMe 4002 exten gt 4402 1 MeetMe 4003 r exten gt 4403 1 MeetMe 4004 ri 89 exten gt 4404 1 MeetMe 4004 mq include gt espe3com include gt espevoip 3 2 3 3 Configuraci n de buz n de mensajes Asterisk puede enviar correos con la informaci n de su mensaje en forma de archivo esta opci n es muy til y se la configura en el archivo etc asterisk voicemail conf Los par metros que debemos configurar son los siguientes fromstring Asterisk 3COM ESPE emailsubject ESPE Nuevo mensaje desde VM_MSGNUM al numero VM MAILBOX emailbody Mensaje VM_MSGNUM n nEstimado VM_NAME n n tQueremos informarle que tiene un nuevo mensaje en su buzon de voz de VM_DUR seg de duracion nen el numero telefonico VM_MAILBOX desde el numero telefonico VM_CALLERID el VM_DATE n nAtt n n t t t tESPE 3COM n n n n nFavor no responder este mensaje 3 3 Implementaci n del proyecto 3 3 1 Equipos Se utilizara 90 gt Computador que har las funciones de servidor Asterisk Tel fonos IP Yuxin autentificados en el servidor asterisk Central telef nica 3COM NBXv3000 con licencia para 15 us
35. 3 gt 2222 Alex ALmeida pjami eolnet net 4511 gt 2222 Pablo Jami T pjami eolnet net 4512 gt 2222 Pablo Jami Celu pjjttb 9 hotmail com 4513 gt 2222 Pablin Nano pjamitapia O gmail com 4514 gt 2222 Mauricio cespinosa eolnet net 4515 gt 2222 Pablin Xlite pjami Oeolnet net 4516 gt 2222 Pruebas pjami O eolnet net Mailboxes may be organized into multiple contexts for voicemail virtualhosting other The intro can be customized on a per context basis directoryintro dir company2 1234 gt 5678 Company2 User rootOlocalhost 147 Meetme conf Configuration file for MeetMe simple conference rooms for Asterisk of course gt This configuration file is read every time you call app meetme general audiobuffers 32 The number of 20ms audio buffers to be used when feeding audio frames from non Zap channels into the conference larger numbers will allow for the conference to de jitter audio that arrives at different timing than the conference s timing source but can also allow for latency in hearing the audio from the speaker Minimum value is 2 maximum value is 32 rooms Usage is conf gt confno pin adminpin Note that once a participant has called the conference a change to the pin number done in this file will not take effect until there are no more users in the conference and it goes away When it is created again it will have the new pin number conf
36. 624 Memory Upgrade Installed YES 654 307 328 byte File System NBXFSV2 Date and Time Wednesday December 10 2008 2 19 45 PM System Start Time Wednesday December 10 2008 8 03 59 AM Software Version R6_0_59 System Serial 0972700080 Network Protocol Standard IP Figura 3 31 Central Telefonica NBX trusted SIP Interfaces Nos dirigimos a la extensi n asignada que en este caso es la 7001 98 NBX NetSet Windows Internet Explorer ETZIE E http 1 200 6 60 232 sec_cont siptrustedendpoints htm EE NBX nbxdecclabwifi SIP Applications gt Trusted SIP Trusted SIP Ini System Wide Settings Feature Settings System Maintenance Telephone Configuration User Configuration Call Distribution Groups PSTN Gateway Configuration NBX Messaging SIP Applications SIP Gateway Ar IP Messaging Server Virtual Connections Downloads Licensing and Upgrades Reports Network Management Country Settings Figura 3 32 Central Telefonica NBX Asignacion de Extensiones Y verificamos que se encuentre configurada la direcci n ip de nuestro servidor que es 200 6 86 4 99 NBX NetSet Windows Internet Explorer J restano geek eruten hrs GeV nbxdecclabwifi acom SIP Applications Trusted SIP Interfaces System Wide Settings EX Feature Settings E you to modify the g System Maintenance Telephone Configuration User Configuration Modify a Trus
37. 65 con capacidad de SIP Registered SIP 4410 at 190 154 89 139 port 1209 expires 3600 Saved useragent Nokia RM 208 3 0633 69 00 for peer 4410 Dentro de la consola de asterisk no cercioramos que las conexiones esten establecida con el comando voip CLI gt sip show peers espeexternos 200 6 80 232 5060 Unmonitored 94 4411 4411 Unspecified D 0 Unmonitored 4410 4410 190 154 89 139 D N 1209 Unmonitored Una vez registrado probamos que este funcionando el buz n de voz esto lo hacemos llamando a una extensi n que no este asignado un tel fono y los resultados se ver n de la siguiente manera den Figura 3 28 Consola Asterisk Llamado a una extensi n 1 95 EP rootgcentraltelefonicat CALLERID a11 Using Call NoOp SIP 44 iceMail SIP 441C 0 hangupcall c0002520 Figura 3 29 Consola Asterisk Llamado a una extensi n 2 Realizamos una llamada a un tel fono autentificado en la central 3COM BB rootgcentraltelefonicat den 53 CALLERID 11 4410 lt 4410 gt ising CallerID 4410 lt 44 SIP 4410 1 44101007 51 44 8930 RE 4410 USEROUTCID 4410 i SIP 4 EM N D 441 SIP 4410 00 TRUNKOUTCID GotoIf 4410 0 runkcid GotoIf SIP 4410 00b78d30 1 2usercid GotoIf SIP 4410 00b78d30 O report t SIP 4410 RID all GotoIf SIP 44 E 51 4410 00 78 E 441 GotoIf Dial SI Figura 3 3
38. 8 0 2 4 6 8 10 12 14 16 18 20 22 0 2 4 6 8 New TCP Connections Established TCP Connections 8 0 0 0 4 6 8 10 12 14 16 18 20 22 0 2 4 8 o 2 4 6 8 1 12 14 16 18 20 22 0 2 4 6 8 Figura 3 27 Sistema de Monitoreo Analisis de Paquetes 2 3 3 2 Pruebas Para iniciar el servicio se digita el siguiente comando root voip asterisk rvvvv Y se obtiene el siguiente mensaje en el momento que esta funcionando Asterisk 1 4 21 2 Copyright C 1999 2008 Digium Inc and others Created by Mark Spencer markster digium com Asterisk comes with ABSOLUTELY NO WARRANTY type core show warranty for details This is free software with components licensed under the GNU General Public License version 2 and other licenses you are welcome to redistribute it under certain conditions Type core show license for details 93 Parsing etc asterisk asterisk conf Found Parsing etc asterisk extconfig conf Found Connected to Asterisk 1 4 21 2 currently running on voip pid 18120 Verbosity is at least 4 voip CLI gt Una vez dentro de la consola podemos revisar las llamadas entre que contextos se hace la interconexi n y el resultado de la interconexi n esto quiere decir el estado de la llamada 3 3 2 1 Control del funcionamiento del servicio Registramos un tel fono en el servidor asterisk en este caso el tel fono ser un nokia E
39. 80 232 sec_cont dialplan editplan htm fe e x Archivo Edici n Ver Favoritos Herramientas Ayuda amp k ev NBX nbxdecclabwifi acom Dial Plan Configure Operations 177 Test Settings Modify Extensions Set Out Dial Prefixes m dh P gina G Herramientas System Wide Settings Feature Settings gt System Maintenance 2 Telephone Configuration gt User Configuration 1 Call Distribution Groups k PSTN Gateway Configuration e NBX Messaging SIP Applications p NBX Dial Plan Configuration File Dial Plan Generated from machine nbxdecclabwifi 200 6 80 232 owned by ESPE DECC Generated on MON DEC 15 20 42 15 2008 Virtual Connections Eba Downloads Licensing and Upgrades Reports First delete all existing dialplan information Network Management gt Country Settings p Table Delete DestinationRoute Delete TimedRoute Delete PreTranslator Delete Now create all dialplan information m 2 232 5ec_cont diallanyeditplen htm ET Y el plan de marcaci n debe estar configurado de la siguiente forma 149 ALLAN NBX Dial Plan Configuration File Generated from machine nbxdecclabwifi
40. AT problems 121 If Asterisk is on a public IP and the phone is inside of a NAT device you will need to configure nat option for those phones Also turn on qualify yes to keep the nat session open grandstream1 type friend context from sip Where to start in the dialplan when this phone calls callerid John Doe 1234 Full caller ID to override the phones config on incoming calls to Asterisk shost 192 168 0 23 we have a static but private IP address No registration allowed nat no there is not NAT between phone and Asterisk canreinvite yes allow RTP voice traffic to bypass Asterisk dtmfmode info either RFC2833 or INFO for the BudgeTone scall limit 1 permit only 1 outgoing call and 1 incoming call at a time from the phone to asterisk 1 for the explicit peer 1 for the explicit user remember that a friend equals 1 peer and 1 user in memory This will affect your subscriptions as well There is no combined call counter for a friend so there s currently no way in sip conf to limit to one inbound or outbound call per phone Use the group counters in the dial plan for that mailbox 1234 default mailbox 1234 in voicemail context default disallow all need to disallow all before we can use allow allow ulaw Note In user sections the order of codecs listed with allow does NOT matter allow alaw allow2g723 1 Asterisk only supports g723 1 pass thru allow2g729 P
41. Cuando el receptor levanta el tel fono el tel fono al que se llama env a una respuesta 200 OK e Fl tel fono llamante responde con un ACK confirmado e Ahora la conversaci n es transmitida como datos via RTP e Cuando la persona a la que se llama cuelga una solicitud BYE es enviada al tel fono llamante El tel fono llamante responde con un 200 OK Es tan simple como eso El protocolo SIP es f cil de entender y es l gico METODOS SOLICITUDES Y RESPUESTAS SIP SIP utiliza M todos Solicitudes y correspondientes Respuestas para establecer una sesi n de llamada Request Method Calling SIP Phone Receiving SIP Phone SIP Requests amp Responses in a SIP call Figura 2 9 Ilustraci n de solicitud y respuesta entre tel fonos SIP 34 Solicitudes SIP Hay seis tipos de m todos solicitudes e INVITE Establece una sesi n e Confirma una solicitud INVITE e BYE Finaliza una sesi n e CANCEL Cancela el establecimiento de una sesi n e REGISTER Comunica la localizaci n de usuario nombre de equipo IP e OPTIONS Comunica la informaci n acerca de las capacidades de env o y recepci n de tel fonos SIP Respuestas SIP Las solicitudes SIP son respondidas con respuestas SIP de las cuales hay 6 clases e xx respuestas informativas tal como 180 la cual significa tel fono sonando e 2xx respuestas de xito e 3xx respuestas de redirecci n e 4xx error
42. ESCUELA POLIT CNICA DEL EJ RCITO DEPARTAMENTO DE CIENCIAS DE LA COMPUTACI N CARRERA DE INGENIER A DE SISTEMAS E INFORM TICA IMPLEMENTACI N DE SERVICIOS SIP INTEGRADO AL SERVIDOR DE COMUNICACIONES 3COM NBX3000 DE LA ESCUELA POLIT CNICA DEL EJ RCITO Previa a la obtenci n del t tulo de INGENIERO DE SISTEMAS E INFORM TICA POR ILICH ALEXANDER ALMEIDA TORRES PABLO JAVIER JAMI TAPIA SANGOLQUI Enero de 2009 CERTIFICACI N Certifico que el presente trabajo fue realizado en su totalidad por los Sres Alexander Almeida T y Pablo Jami T como requerimiento parcial a la obtenci n del titulo de INGENIERO DE SISTEMAS E INFORM TICA SANGOLQU 08 de Enero del 2009 ING CRIST BAL ESPINOSA Profesor Director DEDICATORIA A Dios quien ha sido uno de mis pilares e inspiraci n en el desarrollo de este trabajo a mis padres quienes con su cari o gu a y experiencia han sido la base fundamental de mi formaci n como profesional pero principalmente como persona a mis hermanos que con su ejemplo me alientan a seguir cada vez mas super ndome en el plano profesional y en la vida misma a mi sobrino que con su presencia me brinda esa vitalidad y ganas de ser un ejemplo para mi familia a mi novia Amanda que con su amor y comprensi n me ha sabido guiar y dar la fortaleza necesaria en cada momento para no rendirme al resto de mi familia que nunca dejaron de creer en mi y me demuestran su cari o a cada instante a mis amigos
43. LOBAL TRUNK EXTEN GLOBAL TRUNKMSD trunkld gt Long distance context accessed through trunk exten gt 91INXXNXXXXXX Macro dundi e164 EXTEN 1 exten gt 91INXXNXXXXXX nDial GLOBAL TRUNK EXTEN GLOBAL TRUNKMSD trunklocal Local seven digit dialing accessed through trunk interface exten gt _INXXXXXX 1 Dial GLOBAL TRUNK EXTEN GLOBAL TRUNKMSD trunktollfree Long distance context accessed through trunk interface exten gt 91800NXXXXXX I Dial GLOBAL TRUNK EXTEN GLOBAL TRUNKMSD exten gt 91888NXXXXXX I Dial GLOBAL TRUNK EXTEN GLOBAL TRUNKMSD exten gt _91877NXXXXXX I Dial GLOBAL TRUNK EXTEN GLOBAL TRUNKMSD exten 2 91866NXXXXXX I Dial GLOBAL TRUNK EXTEN GLOBAL TRUNKMSD international Master context for international long distance ignorepat gt 9 include gt longdistance include gt trunkint longdistance Master context for long distance ignorepat gt 9 include gt local include gt trunkld local Master context for local toll free and iaxtel calls only ignorepat gt 9 include default include gt trunklocal include gt iaxtel700 include gt trunktollfree include gt iaxprovider Include parkedcalls or the context you define in features conf enable call parking include gt parkedcalls You can use an alternative switch type as well to resolve
44. NAT mode or RFC3581 support route Assume NAT don t send rport work around more UNIDEN bugs Y MEDIA HANDLING By default Asterisk tries to re invite the audio to an optimal path If there s reason for Asterisk to stay in the media path the media will be redirected This does not really work with in the case where Asterisk is outside and have clients on the inside of a NAT In that case you want to set canreinvite nonat canreinvite yes Asterisk by default tries to redirect the RTP media stream audio to go directly from the caller to the callee Some devices do not support this especially if one of them is behind a NAT The default setting is YES If you have all clients behind a NAT or for some other reason wants Asterisk to Stay in the audio path you may want to turn this off In Asterisk 1 4 this setting also affect direct RTP at call setup a new feature in 1 4 setting up the call directly between the endpoints instead of sending a re INVITE directrtpsetup yes Enable the new experimental direct RTP setup This sets up the call directly with media peer 2 peer without re invites Will not work for video and cases where the callee sends payloads and fmtp headers in the 200 OK that does not match the callers INVITE This will also fail if canreinvite is enabled when the device is actually behind NAT canreinvite nonat An additional o
45. NTRODDCCION SA E pe b bts AD n M 1 2 JUSTIFICACI N 2 3 HIPOTESI PIDE 3 AS OBJETIVOS eh raiak erat a er e er A eee ewe ara arien 4 4 1 OBJETIVO GENERAL iere inerte mne copo deci ine eR Nae eer eei oe EAE e E ANE EE e Enna deve asuy di 4 4 2 OBJETIVOS ESPECIFICO 0d ita 4 ALCANCE eet tt A A A iain tiniest 4 6 HERRAMIENTA mm 5 HESIETAN AAA AAE AAE E 5 8 SASSARI 5 BL FACTIBILIDAD seeders aila 6 8 2 FACTIBILIDAD OPERATIVA rss 6 CABIPULO EA 7 MARCO TE CO aldo 7 2 A IMtrOdU CC 7 2 2 Historia de la Tecnolog a SIP y del servicio de MOR 7 2 2 1 T rminos y Definiciones sr 7 2 2 2 DElIMit EIO lezoar aeta e peek en a 14 2 2 3 Origen de Asterisk rrr Red ee eere ep epp rines 14 2 2 4 Protocolos y Codecs uo t Al Ast eat eee ette a ett ent 19 IS aA 21 2 3 FUNCIONAMIENTO L EEE E ibe ara 22 2 3 1 Instalaci n y configuraci n de software en Linux 22 2 3 2 Caracter sticas destacadas del Protocolo SIE 22 V 2 3 2 Proceso de Comunicaci n y M todos SIE 28 2 3 3 Aplicaciones con uso de Protocolo SIP 36 2 3 4 Servidores MGterizk rss 39 2 3 5 Mensajer a d Voz menn eni et tu ES 40 2 4 TODOlOE c sitet p tet ed hip its 40 2 4 1 Protocolos SIP H3234 nn uae RR eU ncn Ani 40 2 4
46. OMP ERR 129 Voicemail eR a tia 143 ME Ale 148 Plan de udea 149 vii LISTADO DE FIGURAS Figura Pag Figura 2 1 Mark Spencer en el 2006 O Reilly Emerging Telephony Conference 24 Figura 2 2 Pantalla de plataforma del softphone X Lite 34 Figura 2 3 Pantalla de configuraci n de cuenta para el softphone X Lite 34 Figura 2 4 Telefono Virtual de 3CX 35 Figura 2 5 Telefono VoIP con USB 35 Figura 2 6 Telefono SIP basado en hardware 36 Figura 2 7 Adaptador ATA que permite que un tel fono anal gico se conecte a un sistema 37 VOIP Figura 2 8 Ilustracion de peticiones y respuestas generados en llamada SIP entre 2 Telefonos 42 Figura 2 9 Ilustraci n de solicitud y respuesta entre tel fonos SIP 43 Figura 2 10 Logotipos de Aplicaciones con uso de Protocolo SIP 45 Figura 2 4 Topologia 49 Figura 3 1 Pantallas de Instalacion Fedora 60 Figura 3 2 Pantallas de Instalacion Fedora 61 Figura 3 3 Pantallas de Instalacion Fedora 62 Figura 3 4 Pantallas de Instalacion Fedora 63 Figura 3 5 Pantallas de Instalacion Fedora 64 Figura 3 6 Pantallas de Instalacion Fedora 65 Figura 3 7 Pantallas de Instalacion Fedora 66 Figura 3 8 Pantallas de Instalacion Fedora 67 Figura 3 9 Pantallas de Instalacion Fedora 68 Figura 3 10 Pantallas
47. UCCI N Voz sobre IP conocida como VoIP Voice over Internet Protocol voz sobre el Protocolo Internet desde hace algunos a os ha venido revolucionando la telefon a debido a que utiliza el Internet como medio lo que abarata los costos de las llamadas realizadas Adem s a nivel de organizaciones se est migrando desde las centrales telef nicas con tecnolog a anal gica a centrales con tecnolog a digital y por ltimo a centrales basadas en software que permiten aumentar la funcionalidad de la misma a la vez de reducir costos La oferta de VoIP para consumidores se est expandiendo r pidamente y ahora incluye servicios tanto para clientes de telefon a fija como m vil Esta tecnolog a trabaja sobre varios protocolos que son los distintos lenguajes que utilizan los dispositivos VoIP entre los que tenemos H 323 Protocolo definido por la ITU T Megaco Tambi n conocido como H 248 y MGCP Protocolos de control SIP Protocolo definido por la IETF Skinny Client Control Protocol Protocolo propiedad de Cisco MiNet Protocolo propiedad de Mitel CorNet IP Protocolo propiedad de Siemens IAX Protocolo original para la comunicaci n entre PBXs Asterisk obsoleto Skype Protocolo propietario peer to peer utilizado en la aplicaci n Skype IAX2 Protocolo para la comunicaci n entre PBXs Asterisk en reemplazo de IAX Jingle Protocolo abierto utilizado en tecnolog a Jabber Para el desarrollo de nuestro
48. What language would you like to use during the installation process Polish polski Portuguese Portugu s Portuguese Brazilian Portugu s Brasil Punjabi s Romanian Russian Serbian cpncku Serbian Latin srpski latinica Sinhala Slovak Slovensky Slovenian sloven ina Spanish Espa ol Swedish Svenska j Figura 3 3 Pantallas de Instalacion 4 Seleccionamos idioma espa ol para el uso del teclado 53 fedora Seleccione el teclado apropiado para el sistema Dan s Dan s latin1 Devanagari Inscript Dvorak Esloveno Estonio Finland s Finland s latin1 Franc s Franc s latin1 Franc s latin9 Franc s pc Franc s Canadiense Franc s Suizo Atr s gt Siguiente Figura 3 4 Pantallas de Instalacion 5 Configuramos la conexi n de red debido a que nuestro proveedor tiene disponibilidad de asignarnos direcciones p blicas y con esto evitamos realizar NAT en la red de borde En ning n caso podemos trabajar con un cliente DHCP porque esto nos causar a muchas molestias y tendr amos que reconfigurar los par metros del servidor Asterisk la interconexi n en la central 3com y la configuraci n de los tel fonos Dispositivos de red Activar al inicio Dispositivo IPv4 M scara de red IPv6 Prefijo Modificar E eth0 DHCP Auto Nombre del Host Configurar el
49. a y no crear una escisi n entre ellos y los que los apoyan La primera Release fue Asterisk 0 1 y esta ocupaba tan s lo 124 3K que una vez descomprimido ven an a ser unos 506 KB en 96 archivos Para correr Asterisk necesit bamos b sicamente Linux y libaudiofile Metodolog a de Desarrollo del proyecto El modelo de desarrollo se basa en el uso del sistema de control de versiones Subversion y en un procedimiento de informe de errores denominado Asterisk Bug Tracker el cual cuenta a su vez con un sistema de m ritos denominado Karma en el que aparecen los colaboradores en un ranking de acuerdo con una puntuaci n positiva o negativa otorgada a los aportes que han realizado 16 Adem s se utilizan las habituales herramientas de este tipo de proyectos como listas de correo IRC o documentaci n on line Estructura organizativa actual del proyecto Mark Spencer es el organizador y principal desarrollador apoyado por un grupo de colaboradores que reciben el nombre de administradores Los administradores realizan principalmente labores de programaci n y control del software generado Existe tambi n un amplio grupo de programadores llamados managers que pueden aportar soluciones a errores documentados o crear nuevas funcionalidades Por ltimo est n los denominados reporters todos aquellos colaboradores que realizan informes sobre errores detectados Toda nueva funcionalidad es probada exhaustivamente antes de for
50. aba construyendo hardware open source Su primer proyecto fue construir una tarjeta T1 open source Estos ingresos les manten an a flote pero no recib an contribuciones de nadie y el resto tan solo tomaban sus disefios y manufacturaban tarjetas que compet an con las suyas Posteriormente Linux Support Services se convertir a en el 2002 en Digium redirigiendo sus objetivos al desarrollo y soporte de Asterisk 15 E dinero era escaso en Digium hasta que un d a un vendedor de DeltaCom una competitiva compafifa de comercio local entr para venderles a Mark y a Jim una TI Despu s de entender lo que Mark y Jim hab an hecho el vendedor se ofreci a ayudarles A partir de este punto empezaron a ver un incremento en las ventas y acabaron el con beneficios Despu s de grandes ingresos durante largo tiempo Mark fue capaz de hacer crecer el negoci sin recabar mucho en los beneficios Cuando Mark empez con Asterisk hizo una cosa muy inteligente Se le requer a firmar un acuerdo a cada desarrollador que contribu a en el c digo para que el copyright se asignara a Asterisk y el compromiso que no hay encumbramientos en el c digo contribuido Esto le permiti sentirse confortable con su proyecto que era completamente open source y que su compafi a podr a re licenciar el c digo a vendedores como 3COM y NTT Digium tambi n ha hecho las cosas bien al mantener la versi n de la comunidad con la funcionalidad complet
51. able substitution is done on the values below Supported values filename filename of a soundfile single ticks around the filename required VAR variable substitution Aora Day of week Saturday Sunday Borborh Month name January February dore numeric day of month first second thirty first I Year lorl Hour 12 hour clock H Hour 24 hour clock single digit hours preceded by oh k Hour 24 hour clock single digit hours NOT preceded by oh M Minute with 00 pronounced as o clock lt N Minute with 00 pronounced as hundred US military time Q today yesterday or ABdY i note not standard strftime value q for today yesterday weekday or ABdY note not standard strftime value R 24 hour time including minute Each mailbox is listed in the form lt mailbox gt lt password gt lt name gt lt email gt lt pager_email gt lt options gt if the e mail is specified a message will be sent when a message is received to the given mailbox If pager is specified a message will be sent there as well If the password is prefixed by then it is considered to be unchangeable Advanced options example is extension 4069 NOTE options can be expressed globally in the general section and overridden in the per mailbox settings unless listed otherwise tz central Timezone from zonemessages below Irrelevant if e
52. ableEntry Create 2 54 4 4 nternal 0 0 TableEntry Create 2 6 500 3 3Internal 0 3 TableEntry Create 2 7 55 4 4 Internal 0 3 Table Create 3 Least Cost Routing HIT I V IT T T Routes ALLAN Route Description EE ERR DestinationRoute Create 1 LocalCO DestinationRoute Create 2 LocalCONoStrip DestinationRoute Create 3 Voice Application DestinationRoute Create 4 Attendant DestinationRoute Create 5 H323 ConneXtions Ports DestinationRoute Create 8 8 Pool DestinationRoute Create 9 SIP Route Entry DestinationExtension DestinationRouteEntry Create 1 1 0001 153 DestinationRouteEntry Create 1 2 0002 DestinationRouteEntry Create 2 1 0001 DestinationRouteEntry Create 2 2 0002 DestinationRouteEntry Create 3 1 0003 DestinationRouteEntry Create 4 1 0004 DestinationRouteEntry Create 5 1 0005 DestinationRouteEntry Create 8 1 0008 DestinationRouteEntry Create 9 1 1002 Route Entry OperId Operation Value aa umur gen DestinationRouteOperation Create 1 1 1stripLead 1 DestinationRouteOperation Create 1 2 lstripLead 1 DestinationRouteOperation Create 8 1 1stripLead 1 ALLAN Pretranslators ALLAN PreTranslator Create 1 5Digit DDI 4Digit Internal PreTransId Entry Digits graues a PreTranslatorEntry Create 1 11 PreTranslatorEntry Create 1 22 PreTranslatorEntry Create 1 33 PreTranslatorEntry Create 1 44 PreTranslatorEntry Create 1 55 PreTranslatorEntry Create 1 66 154 PreTranslatorEntry Crea
53. aci n ha venido evolucionando de una manera muy fuerte que ha hecho que fabricantes como 3COM de arquitecturas muy cerradas integren asterisk en sus equipos El protocolo SIP abierto se puede unir varios sistemas como centrales telef nicas como es nuestro caso servidores asterisk softswitchs etc La escalabilidad crecimiento en numero de usuarios a bajos costos posibilidad de video conferencia conferencias etc de los sistemas de telefon a IP a trav s de SIP se beneficia ampliamente compensando servicios que carezcan ciertos sistemas como es el caso de la central 3COM NBX V3000 Los sistemas open source C digo abierto cuentan con soporte a trav s de foros preguntas en l nea o de sus mismos creadores que hace mas f cil la consecuci n de los mismos 108 4 2 Recomendaciones Se recomienda usar direcciones IPs p blicas para de esta manera poder acceder a la interconexi n con varios servidores desde cualquier parte sin necesidad de equipos adicionales como routers VPNs y dem s Para futuras implementaciones en la central 3COM se recomienda utilizar alg n equipo que permita hacer NAT con los tel fonos IP COM para optimizar las direcciones IPs p blicas Las actualizaciones de software en las centrales 3COM vienen acompa adas de upgrades mejoras actualizaciones de hardware como en el caso de nuestra implementaci n la actualizaci n al Release 6 0 59 para la central NBX que nos permitir a utiliza
54. acom News nine news 3Com Announces Senior Leadership New College of Florida Changes to Accelerate Global Business Plan More Replacing an aging unreliable and costly voice and data 3Com Vaults to 1 in China for Enterprise infrastructure with a 3Com secure converged network has Stackable Switches and Routers More enabled New College of Florida to increase IT services and significantly reduce expenses More Is the Strong Leader in Green Networking According to New Industry w Case S Research Report More View Worldwide Case Studies View All ews Articles PARTNER SPOTLIGHT Go G reen 1 I D Coin Corporation and Expand Networks have partnered to 3Com wins home PANI 2010028 WAN optimization tor 3cons Open Services ETT Networking strategy on the MSR Series Router platforms This mn nas Metworks tested and vaidated optimization solution solves the eratza network issues of congestion and latency on the WAN More for its customers in more ways then one 3 E dEl httpi jwww 3com comiproducts en US downloadsindex jsp Internet Figura 3 18 Configuracion de Central Telefonica Buscamos los paquetes a descargar Product Downloa Archivo Edici n Favoritos Herramientas Ayuda Qus Q x fb 2 S de a Direcci n E tttp Jlwww 3com comjproductsfen_USIresut jsp selected allssort efdt sku 3C1060058 rder desc V nculos Ger
55. ado para troncales entre centrales telef nicas IP desarrolladas por Asterisk 19 323 Fue disefiado con el objetivo principal de proveer a los usuarios con tele conferencias las cuales poseen capacidades de voz video y datos sobre redes de conmutaci n de paquetes El est ndar fue dise ado espec ficamente con los siguientes objetivos Basarse en los est ndares existentes incluyendo H 320 RTP y Q 931 Incorporar algunas de las ventajas que las redes de conmutaci n de paquetes ofrecen para transportar datos en tiempo real Solucionar la problem tica que plantea el env o de datos en tiempo real sobre redes de conmutaci n de paquetes Los disefiadores de H 323 lo definieron de tal manera que las empresas que manufacturan los equipos pueden agregar sus propias especificaciones al protocolo y pueden definir otras estructuras de est ndares que permiten a los dispositivos adquirir nuevas clases de caracter sticas o capacidades SIP Es el m s difundido y dominante SIP Session Initiation Protocol es un protocolo de sefializaci n para conferencia telefon a presencia notificaci n de eventos y mensajer a instant nea a trav s de Internet El prop sito de SIP es la comunicaci n entre dispositivos multimedia SIP hace posible esta comunicaci n gracias a dos protocolos que son RTP y SDP El protocolo se usa para transportar los datos de voz en tiempo real de la misma forma que para el protocolo H323 m
56. alink USB handset USB PIK y al mismo tiempo hacer innecesarios el teclado y monitor del computador e Twinkle SIP softphone Windows e lvideoConference Web Audio Video tel fono Usuarios Skype Msn y Yahoo pueden participar en conferencias Web sin largas descargas ni complicadas instalaciones SIP Proxies e Open Source SIP Creado en Marzo 2006 auspiciado por Solegy producto de cerca de 6 a os de investigaci n y desarrollo 37 e Partysip Aplicaci n modular Puede ser usada como SIP registrar SIP servidor de redirecci n o servidor completo e MjSip Implementaci n SIP completamente en Java que provee una API para el protocolo MjSip incluye todas las clases y m todos para la creaci n de aplicaciones basadas en SIP e OpenSER Proyecto de c digo abierto que permite desarrollar un robusto y escalable servidor SIP e SIP Express Router De alto rendimiento configurable y gratuito servidor SIP Este act a como registrar proxy o servidor de redirecci n Basado en Web e Siproxd Proxy y enmascarador para protocolo SIP que maneja registraciones de clientes SIP en una red IP privada Permite a los clientes SIP trabajar detr s de un firewall o router con IPs enmascaradas Clientes SIP en tel fonos m viles Los celulares Nokia de ltima generaci n tales como los Nokia N80 Edici n de Internet E65 N95 entre otros tienen integrados clientes SIP que pueden ser configurados para trabajar con
57. allee Dial via jingle using labels 138 exten gt 6391 1 Dial JINGLE asterisk digium com mogorman astjab org Dial via jingle using asterisk as the transport and calling mogorman exten gt 6394 1 Dial Local 6275 n this will dial MARK exten gt 6275 1 Macro stdexten 6275 MARK assuming MARK is something like Zap 2 exten gt mark 1 Goto 627511 alias mark to 6275 exten gt 6536 1 Macro stdexten 6236 WIL Ditto for wil exten gt wil 1 Goto 623611 If you want to subscribe to the status of a parking space this is how you do it Subscribe to extension 6600 in sip and you will see the status of the first parking lot with this extensions help exten gt 6600 hint park 701 parkedcalls exten gt 6600 1 noop Some other handy things are an extension for checking voicemail via voicemailmain exten gt 8500 1 VoicemailMain exten gt 8500 n Hangup gt Or a conference room you ll need to edit meetme conf to enable this room exten gt 8600 1 Meetme 1234 gt Or playing an announcement to the called party as soon it answers exten 8700 1 Dial MARK 30 A path to my announcemsg For more information on applications just type core show applications at your friendly Asterisk CLI prompt core show application lt command gt will show details of how you use that particular application in this file the dial plan core show functions
58. ando mucho espacio en el area Cisco est progresivamente adoptando SIP como protocolo en sus sistemas de telefon a IP Microsoft ha eligido SIP como protocolo para su nuevo OCS Office Communication Server y los operadores de m vil y fijo tambi n est n implantando SIP aprovechando la escalabilidad y interoperabilidad que nos proporciona el protocolo SIP Funciones SIP Se enumeran las m s importantes a continuaci n Localizaci n de usuarios SIP proporciona soporte para la movilidad Capacidades de usuario SIP permite la negociaci n de par metros Disponibilidad del usuario Establecimiento y mantenimiento de una sesi n El protocolo SIP permite la interacci n entre dispositivos cosa que se consigue con distintos tipos de mensajes propios del protocolo Dichos mensajes proporcionan capacidades para registrar y o invitar un usuario a una sesi n negociar los par metros de una sesi n establecer una comunicaci n entre dos a m s dispositivos y finalizar sesiones Beneficios del protocolo SIP frente otros protocolos En la actualidad los protocolos m s usados en VoIP son SIP H 323 y IAX2 41 H 323 es un est ndar de la ITU que provee especificaciones para ordenadores sistemas y servicios multimedia por redes que no proveen QoS calidad de servicio Como principales caracter sticas de H 323 tenemos Implementa QosS de forma interna Control de conferencias IAX2 Inter Asterisk
59. app For the directory you can override the intro file if you want directoryintro dir intro The character set for voicemail messages can be specified here charset ISO 8859 1 The ADSI feature descriptor number to download to adsifdn 0000000F The ADSI security lock code adsisec 9BDBF7AC The ADSI voicemail application version number adsiver 1 Skip the PBX string from the message title pbxskip yes Change the From string fromstring Asterisk 3COM ESPE Permit finding entries for forward compose from the directory susedirectory yes Voicemail can be stored in a database using the ODBC driver The value of odbcstorage is the database connection configured in res_odbc conf odbcstorage asterisk The default table for ODBC voicemail storage is voicemessages odbctable voicemessages Change the from body and or subject variables VM NAME VM DUK VM_MSGNUM VM MAILBOX VM CALLERID VM_CIDNUM VM CIDNAME VM DATE Note The emailbody config row can only be up to 512 characters due to a limitation in the Asterisk configuration subsystem emailsubject ESPE Nuevo mensaje desde VM_MSGNUM al numero VM MAILBOX The following definition is very close to the default but the default shows just the CIDNAME if it is not null otherwise just the CIDNUM or an unknown caller if they are both null emailbody Mensaje VM_MSGNUM n nEstimado VM_NAME n n tQueremos info
60. aptel Descomprimimos el archivo de instalaci n de ZAPTEL tomando en cuenta que tenga la misma versi n de Asterisk root voip src tar zxvf zaptel 1 4 12 1 tar gz root voip cd zaptel 1 4 12 1 root voip zaptel 1 4 12 1 root voip zaptel 1 4 12 1 make clean root voip zaptel 1 4 12 1 make root voip zaptel 1 4 12 1 make install Instalamos libpri y addons que nos ayuda a interconexiones virtuales y caracter sticas especiales como pruebas de eco reloj etc root voip src tar zxvf libpri 1 4 7 tar gz root voip src cd libpri 1 4 7 root voip libpri 1 4 7 make clean root voip libpri 1 4 7 make root voip libpri 1 4 7 make install root voip libpri 1 4 7 make 77 root voip src tar zxvf asterisk addons 1 6 0 rc1 tar gz root voip asterisk addons 1 6 0 rc1 make clean root voip asterisk addons 1 6 0 rc1 configure root mail asterisk addons 1 6 0 rc1 make root voip asterisk addons 1 6 0 rc1 make install root voip asterisk addons 1 6 0 rc1 make samples 3 2 2 3 Instalaci n de codecs de audio Para su instalaci n necesitamos descargar los codecs en la carpeta usr lib asterisk modules Los codecs tiene la extensi n de archivos so Los descargamos utilizando la funci n wget tomando en cuenta la versi n de nuestro sistema operativo la arquitectura y la versi n de asterisk wget http asterisk hosting lv bin codec g723
61. ara un usuario de su dominio y entonces se vale de la informaci n de registraci n de dicho usuario para establecer su ubicaci n f sica Si la encuentra entonces encamina la petici n hacia dicha direcci n El agente de usuario destino si se encuentra desocupado comenzar a alertar al usuario destino y env a una respuesta hacia el usuario originante con un c digo de estado que indica esta situaci n 180 en este caso La respuesta sigue el camino inverso hacia el originante Cuando el usuario destino finalmente acepta la invitaci n se genera una respuesta con un c digo de estado el 200 que indica que la petici n fue aceptada La recepci n de la respuesta final es confirmada por el UAC originante mediante una petici n con el m todo ACK de Acknowledgement esta petici n no genera respuestas y completa la transacci n de establecimiento de la sesi n Normalmente la petici n con el m todo INVITE lleva un cuerpo donde viaja una descripci n de la sesi n que quiere establecer esta descripci n es realizada con el protocolo SDP 6 En ella se indica el tipo de contenido a intercambiar voz video etc y sus caracter sticas c decs direcciones puertos donde se espera recibirlos velocidades de transmisi n etc Esto se conoce como oferta de sesi n SDP La respuesta a esta oferta viaja en este caso en el cuerpo de la respuesta definitiva a la petici n con el m todo INVITE La misma contiene la descripci n de la sesi n de
62. ass thru only unless 2729 license obtained callingpres allowed passed screen Set caller ID presentation See doc callingpres txt for more information xlitel Turn off silence suppression in X Lite Transmit Silence YES Note that Xlite sends NAT keep alive packets so qualify yes is not needed type friend sregexten 1234 When they register create extension 1234 callerid Jane Smith lt 5678 gt shost dynamic This device needs to register snat yes X Lite is behind a NAT router canreinvite no Typically set to NO if behind NAT disallow all allow gsm GSM consumes far less bandwidth than ulaw allow ulaw allow alaw mailbox 1234 default 1233 Q default Subscribe to status of multiple mailboxes snom type friend Friends place calls and receive calls context from sip Context for incoming calls from this user secret blah subscribecontext localextensions Only allow SUBSCRIBE for local extensions slanguage de Use German prompts for this user shost dynamic This peer register with us 122 dtmfmode inband Choices are inband rfc2833 or info defaultip 192 168 0 59 IP used until peer registers smailbox 1234 context 2345 Mailbox es for message waiting indicator subscribemwi yes Only send notifications if this phone subscribes for mailbox notification vmexten voicemail dialplan extension to reach mailbox sets the Message Account in the MWI notify message defa
63. asterisk serveremail asterisk linux support net Should the email contain the voicemail as an attachment attach yes Maximum number of messages per folder If not specified a default value 100 is used Maximum value for this option is 9999 maxmsg 100 Maximum length of a voicemail message in seconds maxmessage 180 Minimum length of a voicemail message in seconds for the message to be kept The default is no minimum minmessage 3 Maximum length of greetings in seconds maxgreet 60 How many milliseconds to skip forward back when rew ff in message playback skipms 3000 How many seconds of silence before we end the recording maxsilence 10 Silence threshold what we consider silence the lower the more sensitive silencethreshold 128 Max number of failed login attempts maxlogins 3 User context is where entries from users conf are registered The default value is default 143 suserscontext default If you need to have an external program i e usr bin myapp called when a voicemail is left delivered or your voicemailbox is checked uncomment this It can also be set to smdi to use smdi for external notification If it is smdi smdiport should be set to a valid port as specified in smdi conf externnotify usr bin myapp smdiport dev ttySO If you need to have an external program i e usr bin myapp called when a voicemail password is changed uncomment this externpass usr bin my
64. ate 1 20 9101 9 64 AlternateLong 0 1 151 TableEntry Create 1 21 911 3 3 Emergency 0 2 TableEntry Create 1 22 91800 12 12 TollFree 0 1 TableEntry Create 1 23 91888 12 12 TollFree 0 1 TableEntry Create 1 24 91877 12 12 TollFree 0 1 TableEntry Create 1 25 91866 12 12 TollFree 0 1 TableEntry Create 1 26 91855 12 12 TollFree 0 1 TableEntry Create 1 27 91900 12 12 Toll 0 1 TableEntry Create 1 28 91976 12 12 Toll 0 1 TableEntry Create 1 30 9411 4 4 Operator 0 1 TableEntry Create 1 32 8 8 8 Local 0 8 TableEntry Create 1 33 80 2 64 Operator 0 8 TableEntry Create 1 34 801 4 64 International 0 8 TableEntry Create 1 35 81 9 12LongDistance 0 8 TableEntry Create 1 36 8101 9 64 AlternateLong 0 8 TableEntry Create 1 37 81800 12 12 TollFree 0 8 TableEntry Create 1 38 81888 12 12 TollFree 0 8 TableEntry Create 1 39 81877 12 12 TollFree 0 8 TableEntry Create 1 40 81866 12 12 TollFree 0 8 TableEntry Create 1 41 81855 12 12 TollFree 0 8 TableEntry Create 1 42 81900 12 12 Toll 0 8 TableEntry Create 1 43 81976 12 12 Toll 0 8 TableEntry Create 1 44 8911 4 4 Emergency 0 8 TableEntry Create 1 45 8411 4 4 Operator 0 8 TableEntry Create 1 46 8 4 4 COCode 0 8 TableEntry Create 1 47 7001 4 4 nternal 0 9 Table Create 2 Incoming 4 Digit DID and Auto At Id Entry Digits Min Max Class Prio Route 152 TableEntry Create 2 1 0 1 1 Internal 0 4 TableEntry Create 2 2 1 4 4 Internal 0 0 TableEntry Create 2 32 4 4 Internal 0 0 TableEntry Create 2 4 3 4 4 nternal 0 0 T
65. avior with pre 1 2 releases of Asterisk Individual applications can also be requested to do this by passing a j option in their arguments priorityjumping yes User context is where entries from users conf are registered The default value is default suserscontext default You can include other config files use the include command without the Note that this is different from the include command that includes contexts within other contexts The include command works in all asterisk configuration files include filename conf The Globals category contains global variables that can be referenced in the dialplan with the GLOBAL dialplan function GLOBAL VARIABLE GLOBAL VARIABLE or text GGOBAL V ARIABLE or any hybrid Unix Linux environmental variables can be reached with the ENV dialplan function ENV VARIABLE globals CONSOLE Console dsp Console interface for demo CONSOLE Zap 1 CONSOLE Phone phoneO IAXINFO guest IAXtel username password sSIAXINFO myuser mypass TRUNK Zap G2 Trunk interface Note the G2 in the TRUNK variable above It specifies which group defined in zapata conf to dial i e group 2 and how to choose a channel to use in the specified group The four possible options are g select the lowest numbered non busy Zap channel aka ascending sequential hunt group G select the highest numbered non busy Zap channel
66. bling DNS SR V lookups disables the ability to place SIP calls based on domain names to some other SIP users on the Internet Set default domain for this host If configured Asterisk will only allow INVITE and REFER to non local domains Use sip show domains to list local domains Enable checking of tags in headers international character conversions in URIs and multiline formatted headers for strict SIP compatibility defaults to no See doc ip tos txt for a description of these parameters tos sip cs3 Sets TOS for SIP packets 112 tos audio ef Sets TOS for RTP audio packets tos video af41 Sets TOS for RTP video packets maxexpiry 3600 Maximum allowed time of incoming registrations and subscriptions seconds minexpiry 60 Minimum length of registrations subscriptions default 60 defaultexpiry 120 Default length of incoming outgoing registration tl min 100 Minimum roundtrip time for messages to monitored hosts Defaults to 100 ms notifymimetype text plain Allow overriding of mime type in MWI NOTIFY checkmwi 10 Default time between mailbox checks for peers buggymwi no Cisco SIP firmware doesn t support the MWI RFC fully Enable this option to not get error messages When sending MWI to phones with this bug vmexten voicemail dialplan extension to reach mailbox sets the Message Account in the MWI notify message defaults to asterisk disallow all
67. carpeta en la que descargaremos todos los paquetes requeridos mkdir downloads Descargamos la distribuci n 1 4 de Asterisk de la p gina oficial wget http www digium com elqNow elqRedir htm ref http downloads digium com pub asterisk relea ses asterisk 1 4 0 rc4 tar g Se requieren los siguientes paquetes para la operaci n de Asterisk Ncurses 74 e Openssl e Zlib e Bison Verificamos los paquetes requeridos de la siguiente manera rpm qa lgrep ncurses ncurses 5 6 16 20080301 fc9 x86_64 ncurses libs 5 6 16 20080301 fc9 1386 ncurses devel 5 6 16 20080301 fc9 x86 64 ncurses base 5 6 16 20080301 fc9 x86 64 ncurses libs 5 6 16 20080301 fc9 x86 64 rpm qa lgrep openssl openssl devel 0 9 8g 6 fc9 x86 64 openssl 0 9 8g 6 fc9 x86 64 rpm qa lgrep zlib Zlib 1 2 3 18 fc9 x86 64 75 zlib devel 1 2 3 18 fc9 x86 64 jzlib 1 0 7 5jpp 1 x86 64 rpm qa lgrep bison bison 2 3 5 fc9 x86 64 Para iniciar la instalaci n debemos ejecutar lo siguiente root voip cp downloads asterisk 1 4 0 rc4 tar gz root voip Jffusr local src root voip ftar zxvf asterisk 1 4 0 rc4 tar gz root voip cd asterisk 1 4 0 rc4 root voip configure root voip make root voip fmake install root voip fmake samples root voip make config Tomando en cuenta que con los paquetes instalados anteriormente no nos despliegue ning n error 76 3 2 2 2 Instalaci n de Z
68. complejo Es suficiente decir que la mayor a de las conversiones se basan en la modulaci n codificada mediante pulsos PCM o variaciones Adem s de la ejecuci n de la conversi n de anal gico a digital el CODEC comprime la secuencia de datos y proporciona la cancelaci n del eco La compresi n de la forma de onda representada puede permitir el ahorro del ancho de banda Esto es especialmente interesante en los enlaces de poca capacidad y permite tener un mayor n mero de conexiones de VoIP simult neamente Otra manera de ahorrar ancho de banda es el uso de la supresi n del silencio que es el proceso de no enviar los paquetes de la voz entre silencios en conversaciones humanas En el Anexo Tabla de Codecs de Audio se muestra una tabla resumen con los codecs m s utilizados actualmente y sus caracter sticas 43 2 5 Interconexi n 2 5 1 Configuraci n de archivos etc asterisk sip config En este archivo definimos las caracter sticas SIP y otras para cada una de las extensiones definiendo las caracter sticas necesarias para la misma continuaci n se presenta un ejemplo de la definici n de caracter sticas de una extensi n 4417 type friend context espevoip secret 123456 host dynamic nat yes dtmfmode rfc2833 username 4417 call limit 3 disallow all allow g723 1 allow g729 allow gsm 44 allow alaw allow ulaw allow h263 allow h263p progressinband yes mailbo
69. cualquier servicio SIP nativamente desde el tel fono Los dem s celulares que no cuentan con este servicio pero que si le podemos instalar cuentan con aplicaciones como Fring el cual soporta comunicaci n con servicios SIP como Gizmo VoipStunt VoipDiscount VoipCheap NetAppel VoipBuster etc Aplicaciones m viles m s populares 38 Gimo Uno de las aplicaciones SIP m s populares Disponible en muchas plataformas incluyendo Windows Mac Linux y Symbian Serie60 Hay una aplicaci n Java disponible en Gizmo5 com Aunque recomiendan utilizar en su lugar la aplicaci n nativa de Gizmo que puedes descargar de la p gina de Nokia Truphone Truphone suele ser la aplicaci n de VoIP favorita ya que entre otras ventajas se integra f cilmente con la agenda personal del m vil Otra de las ventajas es que permite cambiar entre diferentes redes autom ticamente as como utilizar la conexi n Wifi o 3G seg n la cobertura EQO Es capaz de utilizar la red GSM para realizar una llamada VoIP por lo que puedes recibir llamadas VoIP y en el caso de que no tengas cobertura Wifi o 3G recibir s una llamada GSM Adem s de esta ventaja permite mensajer a instant nea IM como MSN Yahoo y GoogleTalk Skype El cliente de VoIP tan popular de PC ahora ya est disponible para m viles con Symbian Fring Tiene todas las ventajas que se han dicho en las anteriores aplicaciones adem s de ser compatible con Skype ICQ permitir roamin
70. depending on Asterisk s best guess This is the default If autofallthrough is not set then if an extension runs out of things to do Asterisk will wait for a new extension to be dialed this is the original behavior of Asterisk 1 0 and earlier autofallthroughzno If clearglobalvars is set global variables will be cleared and reparsed on an extensions reload or Asterisk reload If clearglobalvars is not set then global variables will persist through reloads and even if deleted from the extensions conf or one of its included files will remain set to the previous value NOTE A complication sets in if you put your global variables into the AEL file instead of the extensions conf file With clearglobalvars set a reload will often leave the globals vars cleared because it is not unusual to have extensions conf which will have no globals load after the extensions ael file where the global vars are stored So with reload in this particular situation first the AEL file will clear and then set all the global vars then later when the extensions conf file is loaded the global vars are all cleared and then not set because they are not stored in the extensions conf file 129 clearglobalvars no If priorityjumping is set to yes then applications that support jumping to a different priority based on the result of their operations Will do so this is backwards compatible beh
71. direcciones SIP usando DNS Domain Name Server as llaman a otros usuarios SIP salt ndose la red telef nica con lo que un proveedor de servicio normalmente act a de camino hacia la red p blica conmutada de telefon a para los n meros de tel fono tradicionales cobrando el uso de la red Hoy en d a ya son habituales los terminales con soporte SIP por software Microsoft Windows Messenger usa SIP y en Junio de 2003 Apple Computer anunci y public en fase beta su iChat una nueva versi n compatible con el AOL Instant Messenger que soporta charlas de audio y v deo a trav s de SIP SIP tambi n requiere proxy y elementos de registro para dar un servicio pr ctico Aunque dos terminales SIP puedan comunicarse sin intervenci n de infraestructuras SIP raz n por la que el protocolo se define como punto a punto este enfoque es impracticable para un servicio p blico Hay varias implementaciones de softswitch que pueden actuar como proxy y elementos de registro TELEFONOS SIP Los tel fonos SIP son lo mismo que los tel fonos VoIP o los tel fonos basados en software soft phones Estos son tel fonos que permiten hacer llamadas utilizando tecnolog a VoIP voice over internet protocol de voz sobre internet 23 Hay dos tipos de tel fonos SIP e Tel fonos SIP basados en hardware el cual es similar a un tel fono tradicional pero el cual pude hacer y recibir llamadas utilizando Internet en vez del sistema PSTN trad
72. e Como Proxy encaminando el mensaje hacia su destino e Como Redirector Redirect generando una respuesta que indica al origen la direcci n del destino o de otro servidor que lo acerque al destino La principal diferencia es que el servidor proxy queda formando parte del camino entre el UAC y el los UAS mientras que el servidor de redirecci n una vez que indica al UAC c mo encaminar el mensaje ya no interviene m s Un mismo servidor puede actuar como Redirector o como Proxy dependiendo de la situaci n Formato de los mensajes Los mensajes que se intercambian en el protocolo SIP pueden ser peticiones o respuestas Las peticiones tienen una l nea de petici n una serie de encabezados y un cuerpo En la l nea de petici n se indica el prop sito de la petici n y el destinatario de la petici n 30 Las peticiones tienen distintas funciones El prop sito de una petici n est determinado por lo que se denomina el M todo Method de dicha petici n que no es m s que un identificador del objetivo que la petici n tiene En la RFC 3261 se definen los m todos b sicos del protocolo Existen otros m todos definidos en extensiones al protocolo SIP Las respuestas tienen una l nea de respuesta una serie de encabezados y un cuerpo En la l nea de respuesta se indica el c digo de estado de la respuesta que es un n mero indica el resultado del procesamiento de la petici n Los encabezados de peticiones y respu
73. e marcaciones que pueda acoger a usuarios docentes administrativos y estudiantes Acoplara nuevos servicios que permitan configurar cuartos de conferencia consulta de buz n de correo v a Web y recepci n de mensajes por Correo Electr nico 6 HERRAMIENTAS Un computador con sistema operativo Linux que en nuestro caso ser Linux Fedora core 6 Actualizaci n 6ta de 3com Archivos de instalaci n de Asterisk Codecs para la reproducci n del sonido v V Vv Codecs g723 y g729 para la posible incorporaci n de tel fonos SIP 7 METODOLOG A Se utilizar una metodolog a que parte de la recopilaci n de informaci n de ejemplos de servidores de telefon a IP 8 FACTIBILIDAD 8 1 FACTIBILIDAD T CNICA Para el desarrollo de este trabajo de investigaci n existen varias fuentes de informaci n siendo la m s importante el Internet que re ne soluciones a problemas ya detectados durante la creaci n de servidores y servicios similares 8 2 FACTIBILIDAD OPERATIVA Debido al previo funcionamiento de un servidor de telefon a IP con protocolo H323 con variaciones propietarias por parte del fabricante que lo convierte en un protocolo cerrado se cuenta con el apoyo y auspicio de la UTIC para el desarrollo del sistema planteado Ya que se conseguir al final de este proyecto pasar de un sistema cerrado a un sistema abierto de comunicaciones CAP TULO II MARCO TE RICO 2 1 Introducci n 2 2 Histor
74. eXchange es un protocolo creado y estandarizado por Asterisk Unas de sus principales caracter sticas son Media y se alizaci n viajan en el mismo flujo de datos Trunking Cifrado de datos SIP un protocolo cada d a m s s lido Ventajas mas importantes son El control de llamadas es stateless o sin estado y proporciona escalabilidad entre los dispositivos telef nicos y los servidores SIP necesita menos ciclos de CPU para generar mensajes de se alizaci n de forma que un servidor podr manejar m s transacciones Una llamada SIP es independiente de la existencia de una conexi n en la capa de transporte SIP soporta autentificaci n de llamante y llamado mediante mecanismos HTTP Autenticaci n criptogr fica y encriptaci n son soportados salto a salto por SSL TSL pero SIP puede usar cualquier capa de transporte o cualquier mecanismo de seguridad de HTTP como SSH o S HTTP Un proxy SIP puede controlar la se alizaci n de la llamada y puede bifurcar a cualquier n mero de dispositivos simult neamente 2 4 2 Codecs de audio en telefon a IP La comunicaci n de voz es anal gica mientras que la red de datos es digital El proceso de convertir ondas anal gicas a Informaci n digital se hace con un codificador decodificador el CODEC Hay muchas maneras de transformar una se al de voz anal gica todas ellas gobernadas por varios est ndares El proceso de la conversi n es
75. es de solicitud e 5xx errores de servidor e 6xx errores globales Note la similitud con HTTP La belleza de SIP est en su claridad y simplicidad 35 2 3 3 Aplicaciones con uso de Protocolo SIP Ko OrensbC yat zm QWENGO c3liweaver voice onix F come Bre Asterisk trixbex Fresswitcu Die Twinkle Figura 2 10 Logotipos de Aplicaciones con uso de Protocolo SIP Clientes SIP User Agents Multi Platform SFLphone Desarrollado en Linux pero fue exportado a otras plataformas Linphone Cliente VoIP con voz video y mensajer a de texto instant nea Estable en Linux y ha sido reportado su funcionamiento con FreeBSD y OpenBSD Minisip Desarrollado por estudiantes de Doctorado y Masterado de Royal Institute of Technology KTH Stockholm Sweden Corre sobre multiples sistemas operativos como Linux PC Linux familiar IPAQ PDA Windows XP and son Windows Mobile 2003 SE 36 e OpenWengo Softphone integrable con contactos IM Disponible para Linux MacOSX and Windows e PhoneGaim Viene incluido con port tiles Linspire e sipXtapi Librer as de cliente y software development kit SDK para SIP Disponible para Linux MacOSX and Windows e OpenZoep Desarrollado por Voipster Softphone y mensajer a instant nea Soporta P2P Linux e Cockatoo Proyecto la implementaci n de SIP SIMPLE e YeaPhone El objetivo de este es funcionar conjuntamente con Ye
76. espe3com include gt conferencia include gt coriparstun include gt coripar include gt grupocoripar include gt zte include gt espeexternos coriparstun exten gt 96011XX 1 Dial SIP EXTEN 200 6 86 3 30 Ttr include gt espevoip coripar exten gt 4901 XXX L Dial SIP EXTEN I 9 200 6 81 68 30 Ttr include gt espevoip grupocoripar exten gt 4902XXX 1 Dial SIP EXTEN 200 6 86 4 30 Ttr include gt espevoip zte exten gt _26011XX 1 Dial SIP EXTEN 66 165 169 100 30 Ttr include gt espevoip 140 espeexternos exten gt _10XX 1 Dial SIP EXTEN 200 6 80 232 30 Ttr include gt espevoip casillerosvoz exten 9810 1 Ringing exten gt 9810 2 Wait 2 exten gt 9810 3 Authenticate 2222 exten gt 9810 4 VoicemailMain s98 10 exten gt 9811 1 Ringing exten gt 9811 2 Wait 2 exten gt 9811 3 Authenticate 2222 exten gt 9811 4 VoicemailMain s9811 exten gt 9812 1 Ringing exten gt 9812 2 Wait 2 exten gt 9812 3 Authenticate 2222 exten gt 9812 4 VoicemailMain s9812 exten gt 9813 1 Ringing exten gt 9813 2 Wait 2 exten gt 9813 3 Authenticate 2222 exten gt 9813 4 VoicemailMain s98 13 exten gt 4510 1 Ringing exten gt 4510 2 Wait 2 exten gt 4510 3 Authenticate 2222 exten gt 4510 4 VoicemailMain s4510 exten gt 4511 1 Ringing exten gt 4511 2 Wait 2 exten gt 4511 3 Authe
77. estas se utilizan para diversas funciones del protocolo relacionadas con el encaminamiento de los mensajes autenticaci n de los usuarios entre otras La extensibilidad del protocolo permite crear nuevos encabezados para los mensajes agregando de esta manera funcionalidad E cuerpo de los mensajes es opcional y se utiliza entre otras cosas para transportar las descripciones de las sesiones que se quieren establecer utilizando la sintaxis del protocolo SDP Flujo de establecimiento de una sesi n El flujo t pico para el establecimiento de una sesi n mediante el protocolo SIP es el siguiente en este ejemplo todos los servidores act an como proxy Un usuario ingresa la direcci n l gica de la persona con la que quiere comunicarse puede indicar al terminal tambi n las caracter sticas de las sesi n que quiere establecer voz voz y video etc o estas pueden estar implicitas por el tipo de terminal del que se trate El agente de usuario SIP que reside en el terminal actuando como UAC env a la petici n en este caso con el m todo INVITE al servidor que tiene configurado Este servidor se vale 31 del sistema DNS para determinar la direcci n del servidor SIP del dominio del destinatario El dominio lo conoce pues es parte de la direcci n l gica del destinatario Una vez obtenida la direcci n del servidor del dominio destino encamina hacia all la petici n El servidor del dominio destino establece que la petici n es p
78. et md5secret md5secret dtmfmode dtmfmode canreinvite canreinvite nat nat callgroup callgroup pickupgroup pickupgroup 119 language language allow allow disallow disallow insecure insecure trustrpid trustrpid progressinband progressinband promiscredir promiscredir useclientcode useclientcode accountcode accountcode setvar setvar callerid callerid amaflags amaflags call limit call limit allowoverlap allowoverlap allowsubscribe allowsubscribe allowtransfer allowtransfer subscribecontext subscribecontext videosupport videosupport maxcallbitrate maxcallbitrate rfc2833compensate mailbox t38pt_usertpsource username template fromdomain regexten fromuser host port qualify defaultip i rtptimeout rtpholdtimeout I sendrpid i outboundproxy rfc2833compensate sip_proxy t38pt_usertpsource For Incoming calls only Example FWD Free World Dialup We match on address of the proxy for incoming calls Since we can not type peer match on username caller id context from fwd shost fwd pulver com coriparstun type peer context espevoip host 200 6 86 3 allow g723 1 allow g729 allow ulaw allow alaw grupocoripar type peer context espevoip host 200 6 86 4 allow g723 1 allow g729 120 allow ulaw allow alaw coripar type peer context espevoip host 200 6 81 68 allow g723 1 allow
79. evious priority plus one regardless of whether the previous priority was associated with the current extension or not The priority same or s means the same as the previously specified priority again regardless of whether the previous entry was for the same extension Priorities may be immediately followed by a plus sign and another integer to add that amount most useful with s or n Priorities may then also have an alias or label in parenthesis after their name which can be used in goto situations Contexts contain several lines one for each step of each extension which can take one of two forms as listed below With the first form being preferred context exten gt someexten priorityllabel l offset alias application arg 1 2 exten gt someexten priorityllabel l offset alias application argl larg2 Included Contexts One may include another context in the current one as well optionally with a date and time Included contexts are included in the order they are listed The reason a context would include other contexts is for their extensions The algorithm to find an extension is recursive and works in this fashion first given a stack on which to store context references push the context to find the extension onto the stack a Try to find a matching extension in the context at the top of the stack and if found
80. from the configuration until requested again If set to an integer friends expire within this number of seconds instead of the registration interval gnoreregexpire yes Enabling this setting has two functions For non realtime peers when their registration expires the information will not be removed from memory or the Asterisk database if you attempt to place a call to the peer the existing information Will be used in spite of it having expired For realtime peers when the peer is retrieved from realtime storage the registration information will be used regardless of whether it has expired or not if it expires while the realtime peer is still in memory due to caching or other reasons the information will not be removed from realtime storage SIP DOMAIN SUPPORT Incoming INVITE and REFER messages can be matched against a list of allowed domains each of which can direct the call to a specific context if desired By default all domains are accepted and sent to the default context or the context associated with the user peer placing the call Domains can be specified using domain lt domain gt lt context gt Examples domain myasterisk dom domain customer com customer context In addition all the default domains associated with a server should be added if incoming request filtering is desired autodo
81. g entre 3G y Wifi y el env o de archivos P2P entre usuarios Fring 2 3 4 Servidores Asterisk A trav s del tiempo los servidores Asterisk han evolucionado a tal punto que compafi as enteras se dedican a la comercializaci n de Asterisk listo con hardware de conexi n para distintos protocolos como SS7 SIP o el mismo IAX que es el protocolo nativo de Asterisk 39 2 3 5 Mensajer a de Voz Una pieza fundamental de las comunicaciones telef nicas es la mensajer a de voz ya que con esto se permite a los usuarios tener una comunicaci n permanente con las personas que le llaman 2 4 Topolog a DIAGRAMA DE INTERCONEXION ASTERISK 3COM CPE Tel fono 3COM Tel fono IP ISP USUARIO ISP USUARIO ISP USUARIO Asterisk 142 NBX V 3000 200 6 86 4 200 6 80 232 ISP USUARIO A IP E Ea Tel fono 3COM gt Sea IP Tel fono 3COM Tel fono IP Figura 2 4 Topologia 2 4 1 Protocolos SIP H323 Session Initiation Protocol es un protocolo de control y se alizaci n usado en su mayoria para sistemas de Telefon a IP que fue desarrollado por el IETF RFC 3261 Dicho 40 protocolo permite crear modificar y finalizar sesiones con uno o m s participantes y sus principales ventajas son su simplicidad y consistencia Existen otros protocolos de se alizaci n tales como el H 323 de la ITU el SCCP de Cisco o el MGCP pero poco a poco SIP est gan
82. g for a local E 164 solution then try DUNDi if we don t have one include gt dundi e164 local include gt dundi e164 switch DUNDi can also be implemented as a Macro instead of using the Local channel driver macro dundi e164 ARGI is the extension to Dial gt non Extension s is not a wildcard extension that matches anything In macros it is the start extension In most other cases you have to goto s to execute that extension For wildcard matches see above all pattern matches start with an underscore exten gt s 1 Goto ARGI 1 include gt dundi e164 lookup Here are the entries you need to participate in the IAXTEL call routing system Most IAXTEL numbers begin with 1 700 but there are exceptions For more information and to sign please go to www gnophone com or www iaxtel com iaxtel700 exten gt _91700XXXXXXX 1 Dial IAX2 GLOBALUAXINFO iaxtel com EXTEN 1 iaxtel The SWITCH statement permits a server to share the dialplan with another server Use with care Reciprocal switch statements are not allowed e g both A gt B and B gt A and the switched server needs to be on line or else dialing can be severly delayed iaxprovider switch gt IAX2 user key myserver mycontext trunkint International long distance through trunk exten gt _9011 1 Macro dundi e164 EXTEN 4 133 exten gt _9011 n Dial G
83. gits 5 exten gt 9999 n Playback minutes exten gt 9999 n Hangup default Use a DiD or internal extension in place of 1995 exten gt 1995 1 Answer exten gt 1995 n Wait 3 exten gt 1995 n CBMysqlO exten gt 1995 n Hangup 142 Voicemail conf Voicemail Configuration gt NOTE Asterisk has to edit this file to change a user s password This does not currently work with the include lt file gt directive for Asterisk configuration files nor when using realtime static configuration Do not use them with this configuration file gt general Formats for writing Voicemail Note that when using IMAP storage for voicemail only the first format specified will be used format g723sflwav49 wav format wav49 lgsmlwav WARNING If you change the list of formats that you record voicemail in when you have mailboxes that contain messages yu _MUST_ absolutely manually go through those mailboxes and convert delete add the the message files so that they appear to have been stored using your new format list If you don t do this very unpleasant things may happen to your users while they are retrieving and manipulating their voicemail In other words don t change the format list on a production system unless you are _VERY_ sure that you know what you are doing and are prepared for the consequences Who the e mail notification should appear to come from serveremail
84. gratuito VoIP de tel fono a tel fono 2 3 Funcionamiento 2 3 1 Instalaci n y configuraci n de software en Linux La instalaci n y configuraci n se lo detallara en el punto 3 2 1 1 2 3 2 Caracter sticas destacadas del Protocolo SIP Caracter sticas SIP describe la comunicaci n necesaria para establecer una llamada telef nica El protocolo es parecido al protocolo HTTP es basado en texto y muy abierto y flexible En muchos casos esta reemplazado el est ndar H 323 SIP hace uso de elementos llamados servidores proxy para ayudar a enrutar las peticiones hacia la localizaci n actual del usuario autenticar y autorizar usuarios para darles servicio posibilitar la implementaci n de pol ticas de enrutamiento de llamadas y aportar capacidades a adidas al usuario Tomado del 3261 SIP tambi n aporta funciones de registro que permiten al usuario informar de su localizaci n actual a los servidores proxy Tomado del RFC 3261 22 Es un concepto importante que la distinci n entre los tipos de servidores SIP es l gica no f sica Tomado del RFC 3261 Elementos de una Red SIP pr ctica Los terminales f sicos dispositivos con el aspecto y forma de tel fonos tradicionales pero que usan SIP y RTP para la comunicaci n est n disponibles comercialmente gracias a muchos fabricantes Algunos de ellos usan numeraci n electr nica ENUM o DUNDi para traducir los n meros existentes de tel fono a
85. ia de la Tecnolog a SIP y del servicio de VOIP 2 2 1 T rminos y Definiciones Definiciones sobre VOIP VoIP En espa ol sus siglas significan Voz Sobre el Protocolo de Internet llamado tambi n como Telefon a IP o telefon a por Internet es el enrutamiento de conversaciones de voz a trav s de Internet o cualquier otra red basada en el protocolo IP El protocolo de internet IP fue disefiado originalmente como red para transmitir datos y debido a su gran xito fue adaptado como red de voz La transmisi n de voz sobre IP VoIP puede facilitar muchos procesos y servicios que normalmente son muy dif ciles y costosos de implementar usando la tradicional red de voz PSTN Se puede transmitir m s de una llamada sobre la misma l nea telef nica De esta manera la transmisi n de voz sobre IP hace m s f cil el proceso de aumentar l neas telef nicas cuando llegan nuevos usuarios a la red Funcionalidades que normalmente son facturadas con cargo extra por las compa as de tel fonos como identificaci n de la persona que llama transferencia de llamadas o remarcado autom tico son f ciles de implementar con la tecnolog a de voz sobre IP y sin costo alguno Permite la integraci n de otros servicios disponibles en la red de Internet como son video mensajes instant neos etc PSTN En espa ol sus siglas significan Red P blica de Telefon a Conmutada Es la concentraci n de las redes p blicas mundiales de circ
86. iante otras RFC Requests for Comments dotando al protocolo de funciones m s potentes Las funciones b sicas del protocolo incluyen e Determinar la ubicaci n de los usuarios proveyendo nomadicidad e Establecer modificar y terminar sesiones multipartitas entre usuarios El protocolo SIP adopta el modelo cliente servidor y es transaccional El cliente realiza peticiones requests que el servidor atiende y genera una o m s respuestas esto dependiendo de la naturaleza o m todo de la petici n Por ejemplo para iniciar una sesi n el cliente realiza una petici n con el m todo INVITE en donde indica con qu usuario o recurso quiere establecer la sesi n El servidor responde ya sea rechazando o aceptado esa petici n en una serie de respuestas Las respuestas llevan un c digo de estatus que brinda informaci n acerca de si las peticiones fueron resueltas con xito o si se produjo un error La petici n inicial y todas sus respuestas constituyen una transacci n Los servidores por defecto utilizan el puerto 5060 en TCP Transmission Control Protocol y UDP User Datagram Protocol para recibir las peticiones de los clientes SIP Uno de los principales objetivos de SIP fue aportar un conjunto de funciones de procesamiento de llamadas y capacidades presentes en la red p blica conmutada de telefon a A partir de este objetivo implement funciones t picas de dicha red como son 12 llamar a un n mero provocar que un
87. iante la utilizaci n de tres n meros separados por un punto Teniendo desde el inicio como primer n mero el uno el segundo n mero indica la versi n mientras que el tercero muestra la revisi n liberada En las revisiones se llevan a cabo correcciones pero no se incluyen nuevas funcionalidades En las versiones de desarrollo el tercer valor siempre es un cero seguido de la palabra beta y un n mero para indicar la revisi n Versiones Las versiones tanto estables como de desarrollo de cada m dulo pueden descargarse en la zona de descargas de la p gina oficial de Asterisk A fecha de Abril de 2008 son las siguientes e Versi n 1 6 en pruebas o Asterisk Versi n 1 6 0 rc6 18 e Versi n 1 4 Estable o Asterisk Version 1 4 21 2 o Zaptel Version 1 4 12 1 o Libpri Version 1 4 7 o Addons Version 1 4 7 e Versi n 1 2 y 1 0 o Estas versiones se consideran paralizadas y no se continuar n manteniendo Nota Actualmente la rama 1 4 es la aconsejada para sistemas en producci n 2 2 4 Protocolos y Codecs Protocolos de Se alizaci n e Estos c digos se utilizan para Loguearse desloguearse de un servidor VoIP remoto e Transmitir las claves de inicio fin corte ok invitaci n e Indicar que tipo de datos se est n transmitiendo e Transmitir la direcci n de origen y destino Los c digos de se al m s importantes son H323 y SIP Adicionalmente ha de mencionarse el c digo IAX desarroll
88. icional e Tel fonos SIP basados en software estos permiten que cualquier computador pueda ser utilizado como tel fono usando un auricular con micr fono y una tarjeta de sonido Se requiere tambi n de una conexi n de banda ancha a un proveedor VOIP o aun Servidor SIP Clases de tel fono SIP tel fonos VOIP Un sistema telef nico VOIP requiere el uso de tel fonos SIP tel fonos VOIP Los tel fonos SIP se presentan en varias clases Tel fonos virtuales SIP VOIP tel fono SIP basado en software Un tel fono SIP basado en software es un programa que utiliza el micr fono y los altavoces de su ordenador o auriculares conectados para permitirle realizar o recibir llamadas Ejemplos de tel fonos SIP son Xlite SJPhone de SJlabs http www sjlabs com Xten http www xten net o el Tel fono VOIP de 3CX para Windows OBS Aqu habr a que poner informaci n del Xlite que utilizamos 24 lie XEER HOLO RECORD AA mx AC DND COR b E HE Figura 2 2 Pantalla de plataforma del softphone X Lite 4416 4416 Domain Domain Proxy v Register with domain and receive incoming calls Send outbound via Q domain O proxy Address 1 a a T match 1 prestrip 2 Figura 2 3 Pantalla de configuraci n de cuenta para el softphone X Lite 25 7864722242 10018 Available 11000 200 dere B
89. ientras que el protocolo SDP se usa para la negociaci n de las capacidades de los participantes tipo de codificaci n etc CODECS 20 Un C dec convierte una se al anal gica a una digital para transmitirla sobre una red de datos Los siguientes Codecs est n en uso hoy en d a GSM 13 Kbps full rate tama o de marco de 20ms e iLBC 15Kbps tama o de marco 20ms 13 3 Kbps tama o de marco 30ms e ITU G 711 64 Kbps basado en muestras Tambi n conocido como alaw ulaw e ITU G 722 48 56 64 Kbps e TU G 723 1 5 3 6 3 Kbps tama o de marco 30ms e ITU G 726 16 24 32 40 Kbps ITU G 728 16 Kbps e ITU G 729 8 Kbps tama o de marco 10ms e Speex 2 15 to 44 2 Kbps e LPC10 2 5 Kbps e DoD CELP 4 8 Kbps 2 2 5 SoftPhones En ingl s la combinaci n de Software y de Telephone es un software que hace una simulaci n de tel fono convencional por computadora Es decir permite usar la computadora para hacer llamadas a otros softphones o a otros tel fonos Normalmente un Softphone es parte de un entorno Voz sobre IP y puede estar basado en el est ndar SIP H 323 o ser privativo 21 Hay muchas implementaciones disponibles como la ampliamente disponible Microsoft Windows Messenger o NetMeeting Funcionan bien con la mayor a de los ITSP Proveedores de Servicios de Telefon a por Internet Se puede conectar usando un tel fono USB o un enlace USB a un SoftPhone y obtener un servicio
90. iguracion de Central Telefonica Y procedemos a la actualizaci n tomando en cuenta que debemos tener una conexi n estable de internet por aproximadamente 2 horas de igual manera procedemos con 1 actualizaci n del paquete de regi n Luego de colocar la direcci n IP externa tendremos acceso a la central NBX desde cualquier parte del mundo a trav s de internet lo que nos facilitara la interconexi n con otros dispositivos en nuestro caso un servidor Asterisk 72 3 2 2 Instalaci n de Asterisk Existen distribuciones de Linux que viene integrado Asterisk como es el caso de TRIXBOX pero para nuestro desarrollo lo instalaremos sobre un sistema operativo ya instalado para explicar su proceso 3 2 2 1 Instalaci n de paquetes b sicos Como primer paso instalamos un firewall respetando los derechos de autor root voip vi etc rc d init d espevoip Lo editamos y asignamos permisos root voip chmod 711 etc rc d init d espevoip root voip Is l etc rc d init d espevoip IWX X X root root 32959 2008 09 08 15 13 etc rc d init d espevoip Ejecutamos el firewall root voip etc rc d init d espevoip Inicializando Proxy Firewall Definici n de variables Instalaci n de M dulos Definici n de Pol ticas B sicas Definici n de Pol ticas Generales 73 paquetes icmp ssh Auth DNS Acceso snmp Acceso web local Web remoto correo saliente proceso finalizado Creamos la
91. inate call if 300 seconds of no RTP or RTCP activity on the audio channel when we re on hold must be gt rtptimeout rtpkeepalive lt secs gt Send keepalives in the RTP stream to keep NAT open default is off zero ES SIP DEBUGGING sipdebug yes Turn on SIP debugging by default from 114 the moment the channel loads this configuration recordhistory yes Record SIP history by default see sip history sip no history dumphistory yes Dump SIP history at end of SIP dialogue SIP history is output to the DEBUG logging channel STATUS NOTIFICATIONS SUBSCRIPTIONS You can subscribe to the status of extensions with a hint priority See extensions conf sample for examples chan sip support two major formats for notifications dialog info and SIMPLE You will get more detailed reports busy etc if you have a call limit set for a device When the call limit is filled we will indicate busy Note that you need at least 2 in order to be able to do attended transfers For queues you will need this level of detail in status reporting regardless if you use SIP subscriptions Queues and manager use the same internal interface for reading status information Note Subscriptions does not work if you have a realtime dialplan and use the realtime switch allowsubscribe no Disable support for sub
92. ing greetings The default is no hidefromdirzyes Hide this mailbox from the directory produced by app directory The default is no tempgreetwarn yes Remind the user that their temporary greeting is set zonemessages easterncAmerica New Yorkl vm received Q digits at IMp central A merica Chicagol vm received Q digits at IMp central24 America Chicagol vm received q digits at N hours military Zulul vm received q digits at N hours phonetic z p european Europe Copenhagenl vm received a d b digits at HM default Define maximum number of messages per folder for a particular context 146 maxmsg 50 1234 gt 4242 Example Mailbox root localhost 34200 gt 9855 Mark Spencer markster linux support net mypager digium com attach nolserveremail myaddy id digium comltz centrallmaxmsg 10 4300 gt 3456 Ben Rigas ben american computer net 4310 gt 5432 Sales sales 9 marko net 4069 gt 6522 Matt Brooks matt marko net ltz centrallattach yeslsaycid yesldialout fromvmlcallback fromvmlreview yeslop erator yeslenvelope yeslsayduration yesIsaydurationm 1 34073 gt 1099 Bianca Paige bianca biancapaige com delete 1 4110 gt 3443 Rob Flynn rflynn blueridge net 34235 gt 1234 Jim Holmes jimO astricon ips Tz european 9810 gt 2222 Cristobal Espinosa pjjttb hotmail com 9811 gt 2222 Cristobal Espinosa cespinosa eolnet net 9812 gt 2222 Pablo Jami T pjami eolnet net 981
93. instead matchexterniplocally yes Only substitute the externip or externhost setting if it matches your localnet setting Unless you have some sort of strange network setup you will not need to enable this If regcontext is specified Asterisk will dynamically create and destroy a NoOp priority 1 extension for a given peer who registers or unregisters with us and have a regexten configuration item Multiple contexts may be specified by separating them with amp The actual extension is the regexten parameter of the registering peer or its name if regexten is not provided If more than one context is provided the context must be specified within regexten by appending the desired context after More than one regexten may be supplied if they are separated by amp Patterns may be used in regexten gt sregcontext sipregistrations RTP timers These timers are currently used for both audio and video streams The RTP timeouts are only applied to the audio channel The settings are settable in the global section as well as per device srtptimeout 60 Terminate call if 60 seconds of no RTP or RTCP activity on the audio channel when we re not on hold This is to be able to hangup call in the case of a phone disappearing from the net like a powerloss or grandma tripping over a cable srtpholdtimeout 300 Term
94. ise y modifique la capa de particiones Atr s Siguiente _ e Figura 3 8 Pantallas de Instalacion 10 Procedemos con el formateo del disco duro y sus nuevas particiones 58 La instalaci n requiere la partici n de su disco duro Por defecto una capa de partici n razonable es escogida sta es suficiente en la mayor a de los casos Usted puede escoger esta partici n predeterminada o crearla usted mismo Eliminar las particiones de Linux en los dispositivos seleccionados y crear dise o por defecto Sistema de Encriptado Seleccione la s unidad es a iil gt tol n Ig Formateo del sistema de ficheros J o Configuraci n Avanzada de almacenamiento Desde qu disco desea que se inicie el proceso de instalaci n Revise y modifique la capa de particiones Figura 3 9 Pantallas de Instalacion 11 Las particiones son creadas y formateadas 59 La instalaci n requiere la partici n de su disco duro Por defecto una capa de partici n razonable es escogida sta es suficiente en la mayor a de los casos Usted puede escoger esta partici n predeterminada o crearla usted mismo Eliminar las particiones de Linux en los dispositivos seleccionados y crear dise o por defecto Sistema de Encriptado Seleccione la s unidad es a uj um T Transfiriendo la imagen del programa de instalaci n al disco duro
95. les como una nueva alternativa de bajo costo 3 HIPOTESIS Se busca escalabilidad del sistema menos costosa que la que se podr a realizar con la tecnolog a existente A trav s de extensiones SIP virtuales sin tener que incurrir en nuevas compras de tarjetas f sicas para la ampliaci n de la misma 4 OBJETIVOS 4 1 OBJETIVO GENERAL Integrar un nuevo servidor Asterisk SIP de libre distribuci n emulando las funcionalidades del sistema cerrado 3COM NBX 3000 con el que actualmente cuenta la Escuela Polit cnica del Ej rcito 4 2 OBJETIVOS ESPEC FICOS e Agregar capacidad de escalabilidad a bajos costos para red de VoIP e Implementar un sistema de VoIP que trabaje con protocolo SIP de manera que se autentifique tel fonos abiertos es decir que no manejen protocolos propietarios e Reconfigurar el sistema de extensiones telef nicas para integrar softphones y en general telefon a SIP a la red existente e Establecer un plan piloto de los dos sistemas 5 ALCANCE Actualizar la central telef nica de la ESPE 3COM NBX 3000 a su Release 6 Configurar un servidor de telefon a IP con protocolo SIP bajo el sistema operativo Linux Fedora core 6 para que este sea compatible con otros servidores de telefon a IP independientemente del protocolo que estos utilicen El proyecto lograra que el sistema cerrado actualmente se convierta en uno con caracter sticas m s flexibles y m s escalables planteara un sistema d
96. listed calling the sender back will not be permitted exitcontext fromvm Context to go to on user exit such as or 0 The default is the current context gt review yes Allow sender to review rerecord their message before saving it OFF by default Operator yes Allow sender to hit O before after during leaving a voicemail to reach an operator OFF by default envelope no Turn on off envelope playback before message playback ON by default This does NOT affect option 3 3 from the advanced options menu deletezyes After notification the voicemail is deleted from the server per mailbox only This is intended for use with users who wish to receive their voicemail ONLY by email Note deletevoicemail is provided as an equivalent option for Realtime configuration volgain 0 0 Emails bearing the voicemail may arrive in a volume too quiet to be heard This parameter allows you to specify how much gain to add to the message when sending a voicemail NOTE sox must be installed for this option to work gt gt gt gt gt nextaftercmd yes Skips to the next message after hitting 7 or 9 to delete save current message global option only at this time forcename yes Forces a new user to record their name new user is determined by the password being the same as the mailbox number The default is no gt forcegreetings no This is the same as forcename except for record
97. los m s importantes 61 La instalaci n por defecto de Fedora incluye un grupo de aplicaciones para el uso general de Internet Qu tareas adicionales le gustar a poder realizar en su sistema 4 Ofim tica Desarrollo de software Servidor de web lt Por favor seleccione cualquier reposil instalaci n de Comprobando dependencias software en los paquetes O Additional Fedora Software seleccionados M Fedora Agregar repositorios de software adicional Modificar repositorio La selecci n de software se puede personalizar ahora o con el sistema de administraci n de software despu s de la instalaci n e Personalizar luego Personalizar ahora Figura 3 12 Pantallas de Instalacion 14 Se instalan las dependencias de los paquetes seleccionados 62 dE Atr s fedora Preparando la transacci n desde la fuente de instalaci n Copyrigh 2003 2008 Red H t s All rights rv Figura 3 13 Pantallas de Instalacion 15 Se preparan las fuentes de instalaci n 63 fedoro 784 de 932 paquetes completados Instalando nautilus 2 22 2 7 fc9 i386 14 MB Nautilus is a file manager for GNOME Figura 3 14 Pantallas de Instalacion 16 Se instalan los paquetes 64 Enhorabuena la instalaci n ha sido completada Presione el bot n Reiniciar para reinicia
98. lues 22103872 e J ote iow Ce 82 E E BOX zs Figura 2 4 Tel fono Virtual de 3CX Tel fonos VOIP con USB Un tel fono con USB se enchufa al puerto USB de un ordenador y mediante el uso de un software para tel fono VOIP SIP acttia igual que un tel fono B sicamente no es m s que un micr fono con un altavoz sin embargo como tiene la apariencia de tel fono normal para el usuario es m s intuitivo de utilizar Figura 2 5 Tel fono VoIP con USB 26 Tel fono SIP basado en hardware Un tel fono SIP basado en hardware tiene la apariencia de un tel fono normal y act a como tal Sin embargo se conecta directamente a la red de datos Estos tel fonos tienen un mini concentrador integrado para que puedan compartir la conexi n de red con el ordenador De esa forma no se necesita un punto de red adicional para el tel fono Figura 2 6 Tel fono SIP basado en hardware Adaptador ATA Si se desea usar su tel fono actual normal con el sistema telef nico VOIP puede usar un adaptador ATA Un adaptador ATA le permite enchufar la clavija de red Ethernet en el adaptador y luego enchufar el tel fono en el adaptador De esa forma su tel fono antiguo aparecer en el software del sistema telef nico VOIP como un tel fono SIP normal 27 Figura 2 7 Adaptador ATA que permite que un tel fono anal gico se conecte a un sistema VOIP 2 3 2 Proceso de Comunicaci n
99. main yes To disallow requests for domains not serviced by this server allowexternaldomains no domain mydomain tld mydomain incoming Add domain and configure incoming context for external calls to this domain domain 1 2 3 4 Add IP address as local domain You can have several domain settings allowexternaldomains no Disable INVITE and REFER to non local domains Default is yes autodomain yes Turn this on to have Asterisk add local host name and local IP to domain list fromdomain mydomain tld When making outbound SIP INVITEs to non peers use your primary domain identity for From headers instead of just your IP address This is to be polite and it may be a mandatory requirement for some destinations which do not have a prior account relationship with your server 118 jbenable yes Enables the use of a jitterbuffer on the receiving side of a SIP channel Defaults to no An enabled jitterbuffer will be used only if the sending side can create and the receiving side can not accept jitter The SIP channel can accept jitter thus a jitterbuffer on the receive SIP side will be used only if it is forced and enabled joforce no Forces the use of a jitterbuffer on the receive side of a SIP channel Defaults to no Jomaxsize 200 Max length of the jitterbuffer in milliseconds Jbresyncthreshold 1000 Jump in the frame timestamps over which the jitterbuffer i
100. many Country pack for Release 6 0 59 Bjistaelk6 0 59 107 20Feb2008 2275MB Israel Country pack for Release 6 0 59 Stavre 0 591az 20Feb2008 24 58 MB Italy Country pack for Release 6 0 59 BjlMexicoRe 0 591az 20Feb 2008 2443MB Mexico Country pack for Release 6 0 59 EJNBXCAS R6 0 Sexe 20Feb2008 805 80 89 MB Complement Attendant software 6 0 5 SINBXDCA Re 0 4 exe 20Feb2008 6 0 4 60 06 MB Desktop Call Assistant 6 0 4 EJ NBXMSBK setup R6 0 4 exe 20Feb2008 604 2279 MB Multi Site backup 6 0 4 Bj NBXMediaDrvSetup RG 0 14 20Feb 2008 6 0 14 8 50MB Media driver 6 0 14 5 R6 0 10 exe 20Feh2008 6010 312MB tsp 6 0 10 Internet Figura 3 19 Configuracion de Central Telefonica 68 Seleccionamos el paquete regional de M xico en espa ol debido a que es el paquete en espa ol m s cercano al ecuatoriano Completados 13 de R 0 59 V3000AnalogBri C X Guardando BO 0 59 v3000AnalogBri taz de support 3com com Tiempo estimado 42 min 40 seg 9 35 MB de 74 3 MB copiados Descargar a CiRele AR6 0 59 v30 DAnalogBri taz Tasa de transferencia 26 9 KB Seg Descarga de archivos Guardando MexicoR6 0 59 taz de support 3com com Tiempo estimado 18 min 10 seg 6 30 MB de 24 4 MB copiados Descargar a C Release MexicoR6_0_59 taz Tasa de transferencia 17 5 KB Seg Abrir carpeta Cancelar Figura 3 2
101. mar parte del repositorio del sistema de control de versiones y ha de contar finalmente con el visto bueno de los responsables de los repositorios de acuerdo a criterios de oportunidad prioridad o importancia de la nueva funcionalidad propuesta Industria relacionada Existen multitud de empresas relacionadas con Asterisk La mayor parte de ellas siguiendo uno de los modelos de negocio m s habituales del software libre como es el de aportar valor af adido al software en este caso mediante el disefio instalaci n formaci n y mantenimiento de centralitas telef nicas basadas en Asterisk Digium la empresa creada por Mark Spencer amplia este modelo de negocio tanto con la venta de hardware espec fico fundamentalmente tarjetas de comunicaci n como con la venta de software propietario entre el que destaca el Asterisk Business Edition aplicaci n basada en Asterisk a la que se le incorporan ciertas funcionalidades 17 Estado actual del proyecto La versi n estable de Asterisk est compuesta por los m dulos siguientes e Asterisk Ficheros base del proyecto e Zaptel Soporte para hardware Drivers de tarjetas e Addons Complementos y afiadidos del paquete Asterisk Opcional e Libpri Soporte para conexiones digitales Opcional e Sounds Aporta sonidos y frases en diferentes idiomas Cada m dulo cuenta con una versi n estable y una versi n de desarrollo La forma de identificar las versiones se realiza med
102. me szEndTime szDaysOfWeek nDestinationRouteld TimedRouteEntry Delete nRouteld nEntryId TimedRouteOperation Create nRouteld nEntryId nOperld szOperation szValue TimedRouteOperation Delete nRouteld nEntryId nOperld PreTranslator Create nPreTranslatorId szDescription PreTranslator Delete nPreTranslatorld PreTranslatorEntry Create nPreTranslatorId nEntryld szDigits PreTranslatorEntry Delete nPreTranslatorId nEntryId PreTranslatorOperation Create nPreTranslatorId nEntryId nOperld szOperation szValue PreTranslatorOperation Delete nPreTranslatorId nEntryId nOperld PreTranslatorlSDNNumberType nPreTranslatorld nISDNNumberType ExtensionLength nExtensionLength ExtensionRange szExtensionType szLowestExtension szHighestExtension ExternalSettings szExternalKeysetPrefix szFirstAutoDiscoverExtension 156 szDefaultAutoExtension Notes 1 Each command must be entered on one line 2 Commands are case insensitive 3 Tabs and spaces are ignored except in szDescription arguments 4 The shown enclosing command argument names should not be included in commands 5 Command arguments beginning with n must be numbers 6 Command arguments beginning with sz are strings 7 nTableld 1 is the default Internal 3 digit dial plan table 8 nTableld 2 is the default Incoming 3 digit dial plan table 9 nTableld 3 is the default LCR dial plan table If used the LCR table
103. no de los objetivos fue simplicidad ahora tiene una complejidad similar a H 323 e SIP comparte muchos c digos de estado de HTTP como el familiar 404 no encontrado 404 not found 13 e SIP y H 323 no se limitan a comunicaciones de voz y pueden mediar en cualquier tipo de sesi n comunicativa desde voz hasta v deo o futuras aplicaciones todav a sin realizar 2 2 2 Delimitaci n 2 2 3 Origen de Asterisk La aplicaci n Asterisk fue desarrollada por Mark Spencer por entonces estudiante de ingenier a inform tica en la Universidad de Auburn Alabama Mark hab a creado en 1999 1 empresa Linux Support Services con el objetivo de dar soporte a usuarios de Linux Para ello necesitaba una centralita telef nica pero ante la imposibilidad de adquirirla dados sus elevados precios decidi construir una con un PC bajo Linux utilizando lenguaje C 14 Figura 2 1 Mark Spencer en el 2006 O Reilly Emerging Telephony Conference Este fue el principio del fen meno mundialmente conocido como AsteriskG la centralita telef nica construida por Mark despu s de su experiencia desarrollando GAIM ahora llamado Pidgin entre otros proyectos de software libre Mark explico sus necesidades de capital a sus amigos en Adtran ellos se ofrecieron a invertir en su compafi a Se dio cuenta que recib a m s inter s en el PBX Asterisk que por sus servicios generales de consultor a Linux Mark se reuni con Jim Dixon que est
104. nombre del host de forma autom tica a trav s de DHCP Configuraci n miscel nea Puerta de enlance DNS Primario DNS Secundario atr s n sb figuiente Figura 3 5 Pantallas de Instalacion 6 Seleccionamos el uso horario e Introducimos la contrase a para el usuario root La cuenta root se utiliza para la administraci n del sistema Introduzca una contrase a para el usuario root Contrase a de root Atr s gt Siguiente Figura 3 6 Pantallas de Instalacion 8 Distribuimos el espacio en disco duro con la siguiente configuraci n Nombre Asignaci n Mb CARACTERISTICAS SWAP 4000 Hace las funciones memoria RAM pero de m s r pido acceso 76059264 El directorio ra z es en donde se van a almacenar VAR 80632188 En el directorio VAR se almacenan los mensajes de errores las librer as los archivos 56 de p ginas web a ser publicados HOME 80632188 Se almacena las configuraciones y archivos de los usuarios de Linux BOOT 194442 Guarda los archivos de inicio y un men que nos permite iniciar distintos sistemas operativos instalados en el computador Tambi n con en este paso borramos cualquier posible partici n existente en el sistema debido a que estamos instalando la ltima versi n estable de Linux as evitaremos cualquier conflicto si tuvi ramos instalado alguna versi n de Linux
105. nticate 2222 exten 4511 4 VoicemailMain s4511 exten gt 4512 1 Ringing exten gt 4512 2 Wait 2 exten gt 4512 3 Authenticate 2222 exten gt 4512 4 VoicemailMain s4512 exten gt 4513 1 Ringing exten gt 4513 2 Wait 2 exten gt 4513 3 Authenticate 2222 exten gt 4513 4 VoicemailMain s4513 exten gt 4514 1 Ringing exten gt 4514 2 Wait 2 exten gt 4514 3 Authenticate 2222 exten 4514 4 VoicemailMain s45 14 exten gt 4515 1 Ringing exten gt 4515 2 Wait 2 exten gt 4515 3 Authenticate 2222 exten gt 4515 4 VoicemailMain s45 15 exten gt 4516 1 Ringing exten gt 4516 2 Wait 2 141 exten gt 4516 3 Authenticate 2222 exten gt 4516 4 VoicemailMain s4516 exten gt 4517 1 Ringing exten gt 4517 2 Wait 2 exten gt 4517 3 Authenticate 2222 exten gt 4517 4 VoicemailMain s4517 include gt espevoip conferencia exten gt 4400 1 MeetMe 4001 r1 exten gt 4401 1 MeetMe 4002 exten gt 4402 1 MeetMe 4003 r exten gt 4403 1 MeetMe 4004 ri exten gt 4404 1 MeetMe 4004 mq include gt espe3com include gt espevoip mm announce Used by cbEnd to announce that a conference is about to end This sample assumes a five minute warning matching the value on line 138 of cbEnd php exten gt 9999 1 Set CALLERID name MMGETOUT exten gt 9999 n Answer exten gt 9999 n Playback conf will end in exten gt 9999 n Playback di
106. nvelope no attachzyes Attach the voicemail to the notification email NOT the pager email 145 attachfmt wav49 Which format to attach to the email Normally this is the first format specified in the format parameter above but this option lets you customize the format sent to particular mailboxes Useful if Windows users want wav49 but Linux users want gsm per mailbox only saycid yes Say the caller id information before the message If not described or Set to no it will be in the envelope cidinternalcontexts intern Internal Context for Name Playback instead of extension digits when saying caller id sayduration no Turn on off the duration information before the message ON by default saydurationm 2 Specify the minimum duration to say Default is 2 minutes dialout fromvm Context to dial out from option 4 from mailbox s advanced menu If not specified option 4 will not be listed and dialing out from within VoiceMailMain will not be permitted sendvoicemail yes Allow the user to compose and send a voicemail while inside VoiceMailMain option 5 from mailbox s advanced menu If set to no option 5 will not be listed searchcontexts yes Current default behavior is to search only the default context if one is not specified The older behavior was to search all contexts This option restores the old behavior DEFAULT no callback fromvm Context to call back from If not
107. o wrap around the ends Also minutes are fine grained only down to the closest even minute include gt daytimel9 00 17 00lmon fril 1 include gt weekend sat sun include gt weeknightsl17 02 8 58lmon fril ignorepat can be used to instruct drivers to not cancel dialtone upon receipt of a particular pattern The most commonly used example is of course 9 like this ignorepat gt 9 so that dialtone remains even after dialing a 9 Sample entries for extensions conf dundi e164 canonical List canonical entries here exten gt 12564286000 1 Macro stdexten 6000 LA X2 foo exten gt 125642860XX I Dial IAX2 otherbox EXTEN 7 dundi e164 customers If you are an ITSP or Reseller list your customers here exten gt 12564286000 1 Dial SIP customer1 exten gt 12564286001 1 Dial IA X2 customer2 dundi e164 via pstn If you are freely delivering calls to the PSTN list them here exten gt _1256428XXXX Dial Zap G2 EXTEN 7 Expose all of 256 428 exten gt 1256325XXXX Dial Zap G2 EXTEN 7 Ditto for 256 325 dundi e164 local gt Context to put your dundi IAX2 or SIP user in for 132 full access include gt dundi e164 canonical include gt dundi e164 customers include gt dundi e164 via pstn dundi e164 switch Just a wrapper for the switch switch gt DUNDi e164 dundi e164 lookup Locally to lookup try lookin
108. oder configurar nuestras extensiones nos dirigimos al archivo etc asterisk extensions conf Los campos en su mayor a se encuentran comentados no debemos olvidar el contexto principal nombrado en el archivo sip conf incluidas sus extensiones sin olvidarnos de incluir los contextos con los que se comunicara y lo definimos de la siguiente manera espevoip 86 exten gt 4410 1 Dial SIP 4410 15 Ttr exten gt 4410 2 VoiceMail 4510 exten gt 4410 3 Hangup exten gt 4411 1 Dial SIP 4411 15 Ttr exten gt 4411 2 VoiceMail 4511 exten gt 4411 3 Hangup exten gt 4499 1 Dial SIP 4499 15 Ttr exten gt 4499 2 VoiceMail 4599 exten gt 4499 3 Hangup include gt casillerosvoz include gt conferencia include gt espeexternos 87 Definimos tambi n su plan de marcaci n es decir que direcci n tomara la llamada dependiendo del marcado tambi n en cada uno de los contextos incluimos nuestro contexto principal espeexternos exten Z2 10XX 1 Dial SIP 3 EXTEN 200 6 80 232 30 Ttr ver punto 2 5 1 xxx include gt espevoip Definimos los casilleros de voz que luego ser n configurados en el archivo voicemail conf casillerosvoz exten gt 4510 1 Ringing exten gt 4510 2 Wait 2 exten gt 4510 3 Authenticate 2222 exten gt 4510 4 VoicemailMain s4510 exten gt 4511 1 Ringing 88 exten gt 4511 2 Wait 2 exten gt 4511 3 Authenticate 2
109. onectado Para ello se vale del mecanismo de registro Este mecanismo funciona como se explica aqu Cada usuario tiene una direcci n l gica que es invariable respecto de la ubicaci n f sica del usuario Una direcci n l gica del protocolo SIP es de la forma usuario dominio es decir tiene la misma forma que una direcci n de correo electr nico La direcci n f sica denominada direcci n de contacto es dependiente del lugar en donde el usuario est conectado es decir de su direcci n IP Cuando un usuario inicializa su terminal por ejemplo conectando su tel fono o abriendo su software de telefon a SIP el agente de usuario SIP que reside en dicho terminal env a una petici n con el m todo REGISTER a un Servidor de Registro informando a qu direcci n f sica debe asociarse la direcci n l gica del usuario El servidor de registro realiza entonces dicha asociaci n denominada binding Esta asociaci n tiene un per odo de vigencia y si no es renovada caduca Tambi n puede terminarse mediante un desregistro La forma en que dicha asociaci n es almacenada en la 29 red no es determinada por el protocolo SIP pero es vital que los elementos de la red 51 accedan a dicha informaci n Servidores Proxy y de Redirecci n Para direccionar un mensaje entre un agente de usuario cliente y un agente de usuario servidor normalmente se recurre a los servidores Estos servidores pueden actuar de dos maneras
110. otocol conocido ahora como SIPv1 El mismo estaba basado en trabajos anteriores de Thierry Turletti como INRIA Videoconferencing System o IVS y de Eve Schooler como Multimedia Conference Control MMCC La principal fortaleza que SIPv1 ten a y la misma que fue heredada por la versi n actual de SIP era el concepto de registraci n que consiste en que un usuario informa a la red d nde en qu host de Internet pod a recibir invitaciones a conferencias El mismo d a el Dr Henning Schulzrinne present un borrador del Simple Conference Invitation Protocol SCIP el cual se encontraba estaba basado en el HTTP Hypertext Transport Protocol y usaba TCP Transmission Control Protocol como protocolo de transporte Para poder identificar a los usuarios utilizaba direcciones de correo electr nico esto para permitir el uso de una misma direcci n para recibir correos electr nicos e invitaciones a conferencias multimedia 10 E decidi combinar ambos en un nico protocolo denominado Session Initiation Protocol dando un nuevo significado a las siglas del acr nimo y su n mero de versi n fue el dos dando origen al SIPv2 En diciembre de 1996 los tres autores Schulzrinne Handley y Schooler presentaron el borrador del SIPv2 El mismo luego de ser discutido en el grupo de trabajo MMUSIC Multiparty Multimedia Session Control del IETF alcanz el grado de proposed standard en la RFC 2543 publicado en Febrero de
111. proyecto utilizaremos el protocolo SIP 2 JUSTIFICACI N E desarrollo de este proyecto ayudara a la interconexi n de oficinas dentro de la escuela a bajos costos eliminando la compra de nuevas tarjetas para la escalabilidad dentro del servidor de comunicaciones 3COM modelo NBX3000 ya existente actualiz ndolo a Release 6 Esta nueva posibilidad permitir a los estudiantes contar con extensiones y sus propios casilleros de voz as tambi n como servicios personalizados como por ejemplo la posibilidad de saber cuando tengo un correo de voz conservando todos los beneficios ofrecidos actualmente por el sistema ya implantado Ser desarrollado de manera que se aproveche el servidor de comunicaciones 3COM NBX 3000 que posee la Escuela Superior Polit cnica del Ejercito con sede en Sangolqu utilizando el protocolo SIP optimiz ndolo a Release 6 ampliando as la funcionalidad del mismo y haciendo un uso m s eficiente del recurso que la instituci n ya posee actualmente Este servicio utilizara tel fonos abiertos refiri ndose a que estos pueden trabajar con protocolos estandarizados en nuestro caso SIP y o IAX eliminando la necesidad de depender de un proveedor especifico pala la adquisici n de los equipos terminales Al ser el sistema basado en software libre la escalabilidad no incurrir en costos ayudando as al crecimiento del sistema ya existente Se tendr la oportunidad de utilizar softphones Tel fonos virtua
112. ption is to allow media path redirection reinvite but only when the peer where the media is being sent is known to not be behind a NAT as the RTP core can determine it based on the apparent IP address the media arrives from canreinvite update Yet a third option use UPDATE for media path redirection instead of INVITE This can be combined with nonat as canreinvite update nonat It implies yes REALTIME SUPPORT For additional information on ARA the Asterisk Realtime Architecture please read realtime txt and extconfig txt in the doc directory of the source code rtcachefriends yes Cache realtime friends by adding them to the internal list just like friends added from the config file only on a as needed basis yeslno srtsavesysname yes Save systemname in realtime database at registration Default no srtupdate yes Send registry updates to database using realtime If set to yes when a SIP UA registers successfully the ip address the origination port the registration period and the username of the UA will be set to database via realtime 117 If not present defaults to yes rtautoclearzyes Auto Expire friends created on the fly on the same schedule as if it had just registered yesInol lt seconds gt If set to yes when the registration expires the friend will vanish
113. r el protocolo SIP no propietario fue necesario la compra de una memoria RAM de 512 Kb Se recomienda la instalaci n y uso de codecs de audio como g723 que optimizan el ancho de banda y mejorar la calidad de una conversaci n evitar la robotizaci n en la voz y los cortes en la misma debido a saturaci n de ancho de banda 109 4 3 Bibliografia e Mhttp www ietf org html charters sip charter html e http www monografias com trabajos16 telefonia senalizacion telefonia senalizacion shtml e http www sipcenter com sip nsf html What Is SIP Introduction e http voipex blogspot com 2006 03 protocolos de sealizacin html e http es wikipedia org wiki Softphone e http www microtronix ca sip vs h323 htm e http www quarea com tutorial SIP session initiation protocol e www osmosislatina com fedora instalacion htm e www kmesystems com products pdf 3com V3000 NBX pdf e http www 3com com products en US detail jsp tab features amp pathtype purchase amp sk u 3C10600A e www asterisk org e http www freesoftwaremagazine com articles asterisk the easy way page 0962C3 110 ANEXOS 111 Sip conf SIP Configuration example for Asterisk gt Syntax for specifying a SIP device in extensions conf is SIP devicename where devicename is defined in a section below gt You may also use SIP username Odomain to call any SIP user on the Internet Don t forget to enable DNS SRV records if you want
114. r su sistema sy Reiniciar Figura 3 15 Pantallas de Instalacion 17 Se reinicia el sistema tomando en cuenta que el dvd de instalaci n sea retirado 65 Bienvenido Informaci n de Licencia Crear Usuario Fecha y Hora Perfil de Hardwar Bienvenido Hay algunos pasos mas que debe realizar antes de que su sistema est listo para ser utilizado El Agente del configuraci n lo guiar a trav s de una configuraci n b sica Pulse Adelante en la esquina inferior derecha para continuar Figura 3 16 Pantallas de Instalacion 18 Se configura un usuario y se inicia e sistema 3 2 1 2 Configuraci n de hardware La central 3com NBX V3000 tiene como su principal prop sito la comunicaci n mediante el protocolo H323 en su versi n original con su Release 6 1 se actualiza al protocolo SIP abierto protocolo que usa Asterisk con esta actualizaci n la central telef nica pierde el servicio de mensajer a y la capacidad de realizar conferencias 66 Lo primero que realizaremos es ingresar a la p gina de 3COM buscar las actualizaciones 3Com Downloads Search Results Microsoft Internet Explorer Archivo Ediciin Ver Favoritos Herramientas Ayuda a Q HAG Pres drm A Bs Direcci n http llwww 3com comjproductsfen_USIsearchbyproduct jsp path download searchby prodname search nbx vinculos gt 0 seancen O vowntonos Entine site Po 3com
115. rgamos el paquete para la actualizaci n Elegir archivo E MexicoR6 D 59 taz 3 R6_0_59 Y3000AnalogBri taz Mis sitios dered Nombre PERROS EEE Tipo Todos los archivos y NBX NetSet Microsoft Internet Explorer Archivo Edici n Ver Favoritos Herramientas Ayuda Ore O ZZ Jero Gutuna Direcci n http 192 168 1 190 sec contJops software htm P 32 QN NBX nbxdecclabwifi acom Licensing and Upgrades Software Upgrade Wide Setti Ge 5 005 lows you to install a new version of system software Before you upgrade your system software 3Com recommends that you back up g ur system your voice mail and your licenses then run the backups again immediately after upgrading System Maintenance Hep Telephone Configuration gt User Configuration Call Distribution Groups pam ona contguaten gt CAUTION NEX Messaging Uploading and installing new software can take 30 minutes or more SIP Applications gt Dial Plan Until the upgrade is complete Virtual Connections 1 DO NOT REMOVE POWER from the NBX system Downloads gt 2 DO NOT REBOOT the NBX system Licensing and Upgrades 3 DO NOT REFRESH or CLOSE the browser window in which you started the upgrade until you see the first upgrade status message Reports gt Network Management A confirmation screen will appear when the upgrade is complete Country
116. risk can register as SIP user agent SIP proxy provider Format for the register statement is a register gt user secret authuser host port extension If no extension is given the s extension is used The extension needs to 115 be defined in extensions conf to be able to accept calls from this SIP proxy provider host is either a host name defined in DNS or the name of a section defined below Examples register gt 1234 password mysipprovider com E This will pass incoming calls to the s extension register gt 2345 passwordO sip_proxy 1234 Register 2345 at sip provider sip proxy Calls from this provider connect to local extension 1234 in extensions conf default context unless you configure a sip_proxy section below and configure a context Tip 1 Avoid assigning hostname to a sip conf section like provider com Tip 2 Use separate type peer and type user sections for SIP providers H instead of type friend if you have calls in both directions registertimeout 20 retry registration calls every 20 seconds default registerattempts 10 Number of registration attempts before we give up 0 continue forever hammering the other server until it accepts the registration Default is 0 tries continue forever NAT SUPPORT The externip externhost and localnet settings are u
117. rmarle que tiene un nuevo mensaje en su buzon de voz de DUE seg de duracion nen el numero telefonico VM MAILBOX desde el numero telefonico VM_CALLERID el VM DATE n nAtt n n t t t tESPE 3COM n n n n nFavor no responder este mensaje You can also change the Pager From string the pager body and or subject The above defined variables also can be used here pagerfromstring The Asterisk PBX pagersubject New VM pagerbodyzNew SINN DUR long msg in box f VM_MAILBOX nfrom VM_CALLERID on VM_DATE 144 Set the date format on outgoing mails Valid arguments be found on the strftime 3 man page Default emaildateformat 426A 96B 96d 96 Y at r 24h date format emaildateformat 46A 96d B 96 Y at H M S You can override the default program to send e mail if you wish too mailemd J usr sbin sendmail t Users may be located in different timezones or may have different message announcements for their introductory message when they enter the voicemail system Set the message and the timezone each user hears here Set the user into one of these zones with the tz attribute in the options field of the mailbox Of course language substitution still applies here so you may have several directory trees that have alternate language choices Look in usr share zoneinfo for names of timezones Look at the manual page for strftime for a quick tutorial on how the vari
118. rpin call usereqphone no If yes userzphone is added to uri that contains a valid phone number dtmfmode rfc2833 Set default dtmfmode for sending DTMF Default rfc2833 Other options info SIP INFO messages inband Inband audio requires 64 kbit codec alaw ulaw 113 auto Use rfc2833 if offered inband otherwise compactheaders yes send compact sip headers videosupport yes Turn on support for SIP video You need to turn this on in the this section to get any video support at all You can turn it off on a per peer basis if the general video support is enabled but you can t enable it for one peer only without enabling in the general section maxcallbitrate 384 Maximum bitrate for video calls default 384 kb s Videosupport and maxcallbitrate is settable for peers and users as well callevents no generate manager events when sip ua performs events e g hold alwaysauthreject yes When an incoming INVITE or REGISTER is to be rejected for any reason always reject with 401 Unauthorized instead of letting the requester know whether there was a matching user or peer for their request g 26nonstandard yes If the peer negotiates G726 32 audio use AAL2 packing order instead of RFC3551 packing order this is required for Sipura and Grandstream ATAs among others This is contrary to the RFC3551 specification the peer should be negotiating AAL2 G726 32
119. s resynchronized Useful to improve the quality of the voice with big jumps in broken timestamps usually sent from exotic devices and programs Defaults to 1000 Jbimpl fixed Jitterbuffer implementation used on the receiving side of a SIP channel Two implementations are currently available fixed with size always equals to jbmaxsize and adaptive with variable size actually the new jb of IAX2 Defaults to fixed jblog no Enables jitterbuffer frame logging Defaults to no authentication Global credentials for outbound calls i e when a proxy challenges your Asterisk server for authentication These credentials override any credentials in peer register definition if realm is matched This way Asterisk can authenticate for outbound calls to other realms We match realm on the proxy challenge and pick an set of credentials from this list Syntax auth user secret Q realm auth lt user gt lt md5secret gt lt realm gt Example auth mark topsecretOdigium com You may also add auth statements to peer definitions Peer auth override all other authentication settings if we match on realm Users and peers have different settings available Friends have all settings since a friend is both a peer and a user gt User config options Peer configuration context context callingpres callingpres permit permit deny deny secret secr
120. s permite establecer una comunicaci n con otros equipos en el mismo protocolo como es nuestro caso con un servidor Asterisk en su distribuci n 1 41 48 Cap tulo III 3 1 Requerimientos Se usaran los paquetes b sicos en software y hardware a su vez tambi n utilizaremos la central 3COM NBX V3000 en su Release 6 59 y sus paquetes de actualizaci n 3 1 1 Paquetes de software b sicos Fedora 9 Se utilizara a versi n 9 de Fedora tomando en cuenta que se utiliza como base para la instalaci n de otros paquetes cabe destacar que por renovaci n constante utilizaremos esta distribuci n en lugar de Fedora 6 como estuvo pensada en un inicio Asterisk 1 4 como se explico en el cap tulo 2 es un paquete de distribuci n libre que tiene las capacidades de un PBX Zaptel este modulo sirve de interconexi n con tarjetas anal gicas que en su mayor a son distribuidas por la compa a Digium para utilizaci n de distintos protocolos como ss7 h323 en nuestro caso utilizaremos un emulador denominado ZDummy que se utiliza si no se cuenta con tarjetas adicionales para simular el sincronismo y a su vez el paso de tonos Libpri Nos provee de las librer as necesarias para la configuraci n de varias caracter sticas de Asterisk en espec fico soporte para conexiones digitales Mrtg Nos permite monitorear el consumo del CPU el ancho de banda del servidor y as controlar el flujo de las llamadas realizadas Send Mail Este ser
121. scriptions Default is yes subscribecontext default Set a specific context for SUBSCRIBE requests Useful to limit subscriptions to local extensions Settable per peer user also notifyringing yes Notify subscriptions on RINGING state default no notifyhold yes Notify subscriptions on HOLD state default no Turning on notifyringing and notifyhold will add a lot more database transactions if you are using realtime limitonpeers yes Apply call limits on peers only This will improve status notification when you are using type friend Inbound calls that really apply to the user part of a friend will now be added to and compared with the peer limit instead of applying two call limits one for the peer and one for the user sip show inuse will only show active calls on the peer side of a type friend object if this setting is turned on This setting is available in the general section as well as in device configurations Setting this to yes enables T 38 fax UDPTL passthrough on SIP to SIP calls provided both parties have T38 support enabled in their Asterisk configuration This has to be enabled in the general section for all devices to work You can then disable it on a per device basis T 38 faxing only works in SIP to SIP calls with no local or agent channel being used t38pt_udptl yes Default false OUTBOUND SIP REGISTRATIONS Aste
122. sde el punto de vista del destinatario Si las descripciones fueran incompatibles la sesi n debe terminarse mediante una petici n con el m todo BYE 32 A terminar la sesi n lo que puede hacer cualquiera de las partes el agente de usuario de la parte que termin la sesi n actuando como UAC env a hacia la otra una petici n con el m todo BYE Cuando lo recibe el UAS genera la respuesta con el c digo de estado correspondiente Si bien se describi el caso de una sesi n bipartita el protocolo permite el establecimiento de sesiones multipartitas Tambi n permite que un usuario est registrado en diferentes ubicaciones pudiendo realizar la b squeda en paralelo o secuencial entre todas ellas Ejemplo de sesi n de llamada SIP entre 2 tel fonos ANVITE amp 100 Trying 4 amp 180 Ringing 6 amp 200 OK ACK 200 OK A SIP call session between 2 phones without SIP PROXY Figura 2 8 Ilustraci n de peticiones y respuestas generados en llamada SIP entre 2 Tel fonos Una sesi n de llamada SIP entre 2 tel fonos es establecida como sigue e El tel fono llamante env a un invite 33 e El tel fono al que se llama env a una respuesta informativa 100 Tratando retorna e Cuando el tel fono al que se llama empieza a sonar una respuesta 180 sonando es retornada e
123. se utilizan para establecer llamadas y redirigir el audio o video Cualquier invite despu s del invite inicial en la misma conversaci n se considera un reinvite Cuando dos usuarios han establecido la comunicaci n con canreinvite yes por defecto los paquetes RTP de audio podr an ser enviados de extremo a extremo sin pasar por el servidor Asterisk Esto normalmente no suele ser conveniente en casos en los que haya NAT en alguno de los clientes NAT yes Usando canreinvite no se forza a Asterisk a estar en medio no permitiendo que los puntos finales intercambien mensajes RTP directamente canreinvite yes Definimos un contexto en este caso la central 3com que es motivo de nuestro estudio tomando en cuenta que nuestro contexto principal es espevoip Servidor Asterisk lo definiremos mas adelante en el archivo extensions conf espeexternos type peer context espevoip host 200 6 80 232 canreinvite no 81 allow g723 1 allow g729 allow ulaw allow alaw Establecemos las extensiones a usar nuestro plan de marcaci n debe tener concordancia con la central 3com esto quiere decir que no tenga conflictos con las extensiones o servicios de dicha central Para esto se define las extensiones 44XX como vemos a continuaci n 4410 type friend context espevoip secret 123456 host dynamic nat yes dtmfmode rfc2833 username 4410 call limit 3 disallow all 82 allow g723 1 allow g729
124. sed if you use Asterisk behind a NAT device to communicate with services on the outside externip 192 188 58 176 Address that we re going to put in outbound SIP messages if we re behind a NAT The externip and localnet is used when registering and communicating with other proxies that we re registered with externhost foo dyndns net Alternatively you can specify an external host and Asterisk will perform DNS queries periodically Not recommended for production environments Use externip instead externrefresh 10 How often to refresh externhost if used You may add multiple local networks A reasonable set of defaults are localnet 10 1 0 0 255 255 252 0 1918 addresses are local networks slocalnet 10 0 0 0 255 0 0 0 Also RFC1918 slocalnet 172 16 0 0 12 Another RFC1918 with CIDR notation slocalnet 169 254 0 0 255 255 0 0 Zero conf local network The nat setting is used when Asterisk is on a public IP communicating with devices hidden behind a NAT device broadband router If you have one way audio problems you usually have problems with your NAT configuration or your firewall s support of SIP RTP ports You configure Asterisk choice of RTP ports for incoming audio in rtp conf gt 116 nat no Global NAT settings Affects all peers and users yes Always ignore info and assume NAT Use NAT mode only according to RFC3581 rport never Never attempt
125. te 1 77 PreTranslatorEntry Create 1 88 PreTranslatorEntry Create 1 99 PreTranslatorEntry Create 1 100 PreTransId Entry OperId Operation Value Jc rue ee PreTranslatorOperation Create 1 1 lstripLead 1 PreTranslatorOperation Create 1 2 lstripLead 1 PreTranslatorOperation Create 1 3 lstripLead 1 PreTranslatorOperation Create 1 4 lstripLead 1 PreTranslatorOperation Create 1 5 IstripLead 1 PreTranslatorOperation Create 1 6 lstripLead 1 PreTranslatorOperation Create 1 7 lstripLead 1 PreTranslatorOperation Create 1 8 lstripLead 1 PreTranslatorOperation Create 1 9 IstripLead 1 PreTranslatorOperation Create 1 10 lIstripLead 1 End of configuration III Configuration file command syntax guide Table Create nTableld szDescription Table Delete nTableld TableEntry Create nTableld nEntryId szDigits nMinDigits nMaxDigits szCallClass 155 nPriority nRouteld TableEntry Delete nTableId nEntryId DestinationRoute Create nRouteld szDescription DestinationRoute Delete nRouteld DestinationRouteEntry Create nRouteld nEntryId szExtension DestinationRouteEntry Delete nRouteId nEntryId DestinationRouteOperation Create nRouteId nEntryId nOperld szOperation szValue DestinationRouteOperation Delete nRouteId nEntryId nOperld TimedRoute Create nRoutelId nDefaultDestinationRouteld szDescription TimedRoute Delete nRouteld TimedRouteEntry Create nRouteld nEntryId szStartTi
126. ted SIP Interface Call Distribution Groups PSTN Gateway Configuration Extension 7001 NBX Messaging os SIP Applications Interface SIP Gateway El Dial Plan Description Asterisk Virtual Connections Downloads IP Address 6864 Licensing and Upgrades Port Bo Reports a Network Management Maximum number of simultaneous sessions 15 Country Settings C Internal Calls Calls on this trusted SIP interface will be treated as External Calls Figura 3 33 Central Telefonica NBX Direccion IP Servidor Con esto comprobamos que la interconexi n este realizada Definici n de usuarios Para afiadir un usuario en Asterisk nos dirigimos a la ubicaci n cd etc asterisk Editamos el archivo sip conf vi sip conf 100 Al final de este archivo a adimos una extensi n nueva 4417 type friend context espevoip secret 123456 host dynamic nat yes dtmfmode rfc2833 username 4417 call limit 3 disallow all allow g723 1 allow g729 allow gsm allow alaw allow ulaw 101 allow h263 allow h263p progressinband yes mailbox 4517 callerid Tesis prueba lt 4417 gt callgroup 1 pickupgroup 1 Salimos de este archivo guardando los cambios Definici n de extensiones Una vez definido el usuario definimos la extensi n editamos el archivo extensions conf vi etc asterisk extensions conf exten gt 4417 1 Dial SIP 4417 15 Ttr
127. test exten gt 600 n Playback demo echodone Let them know it s over exten gt 600 n Goto s 6 Start over You can use the Macro Page to intercom a individual user gt 76245 1 Macro page SIP Grandstreaml or if your peernames are the same as extensions exten gt _7XXX 1 Macro page SIP EXTEN System Wide Page at extension 7999 exten gt 7999 1 Set TIMEOUT absolute 60 exten gt 7999 2 Page Local Grandstream1 page amp Local Xlitel page amp Local 1234 page nld Give voicemail at extension 8500 exten gt 8500 1 VoicemailMain exten gt 8500 n Goto s 6 gt Here s what a phone entry would look like 1XJ for example exten gt 1265 1 Dial Phone phoneo0 15 137 exten gt 1265 n Goto s 5 The page context calls up the page macro that sets variables needed for auto answer 2 It is is own context to make calling it from the Page application as simple as Local peername Opage page exten gt _X 1 Macro page SIP EXTEN mainmenu Example main menu context with submenu exten gt s l Answer exten gt s n Background thanks Thanks for calling press 1 for sales 2 for support exten gt s n WaitExten exten gt 1 1 Goto submenu s 1 exten gt 2 1 Hangup include gt default submenu exten gt s I Ringing Make them comfortable with 2 seconds of ringback exten gt s n Wait 2 exten gt s n Background submenuop
128. this call to a telemarketer torture script exten _s 1 Goto s NOANSWER 1 Treat anything else as no answer exten gt a 1 VoicemailMain ARGI If they press send the user into VoicemailMain macro page gt Paging macro gt Check to see if SIP device is in use and DO NOT PAGE if they are S ARGI Device to page exten gt s lI ChanIsAvail ARGI ljs jis for Jump and s is for ANY call exten gt s n GoTolf AVAILSTATUS 1 autoanswer fail exten gt s n autoanswer Set ALERT INFO RA This is for the PolyComs exten gt s n SIPAddHeader Call Info Answer After 0 This 1s for the Grandstream Snoms and Others exten gt s n NoOp Add others here and Post on the Wiki exten gt s n Dial ARGI ID exten gt s n fail Hangup demo We start with what to do when a call first comes in exten gt s 1 Wait 1 Wait a second just for fun exten gt s n Answer Answer the line exten gt s n Set TIMEOUT digit 5 Set Digit Timeout to 5 seconds exten gt s n Set TIMEOUT response 10 Set Response Timeout to 10 seconds exten gt s n restart BackGround demo congrats Play a congratulatory message exten gt s n instruct BackGround demo instruct Play some instructions exten gt s n WaitExten Wait for an extension to be dialed exten gt 2 1 BackGround demo moreinfo Give some more information exten gt 2 n Goto s instruct exten
129. to use this If you define a SIP proxy as a peer below you may call SIP proxyhostname user or SIP user proxyhostname where the proxyhostname is defined in a section below Useful CLI commands to check peers users Sip show peers sip show users sip show registry sipdebug reload chan sip so general context default allowguest no allowoverlap no allowtransfer no srealm mydomain tld bindport 5060 bindaddr 0 0 0 0 srvlookup yes domain mydomain tld pedanticzyes Show all SIP peers including friends Show all SIP users including friends Show status of hosts we register with Show all SIP messages Reload configuration file Active SIP peers will not be reconfigured Default context for incoming calls Allow or reject guest calls default is yes Disable overlap dialing support Default is yes Disable all transfers unless enabled in peers or users Default is enabled Realm for digest authentication defaults to asterisk If you set a system name in asterisk conf it defaults to that system name Realms MUST be globally unique according to RFC 3261 Set this to your host name or domain name UDP Port to bind to SIP standard port is 5060 bindport is the local UDP port that Asterisk will listen on IP address to bind to 0 0 0 0 binds to all Enable DNS SR V lookups on outbound calls Note Asterisk only uses the first host in SRV records Disa
130. ts Thanks for calling the sales department Press 1 for steve 2 for exten gt s n WaitExten exten gt 1 1 Goto default steve 1 exten gt 2 1 Goto default mark 2 default By default we include the demo In a production system you probably don t want to have the demo there gt include gt demo An extension like the one below can be used for FWD Nikotel sipgate etc Note that you must have a sipprovider section in sip conf exten gt _41X 1 Dial SIP EXTEN 2 sipprovider r Real extensions would go here Generally you want real extensions to be 4 or 5 digits long although there is no such requirement and start with a single digit that is fairly large like 6 or 7 so that you have plenty of room to overlap extensions and menu options without conflict You can alias them with names too and use global variables exten gt 6245 hint SIP Grandstream1 amp SIP Xlitel Joe Schmoe Channel hints for presence exten gt 6245 1 Dial SIP Grandstream1 20 rt permit transfer exten gt 6245 n dial Dial HINT 20 rtT Use hint as listed exten gt 6245 n Voicemail 6245 u Voicemail unavailable exten gt 6245 s 1 Hangup 5 1 same as exten gt 6245 dial 101 Voicemail 6245 b Voicemail busy exten gt 6361 1 Dial IAX2 JaneDoe rm ring without time limit exten gt 6389 1 Dial MGCP aaln 1 9 192 168 0 14 exten gt 6390 1 Dial JINGLE caller c
131. uarios Tel fonos 3COM 3101 Basic 3COM PCXSET Softphone 3COM Softphone Xlite Asterisk 3 3 1 1 Ubicaci n DIAGRAMA DE INTERCONEXION ASTERISK 3COM Tel fono IP q CPE ISP USUARIO CPE Tel fono 3COM Asterisk 1 42 200 6 86 4 NBX V3000 ISP USUARIO 200 6 80 232 ea Tel fono IP Tel fono 3COM Router empresa Tel fono IP Tel fono IP Tel fono 3COM Tel fono IP Figura 3 25 Topologia Proyecto 91 3 3 1 2 Definici n de extensiones Se ha definido las extensiones 44XX para el servidor Asterisk se ha pensado en tener solamente 4 digitos para mantener una simetr a con la central 3COM que tiene las extensiones 10XX 3 3 1 3 Instalaci n de un sistema de monitoreo de trafico Conjuntamente con los archivos de instalaci n como lo vimos en el punto 3 1 1 instalamos el paquete iptraf que nos muestra los puertos utilizados y paquetes bytes enviados que se muestra en una manera grafica como lo indica la figura Figura 3 26 Sistema de Monitoreo Analisis de Paquetes 1 http 127 0 0 1 reporte 92 MRIG Index Page Windows Internet Explorer E alex GO liz gizaren 211511 rjn Ele gd yew Favorites Toos Bunt Index Page MRTG Index Page Traffic Analysis for 2 voip espe edu ec CPU Load System User and Nice Processes Free Memory Percentage Free Memory MEME 4 6 8 10 12 14 16 18 20 22 0 2 4
132. uitos conmutados al igual que Internet es la concentraci n de redes p blicas mundiales de paquetes conmutados basados en IP ISDN En espa ol sus siglas significan Red Digital de Servicios Integrados Es un tipo de sistema de telefon a en red de circuitos conmutados disef ados para permitir la transmisi n digital de voz y datos sobre los cables telef nicos de cobre comunes lo que implica una mejor calidad y mayor velocidad que la disponible con los sistemas anal gicos PBX Centralita o tambi n llamada Central Telef nica para Negocios Privados Es una central telef nica propiedad de una empresa privada a diferencia de la central que es propiedad de un operador de telecomunicaciones o de una empresa de telefon a ASTERISK Es una aplicaci n de software libre bajo licencia GPL que proporciona funcionalidades de una central telef nica PBX Como cualquier PBX se puede conectar un n mero determinado de tel fonos para hacer llamadas entre s e incluso conectar a un proveedor de VoIP o bien a una RDSI IVR En espa ol sus siglas significan Respuesta Interactiva de Voz Es un sistema inform tico que permite que una persona t picamente quien llama por tel fono seleccione una opci n de un men de voz y se interconecte con otro sistema computarizado DID En espa ol sus siglas significan Discado Directo Interno en Europa es conocido como DDI Es una funci n que ofrecen las empresas de telefon a para usar
133. ults to global vmexten which defaults to asterisk disallow all allow ulaw dtmfmode inband only works with ulaw or alaw polycom type friend Friends place calls and receive calls context from sip Context for incoming calls from this user secret blahpoly hostzdynamic This peer register with us dtmfmode rfc2833 Choices are inband rfc2833 or info username polly Username to use in INVITE until peer registers Normally you do NOT need to set this parameter disallow all allow ulaw dtmfmode inband only works with ulaw or alaw progressinband no Polycom phones don t work properly with never pingtel type friend secret blah hostzdynamic nsecure port Allow matching of peer by IP address without matching port number insecure invite Do not require authentication of incoming INVITEs insecure port invite both qualifyz1000 Consider it down if it s 1 second to reply Helps with NAT session qualify yes uses default value Call group and Pickup group should be in the range from 0 to 63 callgroupz1 3 4 We are in caller groups 1 3 4 pickupgroup 1 3 5 We can do call pick p for call group 1 3 4 5 defaultip 192 168 0 60 IP address to use if peer has not registered deny 0 0 0 0 0 0 0 0 ACL Control access to this account based on IP address permit 192 168 0 60 255 255 255 0 ciscol type friend secret blah qualify 200 Qualify peer is no more than 200ms
134. vidor de correo no ayudara a notificar a los usuarios ciertos detalles de su extensi n 49 3 1 2 Hardware b sico Se utilizara un computador clon con las siguientes caracter sticas e Procesador Intel core 2 quad e Disco duro 250 Gb e 2Mb Memoria RAM e tarjeta de red 3 2 Instalaci n Existen varias distribuciones del Asterisk pero para nuestro desarrollo utilizaremos Asterisk 1 46 que a nuestro modo de ver es una versi n estable 3 2 1 Sistema Operativo Tomando en cuenta que uno de los sistemas de Linux m s estables es Fedora utilizaremos su versi n 9 para nuestra implementaci n 3 2 1 1 Instalaci n de Linux Fedora Core 9 1 Iniciamos el computador considerando que si el computador tiene datos en este tipo de instalaci n se perder n seleccionamos la primera opci n mostrada en el grafico 1 y pulsamos enter 50 Welcome to Fedora 9 Hastall or upgrade an existing system Install or upgrade an existing system text mode Rescue installed system Boot from local drive Memory test Press Tab to edit options Automatic boot in 53 seconds fedoro Figura 3 1 Pantallas de Instalacion 51 2 Seguimos con la instalaci n pulsando el bot n Next Siguiente mostrado la Figura 3 2 fedoro f EZ m B GB Figura 3 2 Pantallas de Instalacion 3 Seleccionamos el idioma espa ol que ser el idioma utilizado durante 1 proceso de Instalaci n 52
135. w allow gsm progressinband yes mailbox 4511 callerid Pablin lt 4411 gt callgroup 1 pickupgroup 1 4412 type friend context espevoip secret 123456 host dynamic nat yes dtmfmode rfc2833 username 44 12 call limit 3 disallow all allow g723 1 allow g729 allow ulaw allow alaw allow gsm allow h263 allow h263p progressinband yes mailbox 4512 callerid Pablin Celu lt 4412 gt callgroup 1 pickupgroup 1 4413 type friend context espevoip secret 123456 host dynamic nat yes dtmfmode rfc2833 126 username 4413 call limit 3 disallow all allow g723 1 allow g729 allow ulaw allow alaw allow gsm allow h263 allow h263p progressinband yes mailbox 45 13 callerid Pablin lt 4413 gt callgroup 1 pickupgroup 1 4414 type friend context espevoip secret 123456 host dynamic nat yes dtmfmode rfc2833 username 4414 call limit 3 disallow all allow g723 1 allow g729 allow ulaw allow alaw allow gsm progressinband yes mailbox 45 14 callerid Pablin lt 4414 gt callgroup 1 pickupgroup 1 4415 type friend context espevoip secret 123456 host dynamic nat yes dtmfmode rfc2833 username 4415 call limit 3 disallow all allow g723 1 allow g729 allow ulaw allow alaw allow gsm progressinband yes mailbox 4515 callerid Pablin lt 4415 gt callgroup 1 pickupgroup 1 127 4416 type friend context espevoip secret 123456 host dynamic nat yes dtmfmode rfc2833 username 4416 call limit 3 disallow all
136. x 4517 callerid Pablin con video2 lt 4417 gt callgroup 1 pickupgroup 1 etc asterisk extensions conf En este archivo definimos las extensiones y el n mero de Voice Mail A continuaci n se presenta un ejemplo de la definici n de una extensi n exten gt 4417 1 Dial SIP 4417 15 Ttr exten gt 4417 2 VoiceMail 4517 exten gt 4417 3 Hangup Igualmente en este archivo debemos definir el contexto de la central 3com tambi n se pueden definir otros contextos Siempre debemos incluir al contexto principal espevoip 45 dentro de los otros a definirse espeexternos que puedan comunicarse Un ejemplo como sigue a continuaci n espeexternos exten gt _10XX 1 Dial SIP EXTEN 9200 6 80 232 30 Ttr include gt espevoip Tambi n debemos definir los casilleros de voz a utilizarse Un ejemplo del c mo definir los casilleros de voz casillerosvoz exten gt 4517 1 Ringing exten gt 4517 2 Wait 2 exten gt 4517 3 Authenticate 2222 exten gt 4517 4 VoicemailMain s4517 include gt espevoip 2 6 Factibilidad 2 6 1 Ventajas Entre las principales ventajas que encontramos en esta implementaci n tenemos 46 El sistema anterior no brindaba una barata escalabilidad del mismo la implementaci n que se presenta en esta tesis soluciona la posibilidad de poder crecer en n mero de usuarios sin una inversi n demasiado grande La posibilidad de usar tel fonos
137. y M todos SIP Funcionamiento del protocolo El protocolo SIP permite el establecimiento de sesiones multimedia entre dos o m s usuarios Para hacerlo se vale del intercambio de mensajes entre las partes que quieren comunicarse Agentes de Usuario Los usuarios que pueden ser seres humanos o aplicaciones de software utilizan para establecer sesiones lo que el protocolo SIP denomina Agentes de usuario Estos son los puntos extremos del protocolo es decir son los que emiten y consumen los mensajes del protocolo SIP los que pueden ser un videotel fono un tel fono un cliente de software SoftPhone y cualquier otro dispositivo similar El protocolo SIP no se ocupa de la interfaz de estos dispositivos con el usuario final s lo se interesa en los mensajes que estos generan y c mo se comportan al recibir determinados mensajes 28 Los agentes de usuario se comportan como clientes UAC User Agent Clients y como servidores UAS User Agent Servers Son UAC cuando realizan una petici n y son UAS cuando la reciben Por esto los agentes de usuario deben implementar un UAC y un UAS Adem s de los agentes de usuario existen otras entidades que intervienen en el protocolo estos son los Servidores de Registro o Registrar los Proxy y los Redirectores Servidores de Registro o Registrar El protocolo SIP permite establecer la ubicaci n f sica de un usuario determinado refiri ndose con esto a en qu punto de la red est c
Download Pdf Manuals
Related Search
Related Contents
DEUTSCH PDF資料 Christie Digital Systems Roadster X4 User's Manual Kodak C763 Digital Camera User Manual Lecture Capture User Guide: Strategies for engaging your students VoicePrismPlus FR.qxd - TC Samsung Galaxy Gran 2 Duos TV manual do usuário(OPEN) Lojer.com Userdata Lojer User Manuals Healthcare R800xx En Fusion Research Database Utility User Manual v3_0 Copyright © All rights reserved.
Failed to retrieve file