# VitalPBX Early media support

**URL:** https://forums.vitalpbx.org/t/vitalpbx-early-media-support/2114
**Category:** VitalPBX
**Created:** [December 14, 2022, 12:02pm UTC](https://forums.vitalpbx.org/t/vitalpbx-early-media-support/2114 "2022-12-14T12:02:36Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Klemen](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/k/9e8a1a/32.png) [@Klemen](https://forums.vitalpbx.org/u/Klemen)
#### Post date: [December 14, 2022, 12:02pm UTC](https://forums.vitalpbx.org/t/vitalpbx-early-media-support/2114/1 "2022-12-14T12:02:36Z")

</div>

Hello,

I am unable to configure the “early media” support on a PJSIP SIP trunk or device profile (in some cases, this setting is also named premature media).

Example: If a mobile phone is in flight mode or turned off and a call is made from VitalPBX, the call keeps ringing as if the mobile phone isn’t answering.  
The response should be unavailable, this was tested from other PBXs and works properly.

Please help in resolving this issue.

Best regards, Klemen

---

<div class="post-metadata">

### Author: ![miguel](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/miguel/32/415_2.png) [@miguel](https://forums.vitalpbx.org/u/miguel)
#### Post date: [December 14, 2022, 1:24pm UTC](https://forums.vitalpbx.org/t/vitalpbx-early-media-support/2114/2 "2022-12-14T13:24:19Z")

</div>

Try disabling the ringing tone from the Dial Profile. You can create a new Dial Profile for your trunk if you need it.

 ![image](https://forums.vitalpbx.org/uploads/default/original/2X/8/8881dcd8d9ae17d7b8b416763a06b75b97bafae9.png)

---

<div class="post-metadata">

### Author: ![PitzKey](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/pitzkey/32/420_2.png) [@PitzKey](https://forums.vitalpbx.org/u/PitzKey)
#### Post date: [December 14, 2022, 2:16pm UTC](https://forums.vitalpbx.org/t/vitalpbx-early-media-support/2114/3 "2022-12-14T14:16:44Z")

</div>

Early Media in asterisk is to transmit one way audio, not necessarily related to the type of ringtone.

From what I understand, it looks like the device is responding with a ringing 180.

A logfile with SIP debugging enabled will tell you whats happening

---

<div class="post-metadata">

### Author: ![Klemen](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/k/9e8a1a/32.png) [@Klemen](https://forums.vitalpbx.org/u/Klemen)
#### Post date: [December 15, 2022, 7:37am UTC](https://forums.vitalpbx.org/t/vitalpbx-early-media-support/2114/4 "2022-12-15T07:37:52Z")

</div>

Thank you for the prompt responses.

I have disabled the ringing tone in the dial profile which is used and the result is the same.  
Please find the log file in the attachment, is this log appropriate or do you require any other type?  
The call was made from extension PJSIP/11266.  
[11266\_trace.txt](https://forums.vitalpbx.org/uploads/short-url/eLOO9GusIUTaJ7SLaZn0O02zUQ1.txt) (30.7 KB)

Best regards, Klemen

---

<div class="post-metadata">

### Author: ![miguel](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/miguel/32/415_2.png) [@miguel](https://forums.vitalpbx.org/u/miguel)
#### Post date: [December 15, 2022, 2:01pm UTC](https://forums.vitalpbx.org/t/vitalpbx-early-media-support/2114/5 "2022-12-15T14:01:31Z")

</div>

I only see a regular Dial in your log; nothing unusual.

In this case the behavior of the PBX depends on the response returned by your VoIP provider. You can use the SNGREP tool to see the responses or events returned by your VoIP provider.

---

<div class="post-metadata">

### Author: ![Klemen](https://forums.vitalpbx.org/letter_avatar_proxy/v4/letter/k/9e8a1a/32.png) [@Klemen](https://forums.vitalpbx.org/u/Klemen)
#### Post date: [December 19, 2022, 10:57am UTC](https://forums.vitalpbx.org/t/vitalpbx-early-media-support/2114/6 "2022-12-19T10:57:05Z")

</div>

Please find the screenshot of the sngrep attached. Where can I send You the complete file?  
IP .10 is VitalPBX  
IP .09 is SBC  
IP .02 is router (call was made from a softphone with an established VPN). The same occurs with calls from devices in LAN.

 ![SNGREP 11266](https://forums.vitalpbx.org/uploads/default/original/2X/1/1d96ae2b08759806f41058e6af5fe500f4b855ba.png)

---

<div class="post-metadata">

### Author: ![system](https://forums.vitalpbx.org/uploads/default/original/1X/672b458a1d454755270c2c16adc5316b641c3c6a.png) [@system](https://forums.vitalpbx.org/u/system)
#### Post date: [January 18, 2023, 10:57am UTC](https://forums.vitalpbx.org/t/vitalpbx-early-media-support/2114/7 "2023-01-18T10:57:07Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
