[ previous ] [ next ] [ threads ]
 To :  Marian Podgoreanu <marian@v...>
 From :  Vincent <vincent1941@g...>
 Subject :  Re: yate<->gtalk
 Date :  Sun, 1 Jul 2012 10:25:56 +0800
a little bug and a new question

in yjingchan.cpp file:
bool YJGConnection::initLocalCandidates(JGSessionContent& content, bool
sendTransInfo)
{
 ...
   complete(m);   // here will set "direction" param with value  "outgoing"
 by msg.setParam("direction",direction()); this will result in fail to open
rtp chan.
   m.addParam("direction",rtpDir(content));  // here will add a new
"direction" param with value "bidir"
  ...
}

By now(after fix the above) , I can call from sip to gmail audio/video
plugin and receive audio on each side.  This works well when yate and gmail
plugin run in same computer. But When gtalk run in another computer(or use
gtalk app), sip client can not call gtalk with reason here:

in jinglechan.cpp, called is not full, why? (I try this several times, only
yate and gmail run in same computer, the called's value is full)
   // Called party must always be full in client mode
    if (checkCalled && !(s_serverMode || called.isFull())) {
Debug(this,DebugNote,"Jingle call failed. Incomplete called '%s'",
    called.c_str());
msg.setParam("error","failure");
return false;
    }

Regards,

vincent



Hi,
>
> I suppose bianxg@g... is in callername123@g...'s roster.
>
> Don't set checkcalled=false when routing the call. Let the
> jingle/jabberclient modules detect if bianxg@g... is present.
>
> bianxg@g... must be present in order to call it.
> If an user is not present the call will fail.
>
> When you set checkcalled=false the jingle module will send the call to
> called party without checking if a resource is present in the called 's
> jabber id.
> The result is call fail anyway: only a full jabber id (user@domain/resource)
> can be called.
>
> Marian
>
> On 6/27/2012 6:08 PM, Vincent wrote:
>
>> hi
>>
>> *With the following config of Yate we can made calls from GTalk to
>> sip(linephone), but can not call  GTalk from sip. (yate r5156)*
>>
>> *
>> *
>>
>> *==regfile.conf==*
>>
>> *[1008]
>> password=1234*
>>
>> *
>> *
>>
>> *==accfile.conf==*
>>
>> *[gmail]
>> enabled=yes
>> protocol=jabber
>> username=callername123
>> domain=gmail.com  
>> password=pasword123
>> server=talk.l.google.com  
>> resource=yate
>> options=sasl,tlsrequired,**allowplainauth*
>>
>> *
>> *
>>
>> *==regroute.conf==*
>>
>> *^12345$=jingle/callername@g...  > >;line=gmail;**checkcalled=false*
>>
>> *
>> *
>>
>> *==yate.conf==*
>>
>> *[postload]
>> ${modulepath}/client/**jabberclient${modsuffix}=yes*
>>
>> *
>> *
>>
>> *
>> *
>>
>> *==yjinglechan.conf==*
>>
>> *[general]
>> servermode=no*
>>
>> *
>> *
>>
>> *
>>
>> *
>>
>> *
>> Yate engine is initialized and starting up on ZGSSC-20199210726YNM
>>  XMPPFeature::**fromStreamFeature() Unhandled mechanism
>> 'X-GOOGLE-TOKEN'
>>  XMPPFeature::**fromStreamFeature() Unhandled mechanism 'X-OAUTH2'
>>  System CPU load is not implemented for this OS
>>  System Cpu load not supported!
>>  Certificate verify error 20: UNABLE_TO_GET_ISSUER_CERT_**LOCALLY
>> [0
>> 1F00790]
>>  XMPPFeature::**fromStreamFeature() Unhandled mechanism
>> 'X-GOOGLE-TOKEN'
>>  XMPPFeature::**fromStreamFeature() Unhandled mechanism 'X-OAUTH2'
>>  Unregistered user '1000'
>>  Registered user '1000' expires in 3600 s
>>  Outgoing. caller='callername123@g...**com/yate094FD364 <
>> http://callername123@g...**com/yate094FD364>'
>> called='bia
>> nxg@g...  ' [04779B00]
>>  Calling. caller=callername123@g...**com/yate094FD364 <
>> http://callername123@g...**com/yate094FD364>
>>  called=calledname123@
>> gmail.com    [04779B00]
>>  Failed to init RTP for content='jingle/1_content_**353662202'
>> [047
>> 79B00]
>>  Call(JG1_2064838506). Sent element with
>> id=JG1_2064838506_1 conf
>> irmed by error (feature-not-implemented). Terminating [0477B528]
>>  Hangup. reason=failure [04779B00]
>>  disconnected. final=1 reason=failure [04779B00]
>>  Destroyed [04779B00]*
>>
>>
>> *Please, help us fix the problem.*
>>
>>
>> *  *
>>
>> *Best regards,*
>>
>>
>> *     vincent*
>>
>>
>>
>>
>> *
>> *
>>
>
>



a little bug and a new question

in yjingchan.cpp file: 
bool YJGConnection::initLocalCandidates(JGSessionContent& content, bool sendTransInfo)
{
 ...
   complete(m);   // here will set "direction" param with value  "outgoing"  by msg.setParam("direction",direction()); this will result in fail to open rtp chan.
   m.addParam("direction",rtpDir(content));  // here will add a new "direction" param with value "bidir"
  ...
}

By now(after fix the above) , I can call from sip to gmail audio/video plugin and receive audio on each side.  This works well when yate and gmail plugin run in same computer. But When gtalk run in another computer(or use gtalk app), sip client can not call gtalk with reason here:

in jinglechan.cpp, called is not full, why? (I try this several times, only yate and gmail run in same computer, the called's value is full)
   // Called party must always be full in client mode
    if (checkCalled && !(s_serverMode || called.isFull())) {
Debug(this,DebugNote,"Jingle call failed. Incomplete called '%s'",
   called.c_str());
msg.setParam("error","failure");
return false;
    }

Regards,

vincent



Hi,

I suppose bianxg@g... is in callername123@g...'s roster.

Don't set checkcalled=false when routing the call. Let the jingle/jabberclient modules detect if bianxg@g... is present.

bianxg@g... must be present in order to call it.
If an user is not present the call will fail.

When you set checkcalled=false the jingle module will send the call to called party without checking if a resource is present in the called 's jabber id.
The result is call fail anyway: only a full jabber id (user@domain/resource) can be called.

Marian

On 6/27/2012 6:08 PM, Vincent wrote:
hi

*With the following config of Yate we can made calls from GTalk to sip(linephone), but can not call  GTalk from sip. (yate r5156)*

*
*

*==regfile.conf==*

*[1008]
password=1234*

*
*

*==accfile.conf==*

*[gmail]
enabled=yes
protocol=jabber
username=callername123
domain=gmail.com  <http://gmail.com>
password=pasword123
server=talk.l.google.com  <http://talk.l.google.com>
resource=yate
options=sasl,tlsrequired,allowplainauth*

*
*

*==regroute.conf==*

*^12345$=jingle/callername@g...  <mailto:callername@g...>;line=gmail;checkcalled=false*

*
*

*==yate.conf==*

*[postload]
${modulepath}/client/jabberclient${modsuffix}=yes*

*
*

*
*

*==yjinglechan.conf==*

*[general]
servermode=no*

*
*

*

*

*
Yate engine is initialized and starting up on ZGSSC-20199210726YNM
<STUB> XMPPFeature::fromStreamFeature() Unhandled mechanism 'X-GOOGLE-TOKEN'
<STUB> XMPPFeature::fromStreamFeature() Unhandled mechanism 'X-OAUTH2'
<CpuLoad:STUB> System CPU load is not implemented for this OS
<cpuload:NOTE> System Cpu load not supported!
<openssl:WARN> Certificate verify error 20: UNABLE_TO_GET_ISSUER_CERT_LOCALLY [0
1F00790]
<STUB> XMPPFeature::fromStreamFeature() Unhandled mechanism 'X-GOOGLE-TOKEN'
<STUB> XMPPFeature::fromStreamFeature() Unhandled mechanism 'X-OAUTH2'
<sip:NOTE> Unregistered user '1000'
<sip:NOTE> Registered user '1000' expires in 3600 s
<jingle/1:CALL> Outgoing. caller='callername123@g...com/yate094FD364  <http://callername123@g...com/yate094FD364>' called='bia
nxg@g...  <mailto:nxg@g...>' [04779B00]
<jingle/1:CALL> Calling. caller=callername123@g...com/yate094FD364  <http://callername123@g...com/yate094FD364>  called=calledname123@
gmail.com  <http://gmail.com>  [04779B00]
<jingle/1:NOTE> Failed to init RTP for content='jingle/1_content_353662202' [047
79B00]
<jgengine:NOTE> Call(JG1_2064838506). Sent element with id=JG1_2064838506_1 conf
irmed by error (feature-not-implemented). Terminating [0477B528]
<jingle/1:CALL> Hangup. reason=failure [04779B00]
<jingle/1:CALL> disconnected. final=1 reason=failure [04779B00]
<jingle/1:CALL> Destroyed [04779B00]*


*Please, help us fix the problem.*


*  *

*Best regards,*


*     vincent*




*
*