8 Replies Latest reply on Apr 29, 2008 8:17 PM by Ra

    Problem connecting SIP devices

    Bronze

       

      Hi All,

       

       

       

       

       

      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:

       

       

      1. When status of linked endpoints or extensions changes, it is not reflected in User Summary in User/ Group tab.

       

       

      2. 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.

       

       

      Any comment or suggestion will be helpful.

       

       

      Thanks & Regards

       

       

      Ra

       

       

        • Re: Problem connecting SIP devices
          Stefan Reuter KeyContributor

          Your configuration looks fine. Can you also show your Asterisk's manager.conf and the debug log output of Openfire?

            • Re: Problem connecting SIP devices
              Bronze

              Hi srt,

               

              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.

               

               

              Regards,

               

               

               

               

              Ra

                • Re: Problem connecting SIP devices
                  Bronze

                   

                  srt,

                   

                   

                  not sure if this will be useful or not or what these messages mean but saw these messages under info.log

                   

                   

                   

                   

                   

                  008.04.29 14:05:31 Initializing phone plugin

                   

                  2008.04.29 14:05:33 Initializing Asterisk Manager connection

                                 2008.04.29 14:05:35 Connecting to 192.168.2.7:5038               2008.04.29 14:05:37 Connected via Asterisk Call Manager/1.0               2008.04.29 14:05:37 Successfully logged in               2008.04.29 14:05:37 Determined Asterisk version: Asterisk 1.4               2008.04.29 14:05:37 Initializing done               2008.04.29 14:05:43 Started server (unencrypted) socket on port: 5269               2008.04.29 14:05:44 Started plain (unencrypted) socket on port: 5222               2008.04.29 14:05:44 Started SSL (encrypted) socket on port: 5223               2008.04.29 14:12:35 Adding channel SIP/902-093c77d0(1209442353.0)               2008.04.29 14:12:35 OnPhoneTask called for user PhoneUser{id=17, username='902'}               2008.04.29 14:12:35 no sessions               2008.04.29 14:12:35 Adding channel SIP/901-093d2930(1209442353.1)               2008.04.29 14:12:35 OnPhoneTask called for user PhoneUser{id=15, username='901'}               2008.04.29 14:12:35 no sessions               2008.04.29 14:12:35 SIP/902-093c77d0 dialed SIP/901-093d2930               2008.04.29 14:12:37 Removing channel SIP/901-093d2930 due to hangup (NORMAL)               2008.04.29 14:12:37 Removing channel SIP/902-093c77d0 due to hangup (NORMAL)

                   

                   

                   

                   

                  Regards,

                   

                   

                  Ra

                   

                   

                  • Re: Problem connecting SIP devices
                    Stefan Reuter KeyContributor
                    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?

                      • Re: Problem connecting SIP devices
                        Bronze

                        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

                          • Re: Problem connecting SIP devices
                            Bronze

                             

                            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.

                             

                             

                              • Re: Problem connecting SIP devices
                                Bronze

                                 

                                 

                                 

                                 

                                Hi srt,

                                 

                                 

                                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

                                 

                                 

                                any suggestion???

                                 

                                 

                                 

                                 

                                 

                                 

                                 

                                 

                            • Re: Problem connecting SIP devices
                              Bronze

                              Anyone ... please help ... I'm running out of time need to give a demo day after tomorrow ... and have tried everything possible