[Freeswitch-dev] error with referencing channel->direction

2009-12-23 Thread Juan Backson
Hi, The following lines give me some strange error: switch_channel_t *channel = switch_core_session_get_channel(session); if (channel->direction==SWITCH_CALL_DIRECTION_OUTBOUND) { error: dereferencing pointer to incomplete type ___ F

[Freeswitch-dev] Need help in bridging two sessions in module

2009-09-23 Thread Juan Backson
Hello, In my scenario, I have other_session that is doing playback of a media file within an infinitely loop. What I need to do is to be able stop the "other_session" from doing the playback, and then bridge the current session to it. With the following code, I can get the current session and the

Re: [Freeswitch-dev] play background music and park the call (RESOLVED)

2009-09-23 Thread Juan Backson
Hi, this issue is due to a missing Answer. It is ok now. thx, jb On Wed, Sep 23, 2009 at 12:32 PM, Juan Backson wrote: > Hi, > > What I would like to do is to park an incoming call and then play a > background music while it is parked. Upon occurrence of certain event, I >

[Freeswitch-dev] play background music and park the call

2009-09-22 Thread Juan Backson
Hi, What I would like to do is to park an incoming call and then play a background music while it is parked. Upon occurrence of certain event, I would like to unpark the caller again and bridge it to someone else. I tried to use the following: switch_status_t status = switch_ivr_pla

[Freeswitch-dev] Unable to access directory variable from channel

2009-08-20 Thread Juan Backson
Hi, I set up a variable called "account-id" in the user directory xml file. >From the info app, I can't find the variable for variable_account-id. Also, in my C module, I tried to obtain the value with switch_channel_get_variable(channel,"account-id") and it is not returning null. Does anyone k

[Freeswitch-dev] random fs crashing

2009-07-25 Thread Juan Backson
Hi, I am having some strange randomly crashing of fs in production. They all point to something wrong in the main(). Although I have my own module running, but I don't think it should have any impact to the main() process. Could someone please point me to some solution that may resolve or debug

[Freeswitch-dev] freeswitch unexpectedly core dump

2009-07-22 Thread Juan Backson
Hi, I am getting the following core dump in a production environment, not sure what this is. Any idea how to fix this? [New process 26012] [New process 26011] [New process 26010] [New process 26009] [New process 26008] [New process 26007] #0 0x2aad84837215 in raise () from /lib64/libc.so.6

[Freeswitch-dev] core dump with the latest build

2009-07-13 Thread Juan Backson
Hi, I am running FS with production traffic and when it reaches around 70cps on a Intel(R) Xeon(R) CPU E5520 @ 2.27GHz, I am getting a core dump ( as shown below ). This core dump has been happening multiple times in one day. Is this a problem with the latest trunk? If so, which build should