Page 1 of 1

Multiple Host IP allow Possible ?

PostPosted: Tue Jul 30, 2013 5:19 am
by ashis103
Hello

would you please let me know how I can add more IP in host option for inbound trunk?

[out1]
type=peer
context=trunkinbound
usecallerid=yes
trustrpid=yes
sendrpid=yes
host=192.168.1.70 ?????????# How I can add more IP ##???
qualify=yes
insecure=port,invite
disallow=all
allow=ulaw
dtmfmode=auto
---------------------------------------
Asterisk 1.4.44-vici

Server : Cluster
ISO ::ViciBox.x86_64-4.0.3.iso
ViciBox Server v.4.0!
SVN Version: 1953
DB Schema Version: 1341
Kernel:
Linux ccdial1 3.1.10-1.19-default #1 SMP Mon Feb 25 10:32:50 UTC 2013 (f0b13a3) x86_64 x86_64 x86_64 GNU/Linux
VERSION: 2.6-396a
BUILD: 130402-2322

Server :Cluster:: No senguma , No other SW install .

Re: Multiple Host IP allow Possible ?

PostPosted: Tue Jul 30, 2013 1:01 pm
by williamconley
Code: Select all
[in1]
type=peer
context=trunkinbound
usecallerid=yes
trustrpid=yes
sendrpid=yes
host=192.168.1.70
host=192.168.1.10
host=192.168.1.20
host=192.168.1.30
qualify=yes
insecure=port,invite
disallow=all
allow=ulaw
dtmfmode=auto
[out1]
type=peer
context=trunkinbound
usecallerid=yes
trustrpid=yes
sendrpid=yes
host=192.168.1.79
qualify=yes
insecure=port,invite
disallow=all
allow=ulaw
dtmfmode=auto
[out2]
type=peer
context=trunkinbound
usecallerid=yes
trustrpid=yes
sendrpid=yes
host=192.168.1.81
qualify=yes
insecure=port,invite
disallow=all
allow=ulaw
dtmfmode=auto
[out3]
type=peer
context=trunkinbound
usecallerid=yes
trustrpid=yes
sendrpid=yes
host=192.168.1.35
qualify=yes
insecure=port,invite
disallow=all
allow=ulaw
dtmfmode=auto

for inbound this works well. for outbound you should only have one (create a new context for each) so you can specify which to send the call through. but for inbound all will be accepted and treated the same.

Re: Multiple Host IP allow Possible ?

PostPosted: Wed Jul 31, 2013 7:10 am
by ashis103
Thank you again William .. you are very helpful guys .:d