SIP Methods

From Yate Documentation
(Difference between revisions)
Jump to: navigation, search
(Examples)
Line 11: Line 11:
 
In ysipchan.conf is section called [methods] that allows Yate to process SIP methods by handling messages with name [[Sip Generic|sip.<methodname>]] (written in lower case).
 
In ysipchan.conf is section called [methods] that allows Yate to process SIP methods by handling messages with name [[Sip Generic|sip.<methodname>]] (written in lower case).
  
====Examples====
+
===Examples===
 
+
1) Enable  SIP method: sip.message
+
  
 +
1) Enable MESSAGE SIP
  
 
ysipchan.conf  
 
ysipchan.conf  
Line 30: Line 29:
 
  .*=echo Got SIP MESSAGE type '${xsip_type}' ${xsip_body_encoding} from '${username}': ${xsip_body}
 
  .*=echo Got SIP MESSAGE type '${xsip_type}' ${xsip_body_encoding} from '${username}': ${xsip_body}
  
 +
2) Enable SUBSCRIBE
  
 +
ysipchan.conf
 +
 +
[methods]
 +
subscribe=yes
 +
 +
 
<!--* [[Sip Generic|sip.<methodname>]] - where methodname is the name of the received SIP request
 
<!--* [[Sip Generic|sip.<methodname>]] - where methodname is the name of the received SIP request
 
* [[xsip.generate]] - is a message sent by a module (ysipchan module) requesting the transmission of a SIP request-->
 
* [[xsip.generate]] - is a message sent by a module (ysipchan module) requesting the transmission of a SIP request-->

Revision as of 15:08, 8 November 2012

This page describes the Sip methods that are handled by default in Yate and how to enable the ones that are not generically handled.

SIP Methods in Yate

Some standard SIP methods can be handled generically in Yate like INVITE, CANCEL, ACK, BYE, REFER, OPTIONS and REGISTER.

For example SIP method INFO in a dialog is handled internally by Yate but dialogless is handled generically (by using parameter lazy100 in ysipchan.conf).

Additional methods

In ysipchan.conf is section called [methods] that allows Yate to process SIP methods by handling messages with name sip.<methodname> (written in lower case).

Examples

1) Enable MESSAGE SIP

ysipchan.conf

[methods]
message=yes


In regexroute.conf

[extra]
sip.message=120

[sip.message]
.*=echo Got SIP MESSAGE type '${xsip_type}' ${xsip_body_encoding} from '${username}': ${xsip_body}

2) Enable SUBSCRIBE

ysipchan.conf

[methods]
subscribe=yes


Personal tools
Namespaces

Variants
Actions
Preface
Configuration
Administrators
Developers