Yate as SIP server

From Yate Documentation
(Difference between revisions)
Jump to: navigation, search
(Setting Yate as SIP Server)
 
(15 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
Configuring Yate to act as a SIP Server and YateClient to act as a SIP Client.
  
To check this functionality use:
+
===Why this document===
*  a Yate installed on a server
+
 
*  a Yate client installed on a server
+
Learn how to:
 +
*  modify Yate's configuration files in order to use it as SIP server;
 +
*  use Yate Client as an SIP client;
 +
*  set up a telephony account on a SNOM 360 phone.
 +
 
 +
=== Main concepts ===
 +
 
 +
The important issue in this article is that Yate knows SIP protocol. Yate can be used as a SIP Server and Yate Client can be used as a SIP client.
 +
 
 +
===Test situation===
 +
 
 +
To check this functionality ''Yate as a SIP server'' use:
 +
*  a Yate installed on a server, this is used as SIP Server
 +
*  a Yate Client installed on another server.See [http://yateclient.yate.ro/index.php/Download/Download Download] section.
 
*  a SNOM phone (you can follow the steps from this tutorial:[[Yate_as_H323_GateKeeper_and_YateClient_as_H323_client#Configuring_Snom_phone| to configure SNOM phone]])
 
*  a SNOM phone (you can follow the steps from this tutorial:[[Yate_as_H323_GateKeeper_and_YateClient_as_H323_client#Configuring_Snom_phone| to configure SNOM phone]])
  
The purpose of this configuration schema is to make calls from SNOM phone to account in Yate client soft phone using a SIP server.
+
The purpose of this configuration schema is to make calls from SNOM phone to the account in YateClient using the Yate SIP Server or reverse.
  
The easiast way to do it is to register this 2 accounts in regfile.conf and in ysipchan.conf you can use the general set up that means that the port used will be 5060 and address is wildcard 0.0.0.0 that means that any IP addrees of that server will be used.  
+
===Setting Yate as SIP Server===
If you want to limit to just one address you can set it in section ''general'' in parameter addr=a.b.c.d. If you have more than one IP address then you can set them in section ''listener''.
+
 
Example:
+
The easiest way to do it is to register this 2 accounts in regfile.conf and in ysipchan.conf you can use the general set up. The port options sets the port to which Yate will bind for SIP signalling. You may also specify an IP address (for multihomed machines) else Yate will listen on all interfaces.  
  [listener general]  
+
 
  addr=a.b.c.d
+
So in configuration files set:
 +
 
 +
regfile.conf
 +
  [100]
 +
  password=mysecret1
 
   
 
   
  [listener ip1]
+
  [200]
  addr=a1.b1.c1.d1
+
  password=mysecret2
+
 
.........
+
Steps to follow to test your configuration:
 +
 
 +
* Start Yate Server. See [[Starting Yate]] for this step.
 +
* Configure SNOM phone, follow this [[Yate_as_H323_GateKeeper_and_YateClient_as_H323_client#Configuring_Snom_phone| steps]].
 +
* Configure the other account set in regfile in your YateClient:
 +
 
 +
[[File:YC_sip_account.png]]
 +
 
 +
After all configuration it is done you can test your phones.
 +
 
 +
For the softphone, from the telephony tab, dial one of the following (what you should hear in your headphones is listed next to the number): 99991001 (dial tone), 99991002 (busy tone), 99991003 (ring tone). For the other phone you can use the same numbers to test.
 +
 
 +
After that you, you can start making calls between them.
 +
 
 +
 
 +
'''See also'''
 +
 
 +
* [[Regfile| Register Module]]
 +
* [[SIP in Yate]]
 +
* [[SIP Security in Yate]]
 +
* [[How To's]]
  
In this tutorial will use the default settings for SIP server from ysipchan.conf.
+
[[Category:SIP]] [[Category:Server]] [[Category:Client]]

Latest revision as of 17:16, 31 October 2013

Configuring Yate to act as a SIP Server and YateClient to act as a SIP Client.

Contents

[edit] Why this document

Learn how to:

  • modify Yate's configuration files in order to use it as SIP server;
  • use Yate Client as an SIP client;
  • set up a telephony account on a SNOM 360 phone.

[edit] Main concepts

The important issue in this article is that Yate knows SIP protocol. Yate can be used as a SIP Server and Yate Client can be used as a SIP client.

[edit] Test situation

To check this functionality Yate as a SIP server use:

  • a Yate installed on a server, this is used as SIP Server
  • a Yate Client installed on another server.See Download section.
  • a SNOM phone (you can follow the steps from this tutorial: to configure SNOM phone)

The purpose of this configuration schema is to make calls from SNOM phone to the account in YateClient using the Yate SIP Server or reverse.

[edit] Setting Yate as SIP Server

The easiest way to do it is to register this 2 accounts in regfile.conf and in ysipchan.conf you can use the general set up. The port options sets the port to which Yate will bind for SIP signalling. You may also specify an IP address (for multihomed machines) else Yate will listen on all interfaces.

So in configuration files set:

regfile.conf

[100]
password=mysecret1

[200]
password=mysecret2

Steps to follow to test your configuration:

  • Start Yate Server. See Starting Yate for this step.
  • Configure SNOM phone, follow this steps.
  • Configure the other account set in regfile in your YateClient:

YC sip account.png

After all configuration it is done you can test your phones.

For the softphone, from the telephony tab, dial one of the following (what you should hear in your headphones is listed next to the number): 99991001 (dial tone), 99991002 (busy tone), 99991003 (ring tone). For the other phone you can use the same numbers to test.

After that you, you can start making calls between them.


See also

Personal tools
Namespaces

Variants
Actions
Preface
Configuration
Administrators
Developers