AnsweredAssumed Answered

Asterisk IM Not Working

Question asked by vijay.singh on May 26, 2012
Latest reply on May 31, 2012 by Raiden_2

Hi,

 

I have installed Openfire 3.7.1 with Subscription 1.2.2, Registration 1.5.0, Presence Service 1.5.0, Redfire 0.0.0.06 & Asterisk-IM 1.4.0 plugin on Windows 2008 R2 64 bit. I am using mysql as database for openfire. I am using Spark 2.6.3 client. Users are able to chat, make video calls thru Redfire plugin. I have installed Asterisk 1.8.12.0. In openfire asterisk server is showing registered (green button) in Asterisk-IM pulgin configuration page. I have mapped sip account with users. Now problem is that SIP accounts are not showing resitered in Asterisk and users are not able to make calls thru phone menu/button from spark client. I am able to make calls if I directly register sip client like xlite on asterisk server. I am getting following log in Asterisk  when I try make call from Spark client:-

 

[May 26 14:38:35] NOTICE[5664]: channel.c:5346 __ast_request_and_dial: Unable to request channel SIP/1001

 

I am getting following debug logs in Spark client :-

 

<iq id="eaGwA-37" to="phone.dataserver" type="get">

  <query xmlns="http://jabber.org/protocol/disco#info" node="amit.kumar"/>

</iq>

 

<iq id="eaGwA-37" to="vijay.singh@dataserver/Spark 2.6.3" from="phone.dataserver" type="result">

  <query xmlns="http://jabber.org/protocol/disco#info" node="amit.kumar">

    <identity category="directory" name="phone" type="phone"/>

    <feature var="http://jabber.org/protocol/disco#info"/>

    <feature var="http://jivesoftware.com/phone"/>

  </query>

</iq>

 

<iq id="eaGwA-38" to="phone.dataserver" from="vijay.singh@dataserver/Spark 2.6.3" type="set">

  <phone-action xmlns="http://jivesoftware.com/xmlns/phone" type="DIAL">

    <jid>amit.kumar@dataserver</jid>

  </phone-action>

</iq>

 

<iq id="eaGwA-38" to="vijay.singh@dataserver/Spark 2.6.3" from="phone.dataserver" type="error">

  <error code="500" type="CANCEL">

    <undefined-condition xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>

    <text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">Unable to dial extention 1002: Channel 'SIP/1001' is not available</text>

  </error>

</iq>

 

My sip.conf & extenstions.conf are as following :-

 

sip.conf

---------------------------------------------------------------------------

[1001]
user = 1001
type = friend
secret = 1001
host = dynamic
callerid = 1001
context = default
mailbox = 1001@default

[1002]
user = 1002
type = friend
secret = 1002
host = dynamic
callerid = 1002
context = default
mailbox = 1002@default

 

extensions.conf

---------------------------------------------------------------------------

[default]
exten => 1001,1,Dial(SIP/1001,30)
exten => 1001,2,VoiceMail(1001@default)
exten => 1001,3,PlayBack(vm-goodbye)
exten => 1001,4,HangUp()

exten => 1002,1,Dial(SIP/1002,30)
exten => 1002,2,VoiceMail(1002@default)
exten => 1002,3,PlayBack(vm-goodbye)
exten => 1002,4,HangUp()

Kindly help.

Outcomes