title: iOS, Changing Call Volume
body: <p>I am trying to change the call volume programmatically and searched a lot about it. I couldn't find a resource that is implementing it. some of my search links below.</p>
  <ul>
  <li><p><a href="https://stackoverflow.com/questions/37873962/setting-the-system-volume-in-swift-under-ios">Setting the system volume in Swift under IOS</a></p>
  </li>
  <li><p><a href="https://stackoverflow.com/questions/28617635/swift-setting-avaudiosession-output-volume/28617937#28617937">Swift: Setting AVAudioSession Output Volume</a></p>
  </li>
  </ul>
  <p>They do change the Media volume but not ones with related to call that I am trying to manipulate.</p>
  <p>I am able to listen to the changes using a NotificationCenter. Code Below:</p>
  <pre><code>NotificationCenter.default.addObserver(self, selector: #selector(volumeChangeListener), name: NSNotification.Name(&quot;AVSystemController_SystemVolumeDidChangeNotification&quot;), object: nil)
  
  @objc func volumeChangeListener(notification: NSNotification) {
  print(&quot;VOLUME CHANGE: (notification.userInfo?.[&quot;AVSystemController_AudioVolumeNotificationParameter&quot;] as? Float)&quot;)
  }
  </code></pre>
  <p>but can't change the volume of call Programmatically. I would be really grateful for your help.</p>