A
A
and7ey2012-11-11 12:00:24
Asterisk
and7ey, 2012-11-11 12:00:24

How to set up forwarding in Asterisk?

There is a simple task - to teach Asterisk to receive calls from SIP Beeline and forward them to my mobile phone.

I installed Asterisk 1.8.17.0 on the Asus RT-N16 router. In /opt/etc/asterisk/sip.conf I wrote in the [general] section :

register => [email protected]:password:[email protected]@msk.sip.beeline.ru:5060/7499952XXXX.

Checking:

RTR*CLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
msk.sip.beeline.ru:5060 N [email protected] 105 Registered Thu, 01 Jan 1970 00:10:38
1 SIP registrations.


Everything seems to be OK?

How to set up now
  • being able to connect to Asterisk from X-Lite?
  • forwarding all calls to my mobile?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
caiser, 2012-11-11
@and7ey

1. host=sip.beeline.ru - must be host=dynamic or ip-notebook, but not the address of the Beeline server.
2. In addition to the registration line, you also need to create a separate device for the provider's peer.
By analogy with 6000,
[beeline]
context=from-beeline
type=peer
secret=password
fromuser=7499952XXXX
host=sip.beeline.ru
canreinvite=no It
remains to write the dialplan correctly,
[from-beeline]
exten => _X.,1, Dial(SIP/beeline/your_mobile_phone)

S
SysCat, 2012-11-11
@SysCat

Try reading here .

B
beho1der, 2012-11-11
@beho1der

I also advise you to immediately take steps for the security of asterisk, for example, as described here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question