Outgoing Trunk port ignored

I set up a outgoing trunk to interface with an obi200 ATA. In the description, I specified the port to be 5062 on both ends. However, Asterisk always tries to access the obi200 using port 5060. If I specify obi200 with UserAgentPort equal to 5060, it will work no matter what I specify in the Asterisk. However, if I specify the port to be 506x with x not equal to zero, the outgoing trunk still tries to access the port 5060 even though the trunk port was specified also to be 506x, As a result, the connection always fail (UNREACHABLE from “sip show peers”).
Can someone tell me why this is the case and how to fix that?
The Outgoing Peer Details are as follows.
[obi200]
type = friend
host=192.168.2.xx
port = 506x
username=obi200
qualify=yes
dtmfmode=rfc2833
disallow=all
context=obi-in
canreinvite=no
directmedia=no
disallow=all
allow=ulaw

You can only specify port in the general section for chan_sip. You cannot have a different value for each call.

@twinclouds01

PJSIP channel driver supports multiple transports (i.e. local IP:ports) and multiple destination ports.
If you really need that, try migrating to PJSIP driver.