Yes you can sendevent NOTIFY
Here is the headers you'll need.. some are optional const char *profile_name = switch_event_get_header(event, "profile"); const char *ct = switch_event_get_header(event, "content-type"); const char *es = switch_event_get_header(event, "event-string"); const char *user = switch_event_get_header(event, "user"); const char *host = switch_event_get_header(event, "host"); const char *call_id = switch_event_get_header(event, "call-id"); const char *uuid = switch_event_get_header(event, "uuid"); const char *body = switch_event_get_body(event); const char *to_uri = switch_event_get_header(event, "to-uri"); const char *from_uri = switch_event_get_header(event, "from-uri"); See mod_sofia.c line 2887 /b PS: you also have SEND_MESSAGE as an event you can send below that in mod_sofia.c On Jul 7, 2009, at 9:46 PM, Nick Lemberger wrote: > Is it possible to force a sofia profile to subscribe to an event or > use sendevent to force send a NOTIFY to a SIP endpoint? > > I'm trying to use FreeSwitch as a voicemail server but the sending > switch doesn't send SIP SUBSCRIBE messages. I'd like to send > unsolicited SIP notifies to turn on MWI indicators as that's what > the switch expects. > > Any ideas, or is this even possible with FreeSwitch? > > Thanks, > Nick _______________________________________________ Freeswitch-users mailing list [email protected] http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
