Softphone to Gtalk showing extension not found error

Hi

when i click on call button in my gmail ,its calls a softphone(twinkle) user on my machine but I was looking for solution like if i dial an extension say “300” the call should be routed to the gtalk which i have specified in my extensions.conf.

when i called to extension 300 it shows a message " extension not found in phones and call rejected message " ,i want to redirect the call to other-email-id instead. (Please refer the configuration files attached below)
Any help is much appreciated , thanks

Here are my config files

sip.conf
[gtalkphone]
type=friend
context=phones
host=dynamic

extensions.conf
[google-in]
exten => s,1,NoOp( Call from Gtalk )
exten => s,n,Set(CALLERID(name)=“From Google Talk”)
exten => s,n,Dial(SIP/gtalkphone,5)
exten => s,n,Answer()
exten => s,n,Playback(digits/1)
exten => s,n,Playback(digits/1)
exten => s,n,Hangup()
[google-out]
exten => 300,1,Dial(gtalk/asterisk/other-email-id@gmail.com)

jabber.conf
general]
debug=yes
autoprune=no
autoregister=no

[gtalk_account]
type=client
serverhost=talk.google.com
username=asterisktest.gtalk@gmail.com/Talk
secret=********
port=5222
usetls=yes ; TLS is required by talk.google.com, you’ll get a ‘socket read error’ without
usesasl=yes
buddy=other-email-id@gmail.com
statusmessage="Yeah… using asterisk"
timeout=100

gtalk.conf
[general]
bindaddr=192.168.1.6
context=google-in
allowguest=yes
;
[guest]
disallow=all
allow=ulaw
context=google-in
[buddy]
username=other-email-id@gmail.com
context=google-in ;order apparently matters, needs to be placed after username= ?
disallow=all
allow=ulaw
connection=asterisk


i found the solution , the connection=asterisk was not same in gtalk and jabber . I corrected it and now am able to call my gtalk user from softphone.

When i answer the call on my gtalk account the CLI displays " chan_gtalk.c:626 gtalk_is_answered: Could not find session in iq"
what does this means?

Woww Asterisk is amazing , I am enjoying it :laughing: