I have a Call manager express router to which IP phones can register automatically.
The event (%IPPHONE-6-REGISTER: ephone-2:SEP0022191D02C0 IP:18.104.22.168 Socket:3 DeviceType:Phone has registered) will be there in syslog. So, based on this syslog message (pattern “IPPHONE-6-REGISTER”), the EEM should be triggered and it should enable video capability and extension mobility on that ephone i.e., excute the following commands:
ephone <the number of e-phone that is registered>
My question is, I want to get the number/tag of e-phone that is registered from the initial syslog message itself. The syslog message has the string ephone-2, so I want to extract “2” from the syslog message and use it in the command that I need to execute. Could you please let me know how I can do this?