Summary: | ASTERISK-10133: Gtalk no sound | ||
Reporter: | Chodorenko Michail (chodorenko) | Labels: | |
Date Opened: | 2007-08-21 05:49:39 | Date Closed: | 2011-06-07 14:07:22 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_gtalk |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | i setup asterisk by manual http://www.voip-info.org/wiki/view/Asterisk+Speaks+with+Google+Talk . asterisk connect to gtalk no problem i call to asterisk by googletalk client, and after ring and asterisk is answer i drop sound from asterisk ****** ADDITIONAL INFORMATION ****** === gtalk.conf === [general] context=default allowguest=yes bindaddr=111.111.111.111 ; external IP my server * [guest] disallow=all allow=ulaw context=default [google] username=user_my_by@gmail.com disallow=all allow=ulaw context=default connection=asterisk === end gtalk.conf === === jabber.conf === [general] debug=yes autoprune=yes autoregister=yes [asterisk] type=client serverhost=talk.google.com username=user_my_by@gmail.com secret=my_secret port=5222 usetls=yes usesasl=yes statusmessage="status string" timeout=100 === end jabber.conf === === Debug log === JABBER: asterisk INCOMING: <iq to="user_my_by@gmail.com/asterisk6F80172B" type="set" id="128" from="chodorenko@gmail.com/Talk.v932FDE815F"><session type="initiate" id="1787720173" initiator="chodorenko@gmail.com/Talk.v932FDE815F" xmlns="http://www.google.com/session"><description xmlns="http://www.google.com/session/phone"><payload-type id="103" name="ISAC"/><payload-type id="97" name="IPCMWB"/><payload-type id="4" name="G723"/><payload-type id="100" name="EG711U"/><payload-type id="101" name="EG711A"/><payload-type id="0" name="PCMU"/><payload-type id="8" name="PCMA"/><payload-type id="13" name="CN"/><payload-type id="102" name="iLBC"/><payload-type id="117" name="red"/><payload-type id="106" name="audio/telephone-event"/></description></session></iq> JABBER: asterisk OUTGOING: <iq type='result' from='user_my_by@gmail.com/asterisk6F80172B' to='chodorenko@gmail.com/Talk.v932FDE815F' id='128'/> JABBER: asterisk OUTGOING: <iq from='user_my_by@gmail.com/asterisk6F80172B' to='chodorenko@gmail.com/Talk.v932FDE815F' type='set' id='aaaac'><session type='transport-accept' id='1787720173' initiator='chodorenko@gmail.com/Talk.v932FDE815F' xmlns='http://www.google.com/session'><transport xmlns='http://www.google.com/transport/p2p'/></session></iq> JABBER: asterisk OUTGOING: <iq from='user_my_by@gmail.com/asterisk6F80172B' to='chodorenko@gmail.com/Talk.v932FDE815F' type='set' id='aaaad'><session type='transport-info' id='1787720173' initiator='chodorenko@gmail.com/Talk.v932FDE815F' xmlns='http://www.google.com/session'><transport xmlns='http://www.google.com/transport/p2p'><candidate name='rtp' address='111.111.111.111' port='17168' username='50a3900934bba2d0' password='0457b8f66466c3e5' preference='1.00' protocol='udp' type='local' network='0' generation='0'/></transport></session></iq> == Starting Gtalk/chodorenko-f1fa at default,user_my_by@gmail.com,1 failed so falling back to exten 's' -- Executing [s@default:1] Goto("Gtalk/chodorenko-f1fa", "answer|1") in new stack -- Goto (default,answer,1) -- Executing [answer@default:1] Answer("Gtalk/chodorenko-f1fa", "") in new stack asterisk*CLI> JABBER: asterisk OUTGOING: <iq type='set' to='chodorenko@gmail.com/Talk.v932FDE815F' from='user_my_by@gmail.com/asterisk6F80172B' id='aaaae'><session xmlns='http://www.google.com/session' type='accept' initiator='chodorenko@gmail.com/Talk.v932FDE815F' id='1787720173'><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> -- Executing [answer@default:2] Wait("Gtalk/chodorenko-f1fa", "1") in new stack asterisk*CLI> JABBER: asterisk INCOMING: <iq type="error" to="user_my_by@gmail.com/asterisk6F80172B" id="aaaac" from="chodorenko@gmail.com/Talk.v932FDE815F"><session type="transport-accept" id="1787720173" initiator="chodorenko@gmail.com/Talk.v932FDE815F" xmlns="http://www.google.com/session"><transport xmlns="http://www.google.com/transport/p2p"/></session><error code="501" type="cancel"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq> JABBER: asterisk OUTGOING: <iq type='result' from='user_my_by@gmail.com/asterisk6F80172B' to='chodorenko@gmail.com/Talk.v932FDE815F' id='aaaac'/> asterisk*CLI> JABBER: asterisk INCOMING: <iq type="error" to="user_my_by@gmail.com/asterisk6F80172B" id="aaaad" from="chodorenko@gmail.com/Talk.v932FDE815F"><session type="transport-info" id="1787720173" initiator="chodorenko@gmail.com/Talk.v932FDE815F" xmlns="http://www.google.com/session"><transport xmlns="http://www.google.com/transport/p2p"><candidate name="rtp" address="111.111.111.111" port="17168" username="50a3900934bba2d0" password="0457b8f66466c3e5" preference="1.00" protocol="udp" type="local" network="0" generation="0"/></transport></session><error code="501" type="cancel"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq> JABBER: asterisk OUTGOING: <iq type='result' from='user_my_by@gmail.com/asterisk6F80172B' to='chodorenko@gmail.com/Talk.v932FDE815F' id='aaaad'/> JABBER: asterisk INCOMING: <iq type="result" to="user_my_by@gmail.com/asterisk6F80172B" id="aaaae" from="chodorenko@gmail.com/Talk.v932FDE815F"/> asterisk*CLI> JABBER: asterisk INCOMING: <iq to="user_my_by@gmail.com/asterisk6F80172B" type="set" id="130" from="chodorenko@gmail.com/Talk.v932FDE815F"><session type="candidates" id="1787720173" initiator="chodorenko@gmail.com/Talk.v932FDE815F" xmlns="http://www.google.com/session"><candidate name="rtp" address="192.168.0.4" port="1954" username="sagLDhrNSy2uukTF" password="ijGUztqgoCRBKVr1" preference="1" protocol="udp" type="local" network="0" generation="0"/></session></iq> JABBER: asterisk OUTGOING: <iq type='result' from='user_my_by@gmail.com/asterisk6F80172B' to='chodorenko@gmail.com/Talk.v932FDE815F' id='130'/> asterisk*CLI> JABBER: asterisk INCOMING: <iq to="user_my_by@gmail.com/asterisk6F80172B" type="set" id="131" from="chodorenko@gmail.com/Talk.v932FDE815F"><session type="candidates" id="1787720173" initiator="chodorenko@gmail.com/Talk.v932FDE815F" xmlns="http://www.google.com/session"><candidate name="rtp" address="85.17.111.100" port="1955" username="pIp5fXibZU1KSTwv" password="imwA4MKRjlquYp6o" preference="0.9" protocol="udp" type="stun" network="0" generation="0"/></session></iq> JABBER: asterisk OUTGOING: <iq type='result' from='user_my_by@gmail.com/asterisk6F80172B' to='chodorenko@gmail.com/Talk.v932FDE815F' id='131'/> -- Executing [answer@default:3] NoOp("Gtalk/chodorenko-f1fa", "chodorenko") in new stack -- Executing [answer@default:4] NoOp("Gtalk/chodorenko-f1fa", "") in new stack -- Executing [answer@default:5] NoOp("Gtalk/chodorenko-f1fa", "") in new stack -- Executing [answer@default:6] Set("Gtalk/chodorenko-f1fa", "TIMEOUT(digit)=7") in new stack -- Digit timeout set to 7 -- Executing [answer@default:7] BackGround("Gtalk/chodorenko-f1fa", "11") in new stack -- <Gtalk/chodorenko-f1fa> Playing '11.gsm' (language 'en') asterisk*CLI> JABBER: asterisk INCOMING: <iq to="user_my_by@gmail.com/asterisk6F80172B" type="set" id="132" from="chodorenko@gmail.com/Talk.v932FDE815F"><session type="candidates" id="1787720173" initiator="chodorenko@gmail.com/Talk.v932FDE815F" xmlns="http://www.google.com/session"><candidate name="rtp" address="216.239.51.126" port="19295" username="i9OQCJp2qjGg7W7r" password="c73ArZ5K4B2QZU87" preference="0.5" protocol="udp" type="relay" network="0" generation="0"/></session></iq> JABBER: asterisk OUTGOING: <iq type='result' from='user_my_by@gmail.com/asterisk6F80172B' to='chodorenko@gmail.com/Talk.v932FDE815F' id='132'/> asterisk*CLI> JABBER: asterisk INCOMING: <iq to="user_my_by@gmail.com/asterisk6F80172B" type="set" id="133" from="chodorenko@gmail.com/Talk.v932FDE815F"><session type="terminate" id="1787720173" initiator="chodorenko@gmail.com/Talk.v932FDE815F" xmlns="http://www.google.com/session"/></iq> == Spawn extension (default, answer, 7) exited non-zero on 'Gtalk/chodorenko-f1fa' JABBER: asterisk OUTGOING: <iq type='result' from='user_my_by@gmail.com/asterisk6F80172B' to='chodorenko@gmail.com/Talk.v932FDE815F' id='133'/> | ||
Comments: | By: phsultan (phsultan) 2007-08-21 07:09:52 Can you post the corresponding part of your extensions file? Thanks! By: Chodorenko Michail (chodorenko) 2007-08-21 07:25:58 in extensions.conf notfing present by gtalk , gtalk now using only for incoming connection in default context. If you give me you email and say part, i send you interesting part. man in asterisk client have sound from external caller, caller no have sound from * By: Chodorenko Michail (chodorenko) 2007-08-21 08:14:15 if i add in extensions.conf exten => 4440,1,Dial(Gtalk/asterisk/chodorenko@gmail.com,90,r) and dial to 4440, asterisk write in cli -- Executing [4440@default:1] Dial("SIP/3484-0900ed90", "Gtalk/asterisk/chodorenko@gmail.com|90|r") in new stack [Aug 21 16:29:10] ERROR[8486]: chan_gtalk.c:856 gtalk_alloc: no gtalk capable clients to talk to. [Aug 21 16:29:10] WARNING[8486]: app_dial.c:1329 dial_exec_full: Unable to create channel of type 'Gtalk' (cause 0 - Unknown) == Everyone is busy/congested at this time (1:0/0/1) == Auto fallthrough, channel 'SIP/3484-0900ed90' status is 'CHANUNAVAIL' By: phsultan (phsultan) 2007-08-21 09:54:15 > -- Executing [4440@default:1] Dial("SIP/3484-0900ed90", "Gtalk/asterisk/chodorenko@gmail.com|90|r") in new stack > [Aug 21 16:29:10] ERROR[8486]: chan_gtalk.c:856 gtalk_alloc: no gtalk capable clients to talk to. This may happen because users 'chodorenko@gmail.com' and 'user_my_by@gmail.com' (the account Asterisk uses to connect to Google's XMPP server) cannot watch each other's presence status. Make sure these two accounts are friends. By: Chodorenko Michail (chodorenko) 2007-08-22 01:26:30 Ok, second problem is close , Howe to correct First ? By: phsultan (phsultan) 2007-08-22 08:07:29 That's odd, your client is explicitly rejecting some media negociation packets that look valid. Are you running GoogleTalk on some unusual platform (eg. not Windows)? Also, please detail your network configuration : how many network interfaces on your Asterisk server, is Asterisk behind a NAT box? By: Chodorenko Michail (chodorenko) 2007-08-22 09:22:17 I use the standard client from Google for Windows. on Asterisk 2 interfaces: 1 internet 84.201.225.x (real IP) eth0 2 internal network 192.168.x.x eth1 the asterisk is not for NAT, those has direct access to the Internet client have access to gtalk by NAT, By: keepitcool (keepitcool) 2007-08-23 11:55:44 Just my five cents, hope it will help: Googletalk is using low RTP Port numbers than usual asterisk server. Have you changed the rtp.conf ? You may want to try and change : rtpstart=1650 rtpend=4560 By: Chodorenko Michail (chodorenko) 2007-08-23 16:18:45 I tru now, no sense , client not have sound :( By: keepitcool (keepitcool) 2007-08-23 16:25:30 Ok. Initially I had that same audio problem, and I have configured the rtp ports as explained above and also open up the firewall on the asterisk server side - do not forget that also. By: Chodorenko Michail (chodorenko) 2007-08-28 03:38:31 Many thanks Philipe Sultan for the help. The problem is solved, as it has appeared it is necessary to use the English version of Gtalk Client version 1.0.0.104, as the localized versions (Russian 1.0.0.93) do not contain corrections for work with NAT Please close Bug |