P
P
pcdesign2013-09-06 09:35:53
Asterisk
pcdesign, 2013-09-06 09:35:53

How to register multiple hosts in a Trixbox trunk?

There is Trixbox.
In the
Edit SIP Trunk -> Incoming Settings -> USER Details section:
You can specify the host from where incoming calls will come from.
And it all works great when there is only one host.
trixbox_v2.6.1.1_config7.gif
But what if there are many hosts and incoming calls come from different hosts and IPs?
For example:
sip0.zadarma.com
sip1.zadarma.com
sip2.zadarma.com
sip3.zadarma.com
PS We don't want to allow anonymous calls.
For each host to create a separate trunk?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
S
stavinsky, 2013-09-06
@stavinsky

host can be only one or dynamic if it is an incoming connection.
In your case, I would make it dynamic, and limit the connectivity like this:
permit=sip0.zadarma.com
...
permit=sip3.zadarma.com
deny=all
PS insecure=very - obsolete at about 1.4 Aster, now insecure=port, invite (although things may have changed)

P
Puma Thailand, 2013-09-06
@opium

It is correct to create your own trunk for each connection, you don’t need these speakers here.

A
Anfinagen, 2013-09-06
@Anfinagen

Several trunks are correct. You can also google the enumeration through the symbol & ... I can’t find the link now

A
Anfinagen, 2013-09-06
@Anfinagen

Tried to find. but apart from the fact that & is used in the configs, nothing has dug up ...
there is an example of a config sent by Rostelecom
USER Context
reinvite=yes
host=188.254.57.4&188.254.67.4 - here are your addresses.
port=5060
insecure=invite,port
type=friend
something like this... I did it differently in the end...

I
IgorDimitrov, 2013-09-16
@IgorDimitrov

If using Zadarma there are difficulties with registering all servers, there is another way to get around this:
- register registration on the sip.zadarma.com server and only on it. When registering on it, balancing will only concern RTP data, that is, all calls will be signaled only from sip.zadarma.com. In order not to jump to another server by SRV record, it is better to turn it off (srvlookup=no).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question