Problems transferring live calls
Forum » WikiPBX / Technical Support » Problems transferring live calls
Started by: kasteriskasteris
On: 1245120486|%e %b %Y, %H:%M %Z|agohover
Number of posts: 5
rss icon RSS: New posts
Summary:
Transferring or playing messages to live calls doesn't seem to work
Problems transferring live calls
kasteriskasteris 1245120486|%e %b %Y, %H:%M %Z|agohover

Hi, I'm a new WikiPBX user, and already a big fan.
I have my WikiPBX all set-up and working properly with the exception of the live calls page.
When I try to inject audo or transfer the call, I don't get any error messages (an example response is: OK Job-UUID 18ff410e-a804-4ff4-adfc-a36dcf868110). But nothing happens - I don't hear the prompt / the phone doesn't get transferred.
When I look at the FreeSWITCH console, it doesn't seem to see the events.
I'm using the latest WikiPBX build (83), and I've tried with FreeSWITCH versions 1.0.2 and 1.0.3.
Am I doing something wrong?
Thanks.

Reply  |  Options
Unfold Problems transferring live calls by kasteriskasteris, 1245120486|%e %b %Y, %H:%M %Z|agohover
Re: Problems transferring live calls
tleydentleyden 1245142952|%e %b %Y, %H:%M %Z|agohover

Thanks for the positive feedback, and congrats on making it through the install :)

I was getting the same error and was able to fix it. But to get the fix you have to update a file in freeswitch, not in wikipbx.

The easiest way is to update the file is with subversion:

$ cd /usr/src/freeswitch/scripts/socket/freepy
$ svn up __init__.py

And it should update to 13779.

OR you can make the changes by hand by:

  • Open __init__.py in your favorite editor, like emacs or vim
  • Go to the transfer function (search for "def transfer")
  • Replace
bgapi transfer

with

bgapi uuid_transfer
  • and replace
api transfer

with

api uuid_transfer

*Save the file

Reboot wikipbx for good measure, and after the change, you will see that it is calling the uuid_transfer api call in freeswitch rather than the transfer api call. If not, something didn't work.

Reply  |  Options
Unfold Re: Problems transferring live calls by tleydentleyden, 1245142952|%e %b %Y, %H:%M %Z|agohover
Re: Problems transferring live calls
tleydentleyden 1245144060|%e %b %Y, %H:%M %Z|agohover

The hangup and the "sound injection" were both broken, something that has been bugging me for a while but I had not gottent around to fixing. Now those are both fixed. Update __init__.py to 13780 or follow the manual instructions above, but make the following changes:

  • In def killchan, api killchan -> api uuid_kill and same for bgapi
  • In def broadcast, api broadcast -> api uuid_broadcast and same for bgapi
Reply  |  Options
Unfold Re: Problems transferring live calls by tleydentleyden, 1245144060|%e %b %Y, %H:%M %Z|agohover
Re: Problems transferring live calls
kasteriskasteris 1245293415|%e %b %Y, %H:%M %Z|agohover

Thanks very much for the help. The transfer and hangup functions are working for me now, but not the sound injection. But I personally wouldn't be needing that anyway.

Reply  |  Options
Unfold Re: Problems transferring live calls by kasteriskasteris, 1245293415|%e %b %Y, %H:%M %Z|agohover
Re: Problems transferring live calls
kasteriskasteris 1245294489|%e %b %Y, %H:%M %Z|agohover

Actually, the sound injection is working too - I was trying to play a bad wav file. Thanks again!

Reply  |  Options
Unfold Re: Problems transferring live calls by kasteriskasteris, 1245294489|%e %b %Y, %H:%M %Z|agohover
New Post
page_revision: 0, last_edited: 1226259295|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License