I have been trying to configure Asterisk IM to my Asterisk server but without any luck. I have been able to get Asterisk IM configured for my setup i.e. Openfire Admin server status is “Green”.
I have also configured Openfire Users in Users/Group tab and linked it to Asterisk channes via Asterisk IM/ Phone Mapping tab. (attached screenshots)
Now my problem is:
When status of linked endpoints or extensions changes, it is not reflected in User Summary in User/ Group tab.
Although I do see status changes on the softphones, but I want to implement instant messaing and I have no idea how to do that.
I will be really grateful if some could help me make appropriate configurations. I have run out of options no dont know what to do next.
Thanks for your reply. I am copying config info for asterisk and also attaching debug log file (after restarting asterisk, openfire, sip softphone and placing calls via softphones) for openfire.
2008.04.29 14:12:35 Could not find device/jid mapping for device 'SIP/902': returning null
2008.04.29 14:12:35 Could not find device/jid mapping for device 'SIP/901': returning null
Did the users log in to Openfire before you started the calls?
I am connecting SIP softphone and they register fine with asterisk i.e. I am able to make and recieve calls. As far as I know they do get SIP OK event for SIP Register request.
I have not made any changes to the SIP softphone for openfire … do I need to make any changes???
Asterisk Debug Logs:
Extension Changed 901[internal] new state Idle for Notify User 902
Extension Changed 902[internal] new state InUse for Notify User 901
– Executing 901@internal:1 Answer(“SIP/902-093c77d0”, “”) in new stack
– Executing 901@internal:2 Dial(“SIP/902-093c77d0”, “SIP/901”) in new stack
– Called 901
– SIP/901-093d3ec0 is ringing
Extension Changed 901[internal] new state Ringing for Notify User 902
Extension Changed 901[internal] new state InUse for Notify User 902
– SIP/901-093d3ec0 answered SIP/902-093c77d0
== Spawn extension (internal, 901, 2) exited non-zero on ‘SIP/902-093c77d0’
Extension Changed 901[internal] new state Idle for Notify User 902
Extension Changed 902[internal] new state Idle for Notify User 901
I installed spark and tried connecting it to the OpenFire server and even that isn’t working it gives error saying “Can’t connect to server: invlid name or server not reachable”
I tried with user defined in “User/Group” page and I am able to ping my OpenFire server from that machine and moreover I am able to register SIP Softphone to the Asterisk server running on same machine as openfire … so finding server should not be an issue.
spark instant messanger is working fine now … had to open ports in the firewall. but I am still not able to get SIP softphone working. it’s still giving following error message.
2008.04.30 10:31:30 Could not find device/jid mapping for device ‘SIP/901’: returning null
2008.04.30 10:31:30 000068 (01/05/00) - Connection #3 tested: OK
2008.04.30 10:31:30 000069 (01/05/00) - Connection #3 tested: OK
2008.04.30 10:31:30 Could not find device/jid mapping for device ‘SIP/902’: returning null