Skip to main content

Voicebridge from PBX issue

23 replies [Last post]
danthedixonman
Offline
Joined: 2008-05-28

This is a problem I have a feeling we've had since 0.5 started, but I haven't had time to look at it till now. Basically the issue I've got is that when I dial from my IP phone to Wonderland, my call isn't picked up by the switchboard-type-thing that was present in 0.4 (ie "press the number you want and then hash" or similar).

I can see that the voicebridge is picking up the call and creating a new conference and my IP phone seems happy that it has a connection, but I can't route it to an in world conference phone.

Any ideas? I'm hoping it's something obvious and silly.....

Here's the voice bridge log (Real World@00 is the outbound extension name from the Trixbox server):

Executing: [/usr/java/jdk1.6.0_06/jre/bin/java, -cp, /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/lib/ant/ant-launcher.jar, -Dant.home=/usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/lib/ant, org.apache.tools.ant.launch.Launcher, -Dvoicebridge.long.distance.prefix=1, -Dvoicebridge.webserver.url=http://131.185.4.9:8080/, -Dvoicebridge.status.listeners=131.185.4.9, -Dvoicebridge.control.port=6666, -Drunner.location=localhost, -Dvoicebridge.local.hostAddress=131.185.4.9, -Dvoicebridge.sip.port=5060, -Dvoicebridge.sip.gateways=vhq-trixbox, -Dvoicebridge.outside.line.prefix=9, -Dvoicebridge.sound.cache.path=/usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/audiocache, -Drunner.name=Voice Bridge, -Dvoicebridge.international.prefix=011, -Dvoicebridge.password.file=, -Dvoicebridge.sip.proxy=vhq-trixbox, -f, /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/run.xml]
Buildfile: /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/run.xml

shutdown-bridge:
[java] Jan 19 18:23:20.852 Connecting to 131.185.4.9:6666

-find-properties:

run-bridge:
[java] Jan 19 18:23:21.20 Log file is ./log/bridge.log
[java] Jan 19 18:23:21.25 Built on Tue Dec 15 2009 03:04 PM
[java] Jan 19 18:23:21.25 Running java version 1.6.0_06
[java] Jan 19 18:23:21.25 OS Name = Linux, OS Arch = i386, OS Version = 2.6.26.3-14.fc8
[java] Jan 19 18:23:21.25 user.dir = /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run
[java] Jan 19 18:23:21.26 Using localhost System property javax.sip.IP_ADDRESS: 131.185.4.9
[java] Jan 19 18:23:21.29 Bridge started in location 'BUR'
[java] Jan 19 18:23:21.29 Bridge server private control port: 6666
[java] Jan 19 18:23:21.41 VoIP gateways: 131.185.4.123:5060
[java] Jan 19 18:23:21.41
[java] 0.259: [GC 0.259: [ParNew: 4096K->512K(4608K), 0.0078350 secs] 4096K->546K(306688K), 0.0079180 secs] [Times: user=0.01 sys=0.00, real=0.00 secs]
[java] Jan 19 18:23:21.223
[java] Jan 19 18:23:21.224 Bridge private address: 131.185.4.9
[java] Jan 19 18:23:21.224 Bridge private SIP port: 5060
[java] Jan 19 18:23:21.228 Bridge public address: 131.185.4.9
[java] Jan 19 18:23:21.228 Bridge public SIP port: 5060
[java] Jan 19 18:23:21.230 Default SIP Proxy: vhq-trixbox
[java] Jan 19 18:23:21.230
[java] Jan 19 18:23:21.233 Initializing FreeTTSClient...
[java] 0.407: [GC 0.407: [ParNew: 4608K->512K(4608K), 0.0184440 secs] 4642K->2092K(306688K), 0.0184960 secs] [Times: user=0.05 sys=0.01, real=0.02 secs]
[java] 0.473: [GC 0.473: [ParNew: 4608K->512K(4608K), 0.0206770 secs] 6188K->5118K(306688K), 0.0207310 secs] [Times: user=0.07 sys=0.02, real=0.02 secs]
[java] 0.542: [GC 0.542: [ParNew: 4608K->512K(4608K), 0.0196400 secs] 9214K->8103K(306688K), 0.0196990 secs] [Times: user=0.08 sys=0.02, real=0.02 secs]
[java] 0.827: [GC 0.827: [ParNew: 4608K->512K(4608K), 0.0169540 secs] 12199K->10706K(306688K), 0.0170040 secs] [Times: user=0.05 sys=0.02, real=0.02 secs]
[java] Jan 19 18:23:21.883 FreeTTSClient Initialization done...
[java] Jan 19 18:23:21.886 Processing jar file /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/modules/sgs-shared-1.7.jar
[java] Jan 19 18:23:21.887 Processing jar file /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/modules/bridgestreamingmodule.jar
[java] Jan 19 18:23:21.889 Processing jar file /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/modules/slf4j-api-1.4.0.jar
[java] Jan 19 18:23:21.889 Processing jar file /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/modules/wonderland-client.jar
[java] Jan 19 18:23:21.890 Processing jar file /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/modules/bridge-recorder.jar
[java] Jan 19 18:23:21.892 Processing jar file /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/modules/jl1.0.jar
[java] Jan 19 18:23:21.893 Processing jar file /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/modules/contentrepo-client.jar
[java] Jan 19 18:23:21.893 Processing jar file /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/modules/commons-httpclient-3.0.1.jar
[java] Jan 19 18:23:21.894 Processing jar file /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/modules/sgs-client.jar
[java] Jan 19 18:23:21.895 Processing jar file /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/modules/jdom-1.0.jar
[java] Jan 19 18:23:21.897 Processing jar file /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/modules/slf4j-jdk14-1.4.0.jar
[java] Jan 19 18:23:21.897 Processing jar file /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/modules/MP3AudioSource.jar
[java] Jan 19 18:23:21.900 Processing jar file /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/modules/mina-core-1.1.0.jar
[java] Jan 19 18:23:21.901 Processing jar file /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/modules/scannotation-1.0.2.jar
[java] Jan 19 18:23:21.902 Processing jar file /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/modules/webdavclient4j-core-0.92.jar
[java] Jan 19 18:23:21.902 Processing jar file /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/modules/commons-logging-1.1.jar
[java] Jan 19 18:23:21.903 Processing jar file /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/modules/commons-codec-1.3.jar
[java] Jan 19 18:23:21.904 Processing jar file /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/modules/wonderland-common.jar
[java] Jan 19 18:23:21.904 Processing jar file /usr/local/vhq/home/vhq-v05/.wonderland-server/0.5-dev/run/voice_bridge/run/modules/webdav-client.jar
[java] 0.993: [GC 0.993: [ParNew: 4607K->512K(4608K), 0.0130960 secs] 14802K->13238K(306688K), 0.0131560 secs] [Times: user=0.05 sys=0.01, real=0.01 secs]
[java] Jan 19, 2010 6:23:21 PM org.jdesktop.wonderland.modules.bridgerecordermodule.server.BridgeRecorderInitializer
[java] INFO: adding new recorder listener...
[java] Jan 19, 2010 6:23:21 PM org.jdesktop.wonderland.modules.bridgerecordermodule.server.BridgeRecorderInitializer createConnection
[java] INFO: Logging in
[java] Jan 19, 2010 6:23:22 PM org.jdesktop.wonderland.common.utils.ScannedClassLoader createDB
[java] WARNING: Scanned classes in 3 ms.
[java] 1.358: [GC 1.358: [ParNew: 4608K->512K(4608K), 0.0067230 secs] 17334K->13788K(306688K), 0.0067840 secs] [Times: user=0.02 sys=0.01, real=0.01 secs]
[java] Jan 19, 2010 6:23:22 PM org.jdesktop.wonderland.modules.bridgerecordermodule.server.BridgeRecorderInitializer createConnection
[java] INFO: Login succeeded, registering repository
[java] log4j:WARN No appenders could be found for logger (org.apache.commons.httpclient.HttpClient).
[java] log4j:WARN Please initialize the log4j system properly.
[java] 1.609: [GC 1.609: [ParNew: 4608K->512K(4608K), 0.0049720 secs] 17884K->13921K(306688K), 0.0050170 secs] [Times: user=0.01 sys=0.01, real=0.01 secs]
[java] Jan 19, 2010 6:23:22 PM org.jdesktop.wonderland.modules.bridgerecordermodule.server.BridgeRecorderInitializer createConnection
[java] INFO: Registering repository succeeded
[java] Register
[java] Jan 19 18:23:22.635 Log file is ./log/bridge.log
[java] Jan 19 18:23:22.638 Outside line prefix set to '1'
[java] Jan 19 18:23:22.638 Outside line prefix set to '9'
[java] Jan 19 18:23:22.638 International prefix set to '011'
[java] Jan 19 18:23:22.638
[java] Jan 19 18:23:22.639 The Bridge is initialized and Ready
[java] Jan 19 18:23:22.639
[java] Jan 19 18:23:22.640 Missing server port for listener: 131.185.4.9 defaulting to 6668
[java] Jan 19 18:23:22.641 Successfully notified /131.185.4.9:6668 that this bridge is up
[java] Jan 19 18:23:22.645 New connection accepted from marvin:35876
[java] Jan 19 18:23:22.648 New connection accepted from marvin:35877
[java] Jan 19 18:23:22.650 New connection accepted from marvin:35878
[java] Jan 19 18:23:22.661 mic=true
[java] Jan 19 18:23:22.662 sm=true
[java] Jan 19 18:23:22.668 adding incoming call monitor, setting directConferencing to false
[java] Jan 19 18:23:22.668 cc=VHQ:PCM/16000/2
[java] Jan 19 18:23:22.673 conference VHQ using media settings 104:PCM/16000/2
[java] Jan 19 18:23:22.681 starting new conference: 'VHQ'. conferences in progress: 1
[java] Jan 19 18:23:22.682 conference VHQ using media settings 104:PCM/16000/2
[java] Jan 19 18:23:22.682 wgo=VHQ:VHQ:noCommonMix=true
[java] Jan 19 18:23:22.683 mcc=true:VHQ
[java] 14.134: [GC 14.134: [ParNew: 4608K->512K(4608K), 0.0054510 secs] 18017K->14227K(306688K), 0.0055040 secs] [Times: user=0.02 sys=0.00, real=0.01 secs]
[java] Jan 19 18:23:35.148 ptime attribute is not supported! v=0
[java] o=root 2357 2357 IN IP4 131.185.4.123
[java] s=session
[java] c=IN IP4 131.185.4.123
[java] t=0 0
[java] m=audio 15654 RTP/AVP 0 8 101
[java] a=rtpmap:0 PCMU/8000
[java] a=rtpmap:8 PCMA/8000
[java] a=rtpmap:101 telephone-event/8000
[java] a=fmtp:101 0-16
[java] a=silenceSupp:off - - - -
[java] a=ptime:20
[java] a=sendrecv
[java]
[java] Jan 19 18:23:35.148 ptime attribute is not supported! v=0
[java] o=root 2357 2357 IN IP4 131.185.4.123
[java] s=session
[java] c=IN IP4 131.185.4.123
[java] t=0 0
[java] m=audio 15654 RTP/AVP 0 8 101
[java] a=rtpmap:0 PCMU/8000
[java] a=rtpmap:8 PCMA/8000
[java] a=rtpmap:101 telephone-event/8000
[java] a=fmtp:101 0-16
[java] a=silenceSupp:off - - - -
[java] a=ptime:20
[java] a=sendrecv
[java]
[java] Jan 19 18:23:35.149 ptime attribute is not supported! v=0
[java] o=root 2357 2357 IN IP4 131.185.4.123
[java] s=session
[java] c=IN IP4 131.185.4.123
[java] t=0 0
[java] m=audio 15654 RTP/AVP 0 8 101
[java] a=rtpmap:0 PCMU/8000
[java] a=rtpmap:8 PCMA/8000
[java] a=rtpmap:101 telephone-event/8000
[java] a=fmtp:101 0-16
[java] a=silenceSupp:off - - - -
[java] a=ptime:20
[java] a=sendrecv
[java]
[java] Jan 19 18:23:35.149 ptime attribute is not supported! v=0
[java] o=root 2357 2357 IN IP4 131.185.4.123
[java] s=session
[java] c=IN IP4 131.185.4.123
[java] t=0 0
[java] m=audio 15654 RTP/AVP 0 8 101
[java] a=rtpmap:0 PCMU/8000
[java] a=rtpmap:8 PCMA/8000
[java] a=rtpmap:101 telephone-event/8000
[java] a=fmtp:101 0-16
[java] a=silenceSupp:off - - - -
[java] a=ptime:20
[java] a=sendrecv
[java]
[java] Jan 19 18:23:35.149 Don't have conf...
[java] Jan 19 18:23:35.151 starting new conference: 'IncomingCallsConference'. conferences in progress: 2
[java] Jan 19 18:23:35.178 conferenceManager: 'IncomingCallsConference', new member 1_BUR::Real World@00@131.185.4.123 total members: 1
[java] Jan 19 18:23:35.179 Incoming Call 1_BUR::Real World@00@131.185.4.123 joined conference IncomingCallsConference
[java] Jan 19 18:23:35.180 Call 1_BUR::Real World@00@131.185.4.123 100 INVITED
[java] Jan 19 18:23:35.180 SipIncomingCallAgent: Got an INVITE from "Real World" to
[java] Jan 19 18:23:35.183 ptime attribute is not supported! v=0
[java] o=root 2357 2357 IN IP4 131.185.4.123
[java] s=session
[java] c=IN IP4 131.185.4.123
[java] t=0 0
[java] m=audio 15654 RTP/AVP 0 8 101
[java] a=rtpmap:0 PCMU/8000
[java] a=rtpmap:8 PCMA/8000
[java] a=rtpmap:101 telephone-event/8000
[java] a=fmtp:101 0-16
[java] a=silenceSupp:off - - - -
[java] a=ptime:20
[java] a=sendrecv
[java]
[java] Jan 19 18:23:35.183 My preferred payload being used 0
[java] Jan 19 18:23:35.184 SipIncomingCallAgent: remote socket 131.185.4.123 15654
[java] Jan 19 18:23:35.185 My media info: 0:PCMU/8000/1
[java] Jan 19 18:23:35.186 addMember 1_BUR::Real World@00@131.185.4.123 /131.185.4.123:15654
[java] Jan 19 18:23:35.191 Call 1_BUR::Real World@00@131.185.4.123 Whisper group 1_BUR doesn't exist. Automatically creating it with attenuation 0 and locked
[java] Jan 19 18:23:35.191 Call 1_BUR::Real World@00@131.185.4.123 already whispering in 1_BUR:0:PCMU/8000/1 0.0 Transient Locked 1_BUR+
[java] Jan 19 18:23:35.285 Started 8 sender threads
[java] Jan 19 18:23:35.289 Call 1_BUR::Real World@00@131.185.4.123 110 ANSWERED
[java] Jan 19 18:23:35.298 Call 1_BUR::Real World@00@131.185.4.123 Waiting for call to end...
[java] Jan 19 18:23:35.304 Call 1_BUR::Real World@00@131.185.4.123 200 ESTABLISHED
[java] Jan 19 18:23:35.304 Incoming notifying conf monitors call is estab
[java] Jan 19 18:23:35.358 Call 1_BUR::Real World@00@131.185.4.123 got first packet, length 172
[java] 14.617: [GC 14.617: [ParNew: 4607K->493K(4608K), 0.0068200 secs] 18322K->14643K(306688K), 0.0068790 secs] [Times: user=0.03 sys=0.01, real=0.01 secs]
[java] 23.737: [GC 23.737: [ParNew: 4589K->229K(4608K), 0.0012880 secs] 18739K->14379K(306688K), 0.0013640 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
[java] 32.603: [GC 32.604: [ParNew: 4325K->265K(4608K), 0.0018450 secs] 18475K->14415K(306688K), 0.0018940 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
[java] Jan 19 18:23:53.527 Call 1_BUR::Real World@00@131.185.4.123 has hung up.
[java] Jan 19 18:23:53.530 Call 1_BUR::Real World@00@131.185.4.123 290 ENDING
[java] Jan 19 18:23:53.531 Call 1_BUR::Real World@00@131.185.4.123 299 ENDED
[java] Jan 19 18:23:53.531 Call 1_BUR::Real World@00@131.185.4.123 Got ENDED status.
[java] Jan 19 18:23:53.531 Call 1_BUR::Real World@00@131.185.4.123 ended...
[java] Jan 19 18:23:53.533 Call 1_BUR::Real World@00@131.185.4.123 Now whispering in IncomingCallsConference:0:PCMU/8000/1 0.13
[java] Jan 19 18:23:53.533 Call 1_BUR::Real World@00@131.185.4.123 is not a member of whisper group IncomingCallsConference
[java] Jan 19 18:23:53.533 Removing transient whisper group 1_BUR
[java] Jan 19 18:23:53.536 conferenceManager: 'IncomingCallsConference': member 1_BUR::Real World@00@131.185.4.123 leaving, remaining: 0
[java] Jan 19 18:23:53.537 TheLoneSender 918 packets sent
[java] Jan 19 18:23:53.538 TheLoneSender average time to send a packet to every member 2.775876535947712E-4 seconds
[java] Jan 19 18:23:53.538 TheLoneSender average time between ticks 19.985104 ms
[java] Jan 19 18:23:53.538
[java] Jan 19 18:23:53.538 Conference: 'IncomingCallsConference' has ended. conferences still in progress: 0
[java] Jan 19 18:23:53.538
[java] Jan 19 18:23:53.539 No conferences in progress, doing a full GC...
[java] 32.619: [Full GC (System) 32.619: [CMS: 14149K->14090K(302080K), 0.1585420 secs] 14979K->14090K(306688K), [CMS Perm : 12562K->12530K(16384K)], 0.1587520 secs] [Times: user=0.14 sys=0.02, real=0.15 secs]
[java] Jan 19 18:23:53.698
[java] Jan 19 18:23:53.699 calls still in progress: 0
[java] Jan 19 18:23:53.699
[java] Jan 19 18:23:53.699 1_BUR::Real World@00@131.185.4.123 Cancel request Incoming call ended

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
danthedixonman
Offline
Joined: 2008-05-28

Hi Tom,

I just had a look at the FreePBX website and some screen shots and it looks like the GUI is almost identical in format to the Trixbox one so I may be able to help a bit more.....

How is your trunk setup? For me all I've filled in is:
Outbound Caller ID ("Name" )
Dial Rule (00)
Trunk name (Free-text)
PEER Details (host=, username=, type=peer)
Register String (sip:.@)
The rest is all default.

I've then set the Outbound Route with the following details:
Route Name (To Wonderland)
Dial Patterns (00)
Trunk Sequence (SIP/)
The rest is all default.

When this is set, you should see that the Trunk will say 'In use by 1 route' when it is selected.

It sounds like your Inbound Route is set up correctly if you can receive calls from the in-world phone. I assume your extensions are set correctly (we use Cisco IP Phones). Other than that I think that's about the extent of my configuration.......

tom01278
Offline
Joined: 2009-08-28

:(
I really expected it to work that time! But no.
So.... Are there any restrictions with "Outbound Caller ID" and "username"?

Also Joe mentioned the SIP port twice in as many messages, and yet it seems you got away without using it at all. I guess it uses 5060 by default, so that shouldn't be a problem.

Failing that, could it be that our WL isn't right?
I used Insert object to add the phone (so it's the default one), and it can dial out.
I set up voicebridge.sip.gateways but didn't set up voicebridge.sip.proxy (because I don't even know what that means, let alone what it would be).

Also, just so I know, what would I hear on calling 00 if it DID work?

Thanks much,
Tom

jprovino
Offline
Joined: 2007-03-29

Tom, sounds like you're very close. Yes 5060 is the default port. The beginning of the vb log
tells you what IP addresses and ports its using.

setting voicebridge.sip.gateways is all you need to do for outgoing calls. You don't need
to set a SIP proxy.

Take a look at the vb log when you try the incoming call.
There should be messages about an incoming call.
If you don't see anything, then the Asterisk box isn't routing the call to the vb.

You might want to run a packet sniffer such as wireshark to see if the Asterisk box is sending
anything. But it sounds like it doesn't like something. Are there log files with Asterisk that
might help?

joe

tom01278
Offline
Joined: 2009-08-28

Aha, I should have checked the VB logs sooner.
http://pastebin.com/f6d01e50c
So it seems to be working, and we're back to where this tread began. :)
Would the changed IncomingCallHandler.java have been in the nightly on 28/1/10?
If not I'll download a new one (or maybe wait for preview3).
Thanks guys,
Tom

jprovino
Offline
Joined: 2007-03-29

Tom, looks like it should be working. Do you hear anything? Try pressing #.

joe

tom01278
Offline
Joined: 2009-08-28

If I press * twice then it says "Star!" and then says it again every other time I press *.
If I press # (after pressing * at least twice) then is says "press the pound key to list phone information"
It's a male voice, so I guess it can't be asterisk sneaking in.
Cheers,
Tom

jprovino
Offline
Joined: 2007-03-29

Tom, seems like it's working but you're not getting the first message.

** makes it echo what you press.

Just press #

The default phone number is 100.

enter 100# and your call should be transferred to the in-world phone.

joe

tom01278
Offline
Joined: 2009-08-28

VoiceBridge log:
[java] Feb 5 9:41:4.422 Call 21_BUR::1235@asterisk-ip got dtmf key #
[java] Feb 5 9:41:5.102 Call 21_BUR::1235@asterisk-ip got dtmf key 1
[java] Feb 5 9:41:5.812 Call 21_BUR::1235@asterisk-ip got dtmf key 0
[java] Feb 5 9:41:5.992 Call 21_BUR::1235@asterisk-ip got dtmf key 0
[java] Feb 5 9:41:6.352 Call 21_BUR::1235@asterisk-ip got dtmf key #

It knows I'm pressing the keys, but doesn't do anything about it.
Nothing happens on the phone or in-world.
Cheers,
Tom

tom01278
Offline
Joined: 2009-08-28

What address do I dial from my IP softphone to get through to the switchboard?
I've tried .@IPadress (address that is shown when I call out to IP phone) and 100@IPaddress (100 being the number of the inworld phone).
I'm using X-lite connected to an Asterisk server, and the ip:port of asterisk is in the voice bridge's voicebridge.sip.gateways
Cheers,
Tom

danthedixonman
Offline
Joined: 2008-05-28

Hi Tom - have you set up Asterisk to route calls to Wonderland? In my setup using Trixbox (built on Asterisk) I set up a trunk that picks up calls when I dial '00' and routes it to the voicebridge server as an outbound route using .@IP-address as the register string.

tom01278
Offline
Joined: 2009-08-28

hmm, no matter where I put .@IP-address in the trunk settings, dialling the number set to use that trunk makes it say "all circuits are busy now, please try your call again later...the person you are calling is unavailable, please try again".
oh, it does that if I don't put any settings in, too... that's worrying.
If I just put in the IP-address of WL in the "host=" bit, then ringing 00 returns silence.
oh, unless I press either star or hash, which makes it say "star!" and "press the pound key to list phone information" respectively.
Clearly I have no real experience with phone systems, so I expect I just set up the trunk wrong.
Any insights?
Thanks,
Tom

danthedixonman
Offline
Joined: 2008-05-28

From memory that first message occurs when there are no phones in the world..... I assume it's unlocked?

You could always set up an inbound route to your softphone (but you'll have to set it up as an extension in Asterisk). I'm not familiar with Asterisk's setup so not sure what other suggestions I can make.

jprovino
Offline
Joined: 2007-03-29

Tom, can you tell me more about what you're trying to do? You don't want to do anything
with the softphone in wonderland. That's for your headset so you can talk to and hear everyone
in-world.

If you want to place an outgoing call or accept incoming calls you will need to insert
a virtual phone in-world.

Then configure your Asterisk server to route incoming calls to the voice bridge IP Address
and SIP port.

To place outgoing calls you will need to set the voice bridge parameters

voicebridge.sip.gateways=

joe

tom01278
Offline
Joined: 2009-08-28

Joe,
I understand that Sip Communicator needs to be left alone :)
We have a phone in-world (the standard one, Phone 100, unlocked) and can call numbers on our asterisk from in-world.
What we want now is to be able to make a call from a phone connected to asterisk, to the phone in-world.
I think the problem is that I have no idea how to set up an asterisk server (using freepbx), so I'm kinda stabbing in the dark :/
All those "trunks" and "routes" confuse me :(

The only destination for "Incoming Route" is the extensions I've set up, or hang up. So I can tell it's not that.
"Outbound Routes" take a dial pattern, and send it to a Trunk, which seems more likely.
But trunks seem to need more than just IP address and SIP port. So I don't know...

Any help would be appreciated.
Thanks,
Tom

jprovino
Offline
Joined: 2007-03-29

Tom, got it.

Glad you got outgoing working.

I don't know a lot about Asterisk so I can't really help there.

If you can figure out how to route number to the voice bridge SIP port then
they should be messages in the voice bridge log about incoming calls.

Sorry I don't know more.

joe

tom01278
Offline
Joined: 2009-08-28

k, thanks joe and dan for getting me this far
anyone who does happen to know how to set this up?
cheers,
Tom

jprovino
Offline
Joined: 2007-03-29

Is there a virtual phone in-world? You need at least one so there's a place to transfer the call to.
The default phone number is 100.

If you have a virtual phone in-world but still don't hear anything, let me know.

joe

danthedixonman
Offline
Joined: 2008-05-28

Yep I have 2 virtual phones in-world with numbers 201 and 202 and don't hear anything.

jprovino
Offline
Joined: 2007-03-29

ok, I'll try to reproduce the problem.

joe

danthedixonman
Offline
Joined: 2008-05-28

I also added a virtual phone with default properties and the same issue. Server is 64-bit Fedora if that helps. I get the same issue on 64-bit Ubuntu too. Using WinXP for clients and revision circa 4300 of trunk.

PS - Thanks Joe. Must be late at your side of the world. Normally I don't catch you guys when I'm at work!

Message was edited by: danthedixonman

[Edit2: I also restarted everything with the garden-arches world and inserted a virtual phone and get the same issue]

jprovino
Offline
Joined: 2007-03-29

Hi Dan, I think I fixed the problem. The IncomingCallHandler caused an exception.

Just get this file and redeploy the phone.

modules/tools/phone/src/classes/org/jdesktop/wonderland/modules/phone/server/cell/IncomingCallHandler.java

thanks.

joe

danthedixonman
Offline
Joined: 2008-05-28

Thanks Joe all fixed!

jprovino
Offline
Joined: 2007-03-29

Dan, thanks for letting me know and for reporting the problems.

joe