[Freeswitch-users] sessions and CS_INIT events

Juan Pablo L. jpablolorenzetti at hotmail.com
Thu Mar 5 06:07:32 MSK 2015


Hi, i m writing a module in C that needs to check for certain information in a 
database for the caller and the destination number, 
for this the module is subscribing to the CS_INIT channel events, so everytime a channel is created 
the module callback is called and it checks the numbers, 
the problem is that the callback gets called twice, 
for the creation of the a-leg of the call and the creation of the b-leg. 
Is there any way to accomplish what i m trying to do ? 
Am i doing it the wrong way?
I have already try getting testing for the flags in the channel but it did not work,
testing of originator or originating does not yield anything ....
 
i might be doing it wrong maybe ? 

Thanks! 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150305/1b6fac64/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list