Asterisk version detection


How does Asterisk-IM detect the Asterisk version?

Sometimes it detects version 1.2, sometimes version 1.0. But i have the 1.4

2007.10.20 02:22:17 Connected via Asterisk Call Manager/1.0

2007.10.20 02:22:17 Successfully logged in

2007.10.20 02:22:17 Determined Asterisk version: Asterisk 1.2

2007.10.22 12:37:34 Connected via Asterisk Call Manager/1.0

2007.10.22 12:37:34 Successfully logged in

2007.10.22 12:37:34 Determined Asterisk version: Asterisk 1.0

2007.10.22 12:37:34 Successfully reconnected.

Does it support 1.4? May be it’s the main problem with Asterisk?

p.s. Btw, i have the permanent ‘On Phone’ status now in the Spark. How do i find the problem?

Log has these strings:

2007.10.22 12:21:05 OnPhoneTask: Could not find device/jid mapping for device SIP/10001 returning

2007.10.22 12:21:05 Adding channel SIP/

2007.10.22 12:21:05 OnPhoneTask: Could not find device/jid mapping for device SIP/ ret


Some SIP devices don’t have Asterisk-IM records in the Openfire. Can it be the problem?

And another bug: in the Openfire console->Asterisk-IM->Phone mapping->Device (combobox) never has the first entry from my sip.conf. All the entries are here except the first one.

Well that’s a couple of questions:

  • For most basic things Asterisk 1.0, 1.2 and 1.4 behave the same from the client perspective. Currently there is no distinction between 1.2 and 1.4, so 1.2 means “later than 1.0” and that’s all we need. Interestingly sometimes Asterisk-IM detects your 1.4 Asterisk as 1.0. Does that only happen after a reconnect, i.e. after Openfire lost the connection to Asterisk, or also on new connections, i.e. when you start Openfire or reload the Asterisk-IM plugin?

  • You don’t need mappings for all of your devices. Asterisk-IM works fine if only a few of them are associated with Openfire users.

  • Regarding the problem that some users are still staying “on the phone” it could help if you provide logs with the channels of the involved parties.

  • Regarding the bug with the missing first device in the combo box i’ve created PHONE-69 to track it.