mirror of https://github.com/sipwise/rtpengine.git
Introduce a common NG commands table `ng_command_defs` for all type of things: OP enum, name, escaped name, short name and most important the handler. This table operates on and returns a dedicated struct `ng_command_def`, which has all the information required on the command (like all type of things mentioned above) and may have either single-parameter or double-parameter signature (for cases with the `addr` requiring commands such as the offer command). Also add unified signatures for X and XA handlers, they will be used later accordingly. Most of those use single-parameter, and those exceptional use the second one. Also add dummy plug-functions for ping and block/unblock silence media. The ping one doesn't have any particular handler, but because a new structure of NG commands wants to see a real declaration of the func handler, just give it. For the block/unblock silence media, there aren't even handling of commands in the control NG, they are just dummy OPs, so fulfill the actual NG commands structure, and give them dummy funcs. Change-Id: I2064ddca1595079959a6c6843119556a8b6bf5d5mr26.1
parent
98d9bf091f
commit
551ba3d82d
Loading…
Reference in new issue