Connecting to GMail

From Yate Documentation
Revision as of 12:17, 7 June 2013 by Dana (talk | contribs)
Jump to navigation Jump to search

In this example we are going to use simple gmail account where:

GMail_username - your GMail username.
GMail_password - your GMail account password.

Note: The options=allowplainauth parameter is required, otherwise login will fail.

We are going to set the gmail account in accfile so Yate will register to it.

From routing will set that if extension '123' is called then the call will come to through the line to google account set.

And for outgoing calls all calls that will be made to the account set in accfile will go to a SIP account set.

In accfile.conf :

[MyGMailAccount]
enabled=yes
protocol=jabber
username=GMail_username
password=GMail_password
domain=gmail.com
options=allowplainauth

In regexroute.conf :

[default]
; Route calls to contacts in MyGMailAccount roster
^123$=jingle/mycontact@domain;line=MyGMailAccount

; Route calls received on MyGMailAccount line
${in_line}MyGMailAccount=sip/sip:SIP_number@a.b.c.d

See Using jabber client in server mode and Jingle channel for more routing and setup details.


See also