5 Mar
2015
5 Mar
'15
3:07 a.m.
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!