How to read dialed mobile number in my phone

I mean the app is going to read dialed number and send it to database. is it possible to do that.?
Please give me some suggestion and useful link it will be highly appreciated
Thanks

Hi, I did not get your question, Do you want to get input value in a variable? if yes then this will help you:

.html

<ion-input
                      type="tel"
                      ngModel
                      (input)="onNumber($event)"
                      name="number"
                      required
                      #number="ngModel"
              ></ion-input>

and .ts file:

 phoneNumber: any

 onNumber(event: Event) {
    this.phoneNumber = (<HTMLInputElement>event.target).value;
    console.log(this.phoneNumber);
  }

and then you can easily post this ( phoneNumber ) variable in the firebase.