Welcome to GotSpeech.NET Sign in | Join | Help

Marshall Harrison - "the gotspeech guy"

Site news, Speech Server insight and assorted ramblings
Dialogic Media Gateway Part II

I spent about 20 minutes today during my lunch configuring the Dialogic Gateway. As a result I can now dial out from a soft phone and from OCS 2007 Speech Server. I can also make inbound calls and if no one picks up the phone after x number of rings the call gets directed to my Speech Server application. The only thing I have left to figure out is why the app seems to play most of the greeting message before I can answer the phone when dialing out. It's not much of an application as it is just something I threw together to test my setup.

I covered my initial experience with the Dialogic gateway here. If you remember my previous attempts with the AudioCodes gateway you will remember that I never got it working the way that I wanted it to work. My requirements are:

  1. Make outbound calls from a soft phone
  2. Make outbound calls from Speech Server
  3. Direct inbound calls to Speech Server only if no one answers an incoming call within say 4 rings.

Well I'm really impressed that it only took about 20 minutes of browsing the setup menus then configuring and testing things to achieve all of my requirements using the Dialogic gateway. I was also surprised to discover that I didn't have to configure anything for outbound calls. I just address calls as 'sip:3426205@192.168.1.90:5060;user=phone' and they worked. I suppose I may have to do some configuring in the future but the initial stuff was there right out of the box.

To get inbound calls directed to Speech Server all you need to do is configure the Inbound TDM dial plan like this

 

To get it to only answer after 4 rings you just need to configure the Analog settings as shown below. Note that I've configured the number of rings to be a little high so that calls will get picked up my the family's answering machine rather that Speech Server for the time being.

 Next steps will involve configuring Office Communicator to use it for outbound dialing and selling the AudioCodes gateway.

 

 

Posted: Thursday, January 10, 2008 3:10 PM by marshallharrison

Comments

marshallharrison said:

I've fixed the problem with the app playing the message too soon. Under the Advanced Gateway settings there is a Call Connect Mode parameter that was set to "Instant" I simply switched it to "OnAnswer" and the problem was solved.

# January 10, 2008 5:04 PM

ml_ said:

Watch out for early-audio. We've had issues with "OnAnswer" when someone answers the call to fast.

On Answer works by listening to the ring-train or for voice activity. The problem crops up when someone puts up before the ring-train starts and says "Hello". It detects the voice and connects but fails to relay the audio. It can make for odd transfers where two people get connected but no one hears the "hello".

I'm not sure if the analog version has this same problem but I suspect it will. I've been using the digital version.

I have to say however, even with this problem I'm still in love with the gateway. It is the easiest gateway I've ever installed.

# January 14, 2008 11:09 AM

marshallharrison said:

Thanks ml. So far I haven't noticed the problem but I haven't run that many calls through it yet.

I agree that this has been the easiest gateway I've ever used.

# January 14, 2008 11:27 AM

Marshall Harrison - "the gotspeech guy" said:

ScanSource is offering Dialogic Media Gateway Starter Kits at 50% off. The discount comes with free training

# January 31, 2008 10:51 PM

Zigmond said:

makeCallActivity1.CalledParty = Uri.UnescapeDataString("sip:13184484192@63.166.183.5:5060;user=phone")

I am trying to have my applicatoin make an outbound call.

The following code when used to set the out going call fails with this:

An exception of type 'System.ArgumentException' occurred in Microsoft.SpeechServer.dll but was not handled in user code

Additional information: The phone number is invalid.

The goal here is to have a workflow application in .net make an outgoing call and talk to the person that picks up on the end.

# March 30, 2008 4:40 PM

marshallharrison said:

Try this -

PhoneNumberTelephonyAddress phoneToCall = new PhoneNumberTelephonyAddress();

           PhoneNumberTelephonyAddress phoneFrom = new PhoneNumberTelephonyAddress();

           phoneToCall.PhoneNumber = "3438907";

           phoneFrom.PhoneNumber = "2276534";

           this.makeCallActivity1.CalledParty = phoneToCall;

           this.makeCallActivity1.CallingParty = phoneFrom;

# March 31, 2008 8:04 PM

Zigmond said:

Thanks for the info..

Im trying to make the call from the DL Gateway.

Should the phone number be something like this

phonetocall.phonenumber = "3438907@12.12.12.12"

if 12.12.12.12 is the ip of the pbx

I also have a rule in the gateway thats if a sip call come in it redirects to the phone number at the start of the address.

I have triggered it from a sip phone but no luck getting it to call from code.

# April 16, 2008 10:14 AM

Zigmond said:

I got it to work!

       Dim phonetocall As New SipUriTelephonyAddress

       phonetocall.Host = "111.111.111.5"

       phonetocall.Port = 5060

       phonetocall.User = "5555555"

       Dim phonefrom As New SipUriTelephonyAddress

       phonefrom.Host = "111.111.111.233"

       phonefrom.Port = 5060

       phonefrom.User = "BioTrace"

       Me.makeCallActivity1.CalledParty = phonetocall

       Me.makeCallActivity1.CallingParty = phonefrom

i masked the ips but the 5555555 number is the number to becalled.

# April 16, 2008 10:43 AM

Zigmond said:

oops sorry.

I have a DailPlan set up so that incomming sip calls fro the user BioTrace are redirected to the user phone number that is enterd as of now it is the 5555555 number from the posting above.

Thanks again marshallharrison

# April 16, 2008 10:45 AM

marshallharrison said:

Great!

Sorry I missed your post but I'm in Redmond this week and I'm tied up in meetings all day. The only access I have is at night from my hotel.

# April 16, 2008 7:35 PM
Anonymous comments are disabled