Menu

SelectMediaFormats could not find compatible audio format

Help
2017-01-07
2017-04-04
  • Pete Davidson

    Pete Davidson - 2017-01-08

    Please see https://github.com/PeteDavidson/t38modem

    On Sat, Jan 7, 2017 at 6:40 PM, Fernando Ruza feruza@users.sf.net wrote:

    Hi,

    I'm totaly lost. I've been trying to send a fax with t38modem+hylafax and
    h323 gateway for several weeks and can not get it. I've compiled several
    t38modem versions with its respective opal and ptlib libraries but always
    get the same error. Last time I've used the following versions: RHEL
    release 6.6, t38modem-2.0.0, opal-24174 and I start t38modem with the
    following arguments:

    t38modem --no-sip -n -ttt -o /var/log/t38modem.log --h245tunneldisable -p
    +/dev/ttyx0 --route "modem:.=h323:<dn>@10.49.6.71 http://10.49.6.71"
    --route "h323:.
    =modem:<dn>"

    Also I have to say I use a Cisco Call Manager as a h323 gateway. When I
    send the fax I get the following error:

    2017/01/05 18:48:13.122 Housekeeper:0xe5af8700 ModemEngineBody::OnTimerCallback
    stConnectHandle Timeout 0
    2017/01/05 18:48:13.122 ttyx0(e):3...0xe5c3d700 ttyx0 AudioEngine
    SendOnIdle dtCng
    2017/01/05 18:48:13.122 ttyx0(e):3...0xe5c3d700
    ModemEndPoint::OnMyCallback command=requestmode extra=4
    2017/01/05 18:48:13.122 ttyx0(e):3...0xe5c3d700
    ModemConnection::RequestMode: Call[Cae0630692]-EP<modem>
    modem:/Cae0630692/0
    fax-no-force
    2017/01/05 18:48:13.122 ttyx0(e):3...0xe5c3d700 Call
    GetOtherPartyConnection Call[Cae0630692]-EP<modem>[modem:/Cae0630692/0]
    2017/01/05 18:48:13.122 ttyx0(e):3...0xe5c3d700
    ModemConnection::RequestMode: other connection has not fax type
    2017/01/05 18:48:13.122 ttyx0(e):3...0xe5c3d700
    ModemConnection::RequestMode: force fax mode for other connection
    2017/01/05 18:48:13.122 ttyx0(e):3...0xe5c3d700
    ModemEndPoint::OnMyCallback request={
    calltoken=modem:/Cae0630692/0
    mode=fax-no-force
    command=requestmode
    response=confirm
    modemtoken=ttyx0
    }
    2017/01/05 18:48:13.122 PSimpleThr...0xe59b3700 Call
    GetOtherPartyConnection Call[Cae0630692]-EP<modem>[modem:/Cae0630692/0]
    2017/01/05 18:48:13.122 PSimpleThr...0xe59b3700
    ModemConnection::RequestMode: other connection has not fax type
    2017/01/05 18:48:13.123 PSimpleThr...0xe59b3700
    ModemEndPoint::GetMediaFormats
    2017/01/05 18:48:13.123 PSimpleThr...0xe59b3700 ModemConnection::GetMediaFormats
    Remove PCM-16
    2017/01/05 18:48:13.123 PSimpleThr...0xe59b3700 ModemConnection::GetMediaFormats
    Remove UserInput/RFC2833
    2017/01/05 18:48:13.123 PSimpleThr...0xe59b3700 ModemConnection::
    UpdateMediaStreams:
    patching T.38
    <------> G.711-uLaw-64k,G.711-ALaw-64k
    2017/01/05 18:48:13.123 PSimpleThr...0xe59b3700 ModemConnection::UpdateMediaStreams:
    otherSink=OpalRTPMediaStream-Sink-G.711-uLaw-64k
    otherSinkFormat=G.711-uLaw-64k otherSinkSessionID=1
    2017/01/05 18:48:13.123 PSimpleThr...0xe59b3700 ModemConnection::UpdateMediaStreams:
    otherSource=OpalRTPMediaStream-Source-G.711-uLaw-64k
    otherSourceFormat=G.711-uLaw-64k
    2017/01/05 18:48:13.126 PSimpleThr...0xe59b3700 Call SelectMediaFormats
    could not find compatible audio format:
    source formats=T.38
    sink formats=G.711-uLaw-64k
    2017/01/05 18:48:13.126 PSimpleThr...0xe59b3700 ModemConnection::UpdateMediaStreams:
    can't select source format for sink PSafePtrBase
    2017/01/05 18:48:13.126 PSimpleThr...0xe59b3700 MyH323Connection::
    SwitchFaxMediaStreams:
    G.711-uLaw-64k
    G.711-ALaw-64k

    2017/01/05 18:48:13.126 PSimpleThr...0xe59b3700 H323 Found capability:
    G.711-uLaw-64k <1>
    2017/01/05 18:48:13.126 PSimpleThr...0xe59b3700 H245 Started request mode:
    outSeq=0 idle
    2017/01/05 18:48:13.127 PSimpleThr...0xe59b3700 H245 Sending PDU: request
    requestMode
    2017/01/05 18:48:13.127 PSimpleThr...0xe59b3700 PTLib Thread ended:
    name="PSimpleThread:0xe59b3700", real=0.005, kernel=0.000 (0%),
    user=0.000 (0%), both=0.000 (0%)
    2017/01/05 18:48:13.133 H.245 Hand...0xe5ab7700 H245 Receiving PDU:
    response requestModeReject
    2017/01/05 18:48:13.133 H.245 Hand...0xe5ab7700 H245 Received reject on
    request mode: outSeq=1 awaitingResponse
    2017/01/05 18:48:13.134 H.245 Hand...0xe5ab7700 MyH323Connection::OnSwitchedFaxMediaStreams:
    switched to audio
    2017/01/05 18:48:13.134 H.245 Hand...0xe5ab7700 OpalCon Switch of media
    streams to audio succeeded on Call[Cae0630692]-EP<h323>[localhost/18308]
    2017/01/05 18:48:13.134 H.245 Hand...0xe5ab7700 Call
    GetOtherPartyConnection Call[Cae0630692]-EP<h323>[localhost/18308]
    2017/01/05 18:48:13.134 H.245 Hand...0xe5ab7700 H323
    InternalEstablishedConnectionCheck: connectionState=EstablishedConnection
    fastStartState=FastStartDisabled H.245 is ready

    The main log lines ares:

    2017/01/05 18:48:13.126 PSimpleThr...0xe59b3700 Call SelectMediaFormats
    could not find compatible audio format:
    source formats=T.38
    sink formats=G.711-uLaw-64k
    2017/01/05 18:48:13.126 PSimpleThr...0xe59b3700 ModemConnection::UpdateMediaStreams:
    can't select source format for sink PSafePtrBase

    Please help!!, I don't know what more to do.

    Thanks for any advice.

    Fernando.

    SelectMediaFormats could not find compatible audio format
    https://sourceforge.net/p/t38modem/discussion/508603/thread/ed7c1827/?limit=25#d0af


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/t38modem/discussion/508603/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

    --
    Pete Davidson
    Senior Software Developer
    Embedded Systems

    O +1 859 825 4999
    M +1 859 338 3426
    F +1 859 232 6267
    Pete@Lexmark.com

    http://www.lexmark.com/
    www.lexmark.com

     
  • Pete Davidson

    Pete Davidson - 2017-01-08

    I am glad it is working for you. Please let me know if you have any issues.

    Pete

    On Sun, Jan 8, 2017 at 12:01 PM, Fernando Ruza feruza@users.sf.net wrote:

    Sorry Pete, I didn't understand you. I have downloaded and compiled your
    branch: T38modem version 2.0.0 + Improvements, Opal version 3.10.11 +
    Improvements and Ptlib version 2.10.11 + Improvements and I tested again to
    send a fax and it works like a charm.

    Thanks very much. I have spent a lot ot time trying a lot of things myself
    and I had to ask here before, I would've save a lot of time.

    Thanks again, best regards.

    Fernando.

    SelectMediaFormats could not find compatible audio format
    https://sourceforge.net/p/t38modem/discussion/508603/thread/ed7c1827/?limit=25#b18e


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/t38modem/discussion/508603/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

    --
    Pete Davidson
    Senior Software Developer
    Embedded Systems

    O +1 859 825 4999
    M +1 859 338 3426
    F +1 859 232 6267
    Pete@Lexmark.com

    http://www.lexmark.com/
    www.lexmark.com

     
  • Pete Davidson

    Pete Davidson - 2017-01-09

    Fernando,

    Vayacheslav Frolov seems to have abandoned this project. Henning
    Holtschneider continued to work on it and I took his work and added to it.
    At this point my repo has the most capable t38modem code. We use this code
    in thousands of Lexmark MFPs to allow them to do T.38 over SIP and H.323
    without a modem or ATA. I hope in the future to port t38modem it to the
    latest versions of opal and ptlib.

    Pete

    On Mon, Jan 9, 2017 at 3:51 AM, Fernando Ruza feruza@users.sf.net wrote:

    Ok Pete. Why is it working with your code and it doesn't with the official
    t38modem release?, is it something about the opal and ptlib versions and
    RHEL 6.6?.

    Regards, Fernando.

    SelectMediaFormats could not find compatible audio format
    https://sourceforge.net/p/t38modem/discussion/508603/thread/ed7c1827/?limit=25#c6dd


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/t38modem/discussion/508603/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

    --
    Pete Davidson
    Senior Software Developer
    Embedded Systems

    O +1 859 825 4999
    M +1 859 338 3426
    F +1 859 232 6267
    Pete@Lexmark.com

    http://www.lexmark.com/
    www.lexmark.com

     

Log in to post a comment.