SIP Methods
From Yate Documentation
(Difference between revisions)
(→Enable SUBSCRIBE Method) |
|||
Line 36: | Line 36: | ||
subscribe=yes | subscribe=yes | ||
− | Then you have to set what you need in | + | Then you have to set what you need in sipfeature.conf and in subscription.conf. |
Line 45: | Line 45: | ||
'''See also''' | '''See also''' | ||
− | * | + | * [[subscription| Subscriptions module]] |
+ | * [[SIP Features Module]] |
Revision as of 15:23, 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.
Contents |
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
Enable MESSAGE Method
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}
Enable SUBSCRIBE Method
ysipchan.conf
[methods] subscribe=yes
Then you have to set what you need in sipfeature.conf and in subscription.conf.
See also