Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Force SUBSCRIBE or sendevent NOTIFY without subscription


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
Nick.Lemberger at lkfd...
Guest





PostPosted: Tue Jul 07, 2009 9:53 pm    Post subject: [Freeswitch-users] Force SUBSCRIBE or sendevent NOTIFY witho Reply with quote

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
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
brian at freeswitch.org
Guest





PostPosted: Tue Jul 07, 2009 10:00 pm    Post subject: [Freeswitch-users] Force SUBSCRIBE or sendevent NOTIFY witho Reply with quote

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:

Quote:
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
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services