Question On ExternalMedia And The Codec

Home » Asterisk Users » Question On ExternalMedia And The Codec
Asterisk Users 2 Comments

We tell asterisk to use the slin format for ExternalMedia. However, the unicast channel is selecting ulaw formatand the RTP data is indicating it’s ulaw format.

Anyone know why ulaw format would be on chosen?

[10/12 16:13:39.396] DEBUG[1665] http.c: HTTP Request URI is /ari/channels/externalMedia?app=a2519b4b-4d90-4d18-906b-717d02f8d569&external_host=192.168.32.148:8080&format=slin
[10/12 16:13:39.396] DEBUG[1665] http.c: match request [ari/channels/externalMedia] with handler [static] len 6
[10/12 16:13:39.396] DEBUG[1665] http.c: match request [ari/channels/externalMedia] with handler [ari] len 3
[10/12 16:13:39.396] DEBUG[1665] http.c: Match made with [ari]
[10/12 16:13:39.396] DEBUG[1665] res_ari.c: Finding handler for channels/externalMedia
[10/12 16:13:39.396] DEBUG[1665] res_ari.c: Finding handler for channels
[10/12 16:13:39.396] DEBUG[1665] res_ari.c: Checking ari deviceStates: Didn’t match channels
[10/12 16:13:39.396] DEBUG[1665] res_ari.c: Checking ari applications: Didn’t match channels
[10/12 16:13:39.396] DEBUG[1665] res_ari.c: Checking ari channels: Explicit match with channels
[10/12 16:13:39.396] DEBUG[1665] res_ari.c: Finding handler for externalMedia
[10/12 16:13:39.396] DEBUG[1665] res_ari.c: Checking channels create: Didn’t match externalMedia
[10/12 16:13:39.396] DEBUG[1665] res_ari.c: Checking channels channelId: Matched wildcard.
[10/12 16:13:39.396] DEBUG[1665] res_ari.c: Checking channels externalMedia: Explicit match with externalMedia
[10/12 16:13:39.396] DEBUG[1665] acl.c: For destination ‘192.168.32.148’, our source address is ‘192.168.33.34’.
[10/12 16:13:39.396] DEBUG[1665] rtp_engine.c: Using engine ‘asterisk’ for RTP instance ‘0x7fef60018320’
[10/12 16:13:39.396] DEBUG[1665] res_rtp_asterisk.c: (0x7fef60018320) RTP allocated port 12226
[10/12 16:13:39.396] DEBUG[1665] res_rtp_asterisk.c: (0x7fef60018320) ICE creating session 192.168.33.34:12226 (12226)
[10/12 16:13:39.396] DEBUG[1665] res_rtp_asterisk.c: (0x7fef60018320) ICE create
[10/12 16:13:39.396] DEBUG[1665] res_rtp_asterisk.c: (0x7fef60018320) ICE add system candidates
[10/12 16:13:39.396] DEBUG[1665] res_rtp_asterisk.c: (0x7fef60018320) ICE add candidate: 192.168.33.34:12226, 2130706431
[10/12 16:13:39.396] DEBUG[1665] rtp_engine.c: RTP instance ‘0x7fef60018320’ is setup and ready to go
[10/12 16:13:39.396] DEBUG[1665] channel_internal_api.c: : Formats: (none)
[10/12 16:13:39.396] DEBUG[1665] channel_internal_api.c: Channel is being initialized or destroyed
[10/12 16:13:39.396] DEBUG[1665] stasis.c: Creating topic. name: channel:1634055219.4, detail:
[10/12 16:13:39.396] DEBUG[1665] stasis.c: Topic ‘channel:1634055219.4’: 0x7fef6008d170 created
[10/12 16:13:39.396] DEBUG[1665] channel.c: Channel 0x7fef6008a910 ‘UnicastRTP/192.168.32.148:8080-0x7fef60018320’ allocated
[10/12 16:13:39.396] DEBUG[1665] acl.c: For destination ‘192.168.32.148’, our source address is ‘192.168.33.34’.
[10/12 16:13:39.396] DEBUG[1665] channel_internal_api.c: UnicastRTP/192.168.32.148:8080-0x7fef60018320: Formats: (ulaw)
[10/12 16:13:39.396] DEBUG[1665] channel_internal_api.c: New topology set
[10/12 16:13:39.396] DEBUG[1665] res_stasis.c: a2519b4b-4d90-4d18-906b-717d02f8d569: Subscribing to 1634055219.4
[10/12 16:13:39.396] DEBUG[1665] stasis/app.c: Channel ‘1634055219.4’ is 1 interested in a2519b4b-4d90-4d18-906b-717d02f8d569
[10/12 16:13:39.396] DEBUG[1665] http.c: HTTP keeping session open. status_code:200
[10/12 16:13:39.396] DEBUG[1666] stasis/app.c: Channel ‘1634055219.4’ is 2 interested in a2519b4b-4d90-4d18-906b-717d02f8d569

Have a good day!
Dan

This email is intended only for the use of the party to which it is addressed and may contain information that is privileged, confidential, or protected by law. If you are not the intended recipient you are hereby notified that any dissemination, copying or distribution of this email or its contents is strictly prohibited. If you have received this message in error, please notify us immediately by replying to the message and deleting it from your computer.

2 thoughts on - Question On ExternalMedia And The Codec

  • What do your ARI requests look like? Are you just requesting “slin” or one of the specific variants?

  • VGhhbmsgeW91IEdlb3JnZS4NCg0KVXNpbmcgc2xpbjE2IGluc3RlYWQgb2YgZ2VuZXJpYyBzbGlu IHJlc29sdmVkIHRoZSBpc3N1ZS4NCg0KSGF2ZSBhIGdvb2QgZGF5IQ0KRGFuDQoNCg0KRnJvbTog YXN0ZXJpc2stdXNlcnMgPGFzdGVyaXNrLXVzZXJzLWJvdW5jZXNAbGlzdHMuZGlnaXVtLmNvbT4g T24gQmVoYWxmIE9mIEdlb3JnZSBKb3NlcGgNClNlbnQ6IFdlZG5lc2RheSwgT2N0b2JlciAxMywg MjAyMSA4OjIyIEFNDQpUbzogQXN0ZXJpc2sgVXNlcnMgTWFpbGluZyBMaXN0IC0gTm9uLUNvbW1l cmNpYWwgRGlzY3Vzc2lvbiA8YXN0ZXJpc2stdXNlcnNAbGlzdHMuZGlnaXVtLmNvbT4NClN1Ympl Y3Q6IFtFeHRlcm5hbF0gUmU6IFthc3Rlcmlzay11c2Vyc10gUXVlc3Rpb24gb24gRXh0ZXJuYWxN
    ZWRpYSBhbmQgdGhlIGNvZGVjDQoNCg0KDQpPbiBUdWUsIE9jdCAxMiwgMjAyMSBhdCAyOjU0IFBN
    IERhbiBDcm9wcCA8ZGFuQGFtdGVsY28uY29tPG1haWx0bzpkYW5AYW10ZWxjby5jb20+PiB3cm90
    ZToNCldlIHRlbGwgYXN0ZXJpc2sgdG8gdXNlIHRoZSBzbGluIGZvcm1hdCBmb3IgRXh0ZXJuYWxN
    ZWRpYS4gIEhvd2V2ZXIsIHRoZSB1bmljYXN0IGNoYW5uZWwgaXMgc2VsZWN0aW5nIHVsYXcgZm9y bWF0YW5kIHRoZSBSVFAgZGF0YSBpcyBpbmRpY2F0aW5nIGl04oCZcyB1bGF3IGZvcm1hdC4NCg0K
    QW55b25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