I have a problem with setting up FreePBX trunk for 2N VoiceBlue for incoming calls.
I´m converted from old Asterisk PBX to FreePBX 15. On old Asterisk PBX it´s works, but I can´t figure it out how to make it to work on FreePBX.
On 2N VoiceBlue I have set two groups (one for each SIM card) and these groups call to 1001 or 1002 number (direct to the Asterisk PBX) when some call come in. So I can recognize from which SIM card call coming.
On old Asterisk PBX I have this sip registration:
type = friend
context = invoiceblue
host = dynamic
username = Brana
secret = AAA
disallow = all
allow = alaw
dtmfmode = rfc2833
qualify = yes
nat = no
and in extensions.conf I define what happen when 1001 (from SIM1) or 1002 (from SIM2) come in (call is directed to some IP phone).
BUT in FreePBX I don´t know how to configure it on FreePBX. I´m using chan_sip trunk and i have defined inbound route, but my best result is incoming call has served by default “s” extension.
My setting on FreePBX is:
Outgoing: Trunk Name Brana PEER Details type=friend context=from-internal host=dynamic username=Brana secret=AAA insecure=invite disallow=all allow=alaw dtmfmode=rfc2833 qualify=yes nat=no Incoming: USER Context: from-trunk USER Details: type=friend context=from-trunk insecure=port,invite host=XXX.XXX.XXX.XXX username=Brana secret=AAA dtmfmode=rfc2833 disallow=all allow=ulaw qualify=yes nat=no Register string: 1002
It works, it call (both ways) but incoming call is identified as a mobile number of source and not as a 1001 or 1002 so I can´t point to the different IP phones.
I thing, there is problem in registration (2N voice Blue is not registered to FreePBX correctly)
Can some one navigate me what should I fill to general setting of the trunk and to Incoming section in sip Settings and how to set Inbound Route?