Download FireBrick FB2500 User Manual

Transcript
VoIP
An Access reject with no message attribute will not sent any error to a non local IP requestor - add
a message to force this.
16.11.2.1. Call routing by RADIUS
To understand how call routing works you need to understand how call legs work. A call leg is a connection to or
from the FB2500 to another SIP device. It could be a SIP carrier or a telephone. Typically there is an incoming
call leg from a carrier or a phone, which needs to be authenticated, and then a call routing decision is made.
An Access Accept response can then contain the call routing attributes. This causes one or more outgoing call
legs to be created. These would typically be ringing telephones. Once one of these legs answers the others are
cancelled and the two legs are connected together to form a call. The purpose of the routing attributes is to
create these outgoing call legs, and to set up attributes such as CDRs and call recording.
Each call leg has a CLI (calling number), a Dialled number, a display Name, a number of CDR records (each
of which have CDR and Dialled as well), and finally a number of email addresses for call recording.
The response attributes are processed in order. Initially the last call leg is the originating call. When a new
outgoing leg is added, that becomes the current call leg.
Table 16.3. Access-Accept
AVP
No. Usage
Calling-Station-Id
31 Replaces CLI of current call leg.
Called-Station-Id
30 Replaces Dialled number of current call leg.
User-Name
1 Replaces the Name of the current call leg.
Filter-Id
11 Adds a call recording email address to the current call leg.
Chargeable-UserIdentity
89 Adds a CDR record with this CUI, and current CLI and Dialled attributes to
the current call leg.
SIP-AOR
121 Creates a new outgoing call leg. See below for formats
An outgoing call leg is created for each SIP-AOR entry, and it can be in one of the following formats. Each of
this can also include a number of digits and a + symbol at the start which specifies a delay before attempting
to connect that outgoing leg.
• number@carrier which causes a call via a known carrier. The part after the @ is the name of carrier in the
config. The Dialled number is set to the number specified, and the CLI is set from the originating call.
• tel:number which causes a call via a registered telephone. The Dialled number is set to the number specified,
and the CLI is set from the originating call.
• sip:uri which causes a call via a an arbitrary SIP URI. The Dialled number and CLI are set from the originating
call. This format allows sip:number@host and sip:user:pass@host and also sip:user:pass@host/number.
This final version makes a call using the sip:number@host target but authenticates using user and pass.
Tip
If the originating call leg is incoming and not get been connected, a single SIP-AOR response can be
provided of the format of a 3 digit response code, or 3xx:uri where 3xx is the response code (e.g. 302)
and is replaced by sip: and used as a Contact header in a 3xx response. Redirect only works on some
carriers/phones and serves to redirect the incoming call away from the FB2500.
16.12. Call recording
The FB2500 supports call recording by teeing off the two way audio from a call leg and sending to a SIP
endpoint. The SIP endpoint will then record the call and handle it in any way you wish.
94
www.voipon.co.uk [email protected] Tel: +44 (0)1245 808195 Fax: +44 (0)1245 808299