Event on the wrong trunk

Hello, Could somebody help me. We have 4 trunks from the same ip(4-ports GSM-gateway). All trunks on the FOP2 - Version 2.31.05, FreePBX 13 and asterisk 13. I've configured different DID from every trunk. All Trunks have the following settings:
secret=pass 
context=from-trunk 
type=friend 
username=name1 
insecure=port,invite 
canreinvite=no 
dtmfmode=rfc2833 
host=dynamic 
port=5060 
disallow=all 
allow=ulaw&alaw 
qualify=yes 
nat=no

But when incoming call is coming, Fop panel display event at the same trunk. Even if call goes from trunk1, trunk3 or trunk4 fop2 show incoming call at the trunk2, or sometimes show it randomly.

Comments

  • FOP2 monitor devices (SIP/xxx.xxx.xxx or SIP/somename). It does not know anything about DIDs.

    If calls to/from your trunks all have the same device name, then you won't be able to discern them with FOP2, even if they go to different routes based on the DNID (as that logic is set on the dialplan, while the device name is always the same).

    So, unless you can configure Asterisk to use different device names for your trunks, you won't be able to monitor them uniquely with FOP2.

    Best regards,
Sign In or Register to comment.