Your Ad Here
 
Questions ? info@easylivecd.com

EasyLiveCD.com
FonoSIP.com
LiveCD VoIP Server
Linux LiveCD VoIP Server new
Screen Snapshots
Advanced Modules
Network Diagram
AZ Termination
Admin Book
Money Back Guarantee
Order now
Site Search
Contact
info@wifi.com.ar
Supported Phones
SIPphones
Nokia Symbian OS
Video Tutorials
Documentation
Site Search
Index
QuickStart
Admin Guide
B2BUA
Changelog
FAQ
Admin Book
Sip Phones
Subscribe to new releases
News
VoIP
Linux forums
Tutorials new
WiFi.com.ar


Languages
es it fr pt de gr fi cn ko ja ru hi ar lang world

Documentation Index

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




Products and Services Linux LiveCD Router | Hotspot Server | Media Server | Money Back Guarantee | Printed Book Format | Online Documentation |
Follow us on Twitter | ba.net



Contact us info@easylivecd.com
© EasyLiveCD.com, FonoSIP.com, WiFi.com.ar, BA.NET
>