Openfire add wrong SIP channel

Hello!

At first of all i mast say that i know english not very well, please use easy english!

I try to use Asterisk-IM, but whan i try to connect from Spark, its didn’t connect and drop connection for some time.

It Openfire log files i see:

Addin channel SIP/222.222.222.222-018e21d1

OnPhoneTask: Could not find device/jid mapping for device SIP/222.222.222.222

Removing channel SIP/222.222.222.222 due to hangup (NOTDEFINED)

Where IP: 222.222.222.222 is my real internet IP, BUT in intranet must be channel like: SIP/1104-34b3f231

(i have 2 devices eth0 222.222.222.222, eth1 10.1.1.1.111)

I didn’t understand how can i show Openfire on what eth device it must open channel…

(When i call from other SIP phones, like XLite, in Openfire log i see:

Addin channel SIP/1104-34b3f231

OnPhoneTask: Could not find device/jid mapping for device SIP/1104 returning

Addin channel SIP/1117-3ab3f2a1

OnPhoneTask: Could not find device/jid mapping for device SIP/1117 returning

SIP/1104-34b3f231dialed SIP/1117-3ab3f2a1

Removing channel SIP/1117-3ab3f2a1 due to hangup (NORMAL)

Removing channel SIP/1104-34b3f231 due to hangup (NOTDEFINED)