Function sofia contact

From FreeSWITCH Wiki

Jump to: navigation, search

<CtRiX> is there a way to know wether a user is registered or not ?

<anthm> sofia status profile <foo>

<CtRiX> anthm, and from the diaplan ?

<anthm> there is a sofia_contact func i guess would be nonblank when they are reg

<anthm> ${sofia_contact(profile/foo@bar.com)}


So basically, sofia_contact is a function that returns the contact string of a sofia user. If it's not registered, the contact string is empty.

You can use this function to trigger, for example, a specific message if the user is not registered or you could fire up some actions to find that user on another switch in a clustered environment.

Personal tools
Community