spacerspacerspacerspacerspacerspace ENGLISH site spanish site otros idiomas

easylivecd.com
Software LiveCD
Software Linux LiveCD Router para Banda Ancha y WiFi new!
Download gratis!
Router PRO
LiveCD HotSpot
Firewall PRO
VoIP Server
Documentación
Libro Admin
Soluciones a Medida
Order now
Noticias
WiFi Blog
VoIP
Seguridad y Firewall
Virus Alert
Foros Linux y WiFi
Tutorials new
easylivecd.com
Hardware
Access Points
Tarjetas WiFi
Firewall
VoIP


Sites
English Site
Spanish Site
Other Languages

Escríbanos a info@easylivecd.com

Indice de la Documentación

ASTERISK B2BUA
http://www.wifi.com.ar/english/voip.html




ASTERISK B2BUA


To send calls to your PSTN termination provider using the B2BUA
add this to your /usr/local/etc/ser/ser.cfg


       # send out 222 prefix to B2BUA
        if (uri=~"^sip:222[0-9].*@.*") {
               if (!is_user_in("From", "ld")) {
                       sl_send_reply("403", "Payment required");
                       break;
                };
                strip (2);
                rewritehostport("ipof.your.voipserver:6060");
                if (!t_relay()) {
                        sl_reply_error();
                };
                break;
        };


- B2BUA
to start b2bua run
/usr/local/asterisk/usr/sbin/asterisk

to connect a monitoring command line to a running asterisk b2bua
/usr/local/asterisk/usr/sbin/asterisk -r


- Mysql CDR

CDRs are stored on the mysql table cdr
CDRs are guaranteed, even if the UA crashes or the PSTN gateway 
does not send a BYE message. Since the b2bua is always in the call 
path, and can detect if the rtp stream has ended or timed out.



- Distributed RTP stream 

To do Distributed RTP streams, install a Linux LiveCD VoIP Router, 
and b2bua module in a separate machine. 

Replace ipof.your.voipserver:6060 for the new ip 

Ping times from the machine running asterisk b2bua and your pstn 
termination provider should be as small as possible


- B2BUA demo configuration

/etc/asterisk/sip.conf

;
; SIP Configuration for Asterisk
;
[general]
port = 6060            ; Port to bind to
bindaddr = 0.0.0.0     ; Address to bind to
context = from-sip     ; Default for incoming calls
callerid=No CallID
rtptimeout=60
[testvoip]
context=testvoip
type=friend
host=210.90.90.90
nat=yes
rtptimeout=60
disallow=all                
allow=g729
allow=gsm


/etc/asterisk/iax.conf

disallow=all                
allow=ulaw                 
allow=alaw
allow=g729
allow=gsm
allow=ilbc

[demo]
type=peer
username=asterisk
secret=supersecret
host=216.207.245.47
;sendani=no   
;host=asterisk.linux-support.net
;port=5036
;mask=255.255.255.255
;qualify=yes    ; Make sure this peer is alive
;jitterbuffer=no        ; Turn off jitter buffer for this peer

[level3]
type=peer
username=fonosip
secret=secret
host=216.19.19.19
context=default
;auth=md5


/etc/asterisk/extensions.conf

[testvoip]
exten => _1.,1,Dial(SIP/${EXTEN}@203.90.90.90,,r)

;exten => _1.,1,Dial(IAX2/testvoip@level3/${EXTEN})
;exten => _011.,1,Dial(IAX2/testvoip@level3/${EXTEN})


/etc/asterisk/cdr_mysql.conf

[global]
hostname=localhost
dbname=ser
password=heslo
user=ser
;port=3306
sock=/var/run/mysql/mysql.sock
;userfield=1


- Important configuration and startup files

/usr/local/etc/ser/ser.cfg
/etc/asterisk/sip.conf
/etc/asterisk/iax.conf
/etc/asterisk/extensions.conf
/etc/asterisk/cdr_mysql.conf

Indice de la Documentación




Productos y Servicios | Software Linux LiveCD Router | Download | Firewall PRO | HotSpot WIFI | E-Mail Server | File Server | E-Mail Server | Documentación | Personalización | Distribuidores | Pedidos
Hardware Access Points | Tarjetas PCMCIA | Firewall
Foros Soporte Linux Noticias WIFI | Tecnologia | Internet | Telecom | Software | Seguridad y Firewall new | Virus Alert new |
Idiomas English Site | Spanish Site Google German Site | Italian Site | French Site | Portuguese Site




Escríbanos a info@wifi.com.ar
© WiFi.com.ar, EasyLiveCD.com, Brujula.Net

>