Early media problems

Discussion in '3CX Phone System - General' started by Montclairguy, Apr 9, 2010.

Thread Status:
Not open for further replies.
  1. Montclairguy

    Joined:
    Feb 23, 2010
    Messages:
    68
    Likes Received:
    0
    I'm having some very odd issues with US toll free numbers, when routing calls through 3CX's Skype Gateway as opposed to dialing them directly from the Skype client. This behavior is also reproduced in another Skype gateway product, siptosis.

    Sometimes, US toll free numbers never connect. Other times, they take very, very, very long to connect. And, in one particular case, dialing a specific toll free number for American Express from our landline, or the skype client results in reaching one automated attendant at American Express -- while dialing the very same number from our softphones, through our 3CX PBX, out through 3CX's skype gateway gives us a completely different automated attendant at American Express!

    Is there something in the PBX that's adding a "via" header to the skype call, or fooling with some other headers? In other words, what is different about a Skype client call, as opposed to a Skype API call, that would identify the caller differently to the callee?

    At a loss... any ideas?
     
  2. Montclairguy

    Joined:
    Feb 23, 2010
    Messages:
    68
    Likes Received:
    0
    UPDATE:

    Well -- I found out what's happening, and it has to do with early media. I turned up the sound on the box with 3CX Gateway for Skype, and skype, and made the call. Here's what happens:

    1) The call is actually answered by the correct auto attendant.
    2) I cannot hear that through any softphone I've tried, but I hear it through the skype client on the 3cx gateway box.
    3) After that attendant times out, another attendant answers the call, and Skype then apparently reflects that the call is answered.
    4) That's when the softphones and PBX recognize the call as connected.


    • 15:36:26:895 - Info : Outbound call requested
      15:36:26:895 - Info : Creating a Skype call to account [1800XXXXXXX]
      15:36:26:942 - Info : Call (skypeid 12813) created for account [1800XXXXXXX]
      15:36:26:942 - Info : Port check - Port [127.0.0.1:22500] is free
      15:36:27:098 - Info : Call (skypeid 12813) identified, [10011] calls [1800XXXXXXX]
      15:36:27:098 - Info : Call (skypeid 12813) identified, [10011] calls [1800XXXXXXX]
      15:36:27:239 - Warning : Slave channel [xxxx] has been removed
      15:36:27:239 - Info : - registered slave channels: []
      15:36:31:629 - Info : Call (skypeid 12813) identified, [10011] calls [1800XXXXXXX]
      15:36:31:973 - Info : Call (skypeid 12813) is in an UNKNOWN state, considering on hook (earlymedia - see below)
      15:36:32:051 - Info : Slave channel [xxxx] has been registered
      15:36:32:051 - Info : - registered slave channels: [xxxx]
      15:37:05:551 - Info : Call (skypeid 12813) provided with incoming audio port 3859
      15:37:05:567 - Info : Call (skypeid 12813) provided with outgoing audio port 3858
      15:37:05:567 - Info : Call (skypeid 12813) now answers caller
      15:37:05:567 - Info : Call (skypeid 12813) successfully answered
      15:37:05:754 - Info : PBX call is now established
      15:37:08:395 - Info : PBX call has been ended by PBX
      15:37:08:489 - Info : Call (skypeid 12813) has been ended by caller, reason: finished [misc. error]

    I ran my own application that makes calls using the Skype COM API and see this when I call:


    • 4/9/10 3:49:22 PM: C>#3 CALL 1800XXXXXXX
      4/9/10 3:49:22 PM: R>#3 CALL 36493 STATUS UNPLACED
      4/9/10 3:49:22 PM: R>CALL 36493 STATUS ROUTING
      4/9/10 3:49:22 PM: >Call 36493 status 1 Routing
      4/9/10 3:49:22 PM: R>CALL 36493 STATUS ROUTING
      4/9/10 3:49:22 PM: >Call 36493 status 1 Routing
      4/9/10 3:49:27 PM: R>CALL 36493 STATUS RINGING
      4/9/10 3:49:27 PM: >Call 36493 status 4 Calling
      4/9/10 3:49:27 PM: R>CALL 36493 STATUS EARLYMEDIA (I cannot hear this part of the call with the gateway)
      4/9/10 3:49:27 PM: >Call 36493 status 2 Playing Early Media
      4/9/10 3:50:01 PM: R>CALL 36493 RATE 0 (second attendant answers here, which I do hear with the gateway)
      4/9/10 3:50:01 PM: R>CALL 36493 RATE_PRECISION 3
      4/9/10 3:50:01 PM: R>CALL 36493 RATE_CURRENCY USD
      4/9/10 3:50:01 PM: R>CALL 36493 STATUS INPROGRESS
      4/9/10 3:50:01 PM: >Call 36493 status 5 Call in Progress
      4/9/10 3:50:02 PM: R>CALL 36493 DURATION 1
      4/9/10 3:50:03 PM: R>CALL 36493 DURATION 2
      4/9/10 3:50:04 PM: R>CALL 36493 DURATION 3
      4/9/10 3:50:04 PM: R>CALL 36493 STATUS FINISHED
      4/9/10 3:50:04 PM: >Call 36493 status 7 Finished

    How does one enable early media to pass through to the PBX over your skype gateway?
     
Thread Status:
Not open for further replies.