K
K
kondrash0552017-08-21 17:56:21
Asterisk
kondrash055, 2017-08-21 17:56:21

How to properly set up forwarding from sip to mobile in freepbx?

Good day.
There is a provided trunk from the provider without authentication by login and password of the form:
type=peer
nat=no
insecure=port,invite
host=xx.xx.xx.xx
dtmfmode=inband
disallow=all
allow=alaw
type=user
there is also naked freepbx and the need to set up forwarding from this trunk to a mobile phone, and later to another trunk.
how to do it right?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor, 2017-08-21
@awsswa59

Three steps:
Get a new virtual SIP number
From the destination trunk - Virtual SIP number
In the virtual SIP number - write your mobile phone number in FollowMe
Why is it so difficult? because sooner or later someone will want that there would be no calls after 19-00 and Time Conditions will have to be built into the scheme

P
pcdesign, 2017-08-21
@pcdesign

I don't know about "correct".
But, one of the options is to add a line to the trunk:
And in the file /etc/asterisk/extensions_custom.conf add:

[mobile903]
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,Dial(SIP/979035550055,60,m(default)tw)
exten => s,n,Hangup

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question