Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] Outbound socket question


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





PostPosted: Sun Aug 02, 2009 2:42 pm    Post subject: [Freeswitch-users] Outbound socket question Reply with quote

Hi Guys,

I’m using an outbound socket to control calls, and it works a charm. However, what I’d like to do is send a custom event regarding the call on hang-up. The way I see things happening at the moment, and I could be wrong, is that the socket is closed when a hang-up occurs, so am I taking a chance trying to send the event then? (try to sneak out the event before socket closure happens) The other option is of course to open an inbound socket and send the event, but I’d rather not do that if possible.

Regards
Back to top
msc at freeswitch.org
Guest





PostPosted: Sun Aug 02, 2009 5:38 pm    Post subject: [Freeswitch-users] Outbound socket question Reply with quote

On Sun, Aug 2, 2009 at 12:38 PM, Nik Middleton <nik.middleton@noblesolutions.co.uk (nik.middleton@noblesolutions.co.uk)> wrote:
Quote:

Hi Guys,
 
I’m using an outbound socket to control calls, and it works a charm.  However, what I’d like to do is send a custom event regarding the call on hang-up.  The way I see things happening at the moment, and I could be wrong, is that the socket is closed when a hang-up occurs, so am I taking a chance trying to send the event then? (try to sneak out the event before socket closure happens)  The other option is of course to open an inbound socket and send the event, but I’d rather not do that if possible.

Nik,

Perhaps the "linger" event socket command will do what you need? Check out this commit:
http://lists.freeswitch.org/pipermail/freeswitch-svn/2009-January/009391.html

Let me know if it works for you and I'll be sure to get it documented properly. If you get it working I'd love to see a code snippet so we can wikify this knowledge. Smile

Thanks,
MC
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