[asterisk-bugs] [Asterisk 0012085]: problem with guest account in gtalk

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Feb 29 22:19:02 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12085 
====================================================================== 
Reported By:                junky
Assigned To:                phsultan
====================================================================== 
Project:                    Asterisk
Issue ID:                   12085
Category:                   Channels/chan_gtalk
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.18 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             02-27-2008 00:21 CST
Last Modified:              02-29-2008 22:19 CST
====================================================================== 
Summary:                    problem with guest account in gtalk
Description: 
deer*CLI> gtalk show channels 
Channel                         Jabber ID                       Resource  
      Read  Write 
deer*CLI>

deadlocks...

deer*CLI> core show locks 
deer*CLI> 
=======================================================================
=== Currently Held Locks ==============================================
=======================================================================
===
=== <file> <line num> <function> <lock name> <lock addr> (times locked)
===
=== Thread ID: 1073985856 (listener             started at [ 1062]
asterisk.c ast_makesocket())
=== -------------------------------------------------------------------
===
=== Thread ID: 1074231616 (accept_thread        started at [ 2954]
manager.c init_manager())
=== -------------------------------------------------------------------
===
=== Thread ID: 1074477376 (do_devstate_changes  started at [  378]
devicestate.c ast_device_state_engine_init())
=== -------------------------------------------------------------------
===
=== Thread ID: 1074723136 (do_parking_thread    started at [ 2420]
res_features.c load_module())
=== -------------------------------------------------------------------
===
=== Thread ID: 1075214656 (netconsole           started at [ 1004]
asterisk.c listener())
=== ---> Lock http://bugs.digium.com/view.php?id=0 (chan_gtalk.c): MUTEX 1637
gtalk_show_channels
&(&gtalk_list)->_lock 0x2aaac0c04c40 (1)
=== -------------------------------------------------------------------
===
=== Thread ID: 1074968896 (scan_thread          started at [  499]
pbx_spool.c load_module())
=== -------------------------------------------------------------------
===
=== Thread ID: 1075460416 (iax2_process_thread  started at [ 8751]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 1075706176 (iax2_process_thread  started at [ 8751]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 1075951936 (iax2_process_thread  started at [ 8751]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 1076197696 (iax2_process_thread  started at [ 8751]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 1076443456 (iax2_process_thread  started at [ 8751]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 1076689216 (iax2_process_thread  started at [ 8751]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 1076934976 (iax2_process_thread  started at [ 8751]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 1077180736 (iax2_process_thread  started at [ 8751]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 1077426496 (iax2_process_thread  started at [ 8751]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 1077672256 (iax2_process_thread  started at [ 8751]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 1077918016 (sched_thread         started at [ 8761]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 1078163776 (network_thread       started at [ 8762]
chan_iax2.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 1078409536 (do_monitor           started at [ 6972]
chan_zap.c restart_monitor())
=== -------------------------------------------------------------------
===
=== Thread ID: 1078655296 (do_monitor           started at [ 1127]
chan_phone.c restart_monitor())
=== -------------------------------------------------------------------
===
=== Thread ID: 1078901056 (accept_thread        started at [ 4768]
chan_skinny.c reload_config())
=== -------------------------------------------------------------------
===
=== Thread ID: 1079146816 (do_monitor           started at [ 4582]
chan_skinny.c restart_monitor())
=== -------------------------------------------------------------------
===
=== Thread ID: 1079392576 (do_monitor           started at [15443]
chan_sip.c restart_monitor())
=== -------------------------------------------------------------------
===
=== Thread ID: 1079638336 (network_thread       started at [ 2198]
pbx_dundi.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 1079884096 (process_precache     started at [ 2199]
pbx_dundi.c start_network_thread())
=== -------------------------------------------------------------------
===
=== Thread ID: 1080129856 (sla_thread           started at [ 4759]
app_meetme.c sla_load_config())
=== -------------------------------------------------------------------
===
=== Thread ID: 1080375616 (sound_thread         started at [ 1811]
chan_oss.c store_config())
=== -------------------------------------------------------------------
===
=== Thread ID: 1080621376 (sound_thread         started at [ 1811]
chan_oss.c store_config())
=== -------------------------------------------------------------------
===
=== Thread ID: 1080867136 (monitor_sig_flags    started at [ 2964]
asterisk.c main())
=== -------------------------------------------------------------------
===
=== Thread ID: 1081604416 (aji_recv_loop        started at [ 2444]
res_jabber.c aji_reload())
=== -------------------------------------------------------------------
===
=== Thread ID: 1081850176 (aji_recv_loop        started at [ 2444]
res_jabber.c aji_reload())
=== -------------------------------------------------------------------
===
=== Thread ID: 1081112896 (netconsole           started at [ 1004]
asterisk.c listener())
=== -------------------------------------------------------------------
===
=======================================================================

so the lock remains there.


====================================================================== 

---------------------------------------------------------------------- 
 junky - 02-29-08 22:19  
---------------------------------------------------------------------- 
that solve that issue.
However,when I call from my gtalk application to my *. It doesnt work
anymore.
when I answer, it still continue to ring in google talk app.
Here's the output when I answered:


    -- IAX2/5143155001-72 answered Gtalk/juliedube01-1673

JABBER: gtalk_account OUTGOING: <iq type='set'
to='juliedube01 at gmail.com/Talk.v1040B07F3A6'
from='cpatry.asterisk at gmail.com/TalkA2FC0379' id='aaaau'><session
xmlns='http://www.google.com/session' type='accept'
initiator='juliedube01 at gmail.com/Talk.v1040B07F3A6'
id='1775923308'><description xmlns='http://www.google.com/session/phone'
xml:lang='en'><payload-type id='0' name='PCMU' clockrate='8000'
bitrate='64000'/><payload-type id='100' name='EG711U' clockrate='8000'
bitrate='64000'/><payload-type id='106' name='telephone-event'
clockrate='8000'/></description><transport
xmlns='http://www.google.com/transport/p2p'/></session></iq>
deer*CLI> 
JABBER: gtalk_account INCOMING: <iq type="error"
to="cpatry.asterisk at gmail.com/TalkA2FC0379"
from="juliedube01 at gmail.com/Talk.v1040B07F3A6" id="aaaau"><session
type="accept" initiator="juliedube01 at gmail.com/Talk.v1040B07F3A6"
id="1775923308" xmlns="http://www.google.com/session"><description
xml:lang="en" xmlns="http://www.google.com/session/phone"><payload-type
id="0" name="PCMU" clockrate="8000" bitrate="64000"/><payload-type id="100"
name="EG711U" clockrate="8000" bitrate="64000"/><payload-type id="106"
name="telephone-event" clockrate="8000"/></description><transport
xmlns="http://www.google.com/transport/p2p"/></session><error code="400"
type="modify"><bad-request
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text
xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">

JABBER: gtalk_account INCOMING: If set, the 'from' attribute must be set
to the user's full JID.</text></error></iq>

JABBER: gtalk_account OUTGOING: <iq type='result'
from='cpatry.asterisk at gmail.com/TalkA2FC0379'
to='juliedube01 at gmail.com/Talk.v1040B07F3A6' id='aaaau'/>
    -- Hungup 'IAX2/5143155001-72'
  == Spawn extension (macro-dialOutVoip, s, 6) exited non-zero on
'Gtalk/juliedube01-1673' in macro 'dialOutVoip'
  == Spawn extension (macro-dialOutVoip, s, 6) exited non-zero on
'Gtalk/juliedube01-1673'



You can notice the error.
Without that patch, the answer was working fine.






And if I try to dialout to a buddy:
    -- Executing [211 at piovIncoming:3] Dial("IAX2/5144484188-95",
"Gtalk/cpatry.asterisk at gmail.com/juliedube01 at gmail.com") in new stack
[Feb 29 23:29:22] WARNING[29756]: chan_gtalk.c:1581 gtalk_request: Could
not find recipient.
But cpatry.asterisk at gmail.com is a good one and juliedube01 at gmail.com is
in my buddy list.

Without that patch, I was unable to see the latest message, since this was
looping with the guest account. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-29-08 22:19  junky          Note Added: 0083210                          
======================================================================




More information about the asterisk-bugs mailing list