A
A
Alexey Korolev2014-12-05 12:35:29
Asterisk
Alexey Korolev, 2014-12-05 12:35:29

How to set up receiving calls from two operators?

The trunks are configured, I did not find a complete description of the extensions.conf syntax in the internet.
It should pour like this:
1 operator: 1 (number in international format without a plus)
2 operator: 2 (number in international format without a plus)
Thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Armenian Radio, 2014-12-05
@gbg

exten => _9.,1,NoOp()
exten => _9.,2,Dial(SIP/trunk1/${EXTEN:1})
exten => _9.,3,Hangup()

exten => _8.,1,NoOp()
exten => _8.,2,Dial(SIP/trunk2/${EXTEN:1})
exten => _8.,3,Hangup()

If you write 9 at the beginning of the number, it will go through trunk1, if 8 - through trunk2

R
Rsa97, 2014-12-05
@Rsa97

What, the official manual was also not found? Yes, and examples of dialplans in the internet sea.

exten => _1!,1,Dial(SIP/Trunk1/${EXTEN:1})
exten => _2!,1,Dial(SIP/Trunk2/${EXTEN:1})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question