yjftwo

Can't call phone through spark?

Discussion created by yjftwo on Jan 2, 2008
Latest reply on Jan 9, 2008 by yjftwo

I insert asterisk-1.4.15 in CentOS ,the ip address is 192.168.0.121,insert spark-2.5.8 and asterisk-im1.4.0 in WinXP, IP address is 192.168.0.122

 

 

asterisk: sip.conf                                   

 

 

type=friend

username=test1

secret=6666

host=dynamic

nat=yes             

canreinvite=no            

context=incoming

disallow=all

allow=gsm             

allow=ulaw

allow=alaw

 

 

type=friend

username=test2

secret=8888

host=dynamic

nat=yes             

canreinvite=no            

context=incoming

disallow=all

allow=gsm             

allow=ulaw

allow=alaw

 

 

extension.conf

 

 

exten => _ZXXX,1,Answer

exten => _ZXXX,2,Dial(SIP/$,40,Ttr)

exten => _ZXXX,Hangup

 

 

 

manager.conf

 

 

 

secret = spark

deny=0.0.0.0/0.0.0.0

permit=192.168.0.122/255.255.255.0

writetimeout = 100

read = system,call,log,verbose,command,agent,user,config

write = system,call,log,verbose,command,agent,user,config

 

 

in spark admin asterisk-im page add server:

 

 

name       address              port      username

 

 

asterisk  192.168.0.121   5038    spark

 

 

the phone mappins:

 

 

username       device       extension     

 

 

test1               SIP/6666      test1

 

 

test2              SIP/8888      test2

 

 

the config is ok, I started the asterisk and openfire, the openfire console show "asterisk Successfully logged in and Initializing done ".the asterisk console show "Manager spark logged on from 192.168.0.122 " . I login 6666 and 8888 use X-lite,login teste1 and test2 use spark,next  I use "test1 " call 8888,the x-lite 6666 show incoming call ,but after i clicked dial answer the call,the call  immediately hangup. the asterisk console show "SIP/6666-09374b98 sent into invalid extension 's' in context 'default ,but no invalid hander '" so I use spark user test1 can't called to 8888 why??? thanks.

Outcomes