Register second trunk on same carrier
Posted: Thu Aug 06, 2020 2:07 am
Hi, I'm not expert of vicidial and asterisk, but i didn't found a solution for my problem so asking for help. Here's my vicidial version:
I'm trying to add second trunk and register it on same carrier like first trunk. Both are successfuly registered but, second trunk register with same port - 5060. When trying to get a call there's an warning in console, in same time first trunk work fine and after deactivate first trunk second work fine.
First trunk config
Second trunk, after some research i experment with diffrent settings but without success.
When I register softphones to my carrier everyone register with random port, so I assume it's not problem with carrier.
Thanks in advance.
VERSION: 2.14-730a
BUILD: 191121-2256
Asterisk Version: 13.21.1-vici
I'm trying to add second trunk and register it on same carrier like first trunk. Both are successfuly registered but, second trunk register with same port - 5060. When trying to get a call there's an warning in console, in same time first trunk work fine and after deactivate first trunk second work fine.
[Aug 5 19:12:46] WARNING[1178][C-00001046] chan_sip.c: Received response: "Forbidden" from '"V8051912460000033992" <sip:0000000000@192.168.1.81>;tag=as74e9
[Aug 5 19:12:46] VERBOSE[17485][C-00001046] app_dial.c: Everyone is busy/congested at this time (1:0/0/1)
First trunk config
- Code: Select all
register => xxx:xxx@192.168.0.3:5060
[testcarrier]
disallow=all
allow=alaw
type=friend
username=xxx
secret=xxx
host=192.168.0.3
dtmfmode=rfc2833
context=trunkinbound
insecure=invite
nat=yes
trunk = SIP/testcarrier
exten => _948XXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _948XXXXXXXXX,2,Dial(${trunk}/${EXTEN:3},,To)
exten => _948XXXXXXXXX,3,Hangup
Second trunk, after some research i experment with diffrent settings but without success.
- Code: Select all
register => xxx:xxx@192.168.0.3
[testncp2]
disallow=all
allow=alaw
type=friend
username=xxx
secret=xxx
dtmfmode=rfc2833
context=trunkinbound
port=5061
host=192.168.0.3
insecure=port,invite
nat=force_rport,comedia
trunk2 = SIP/testncp2
exten => _848XXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _848XXXXXXXXX,2,Dial(${trunk2}/${EXTEN:3},,To)
exten => _848XXXXXXXXX,3,Hangup
When I register softphones to my carrier everyone register with random port, so I assume it's not problem with carrier.
Thanks in advance.