Arrange Confidential Package Delivery
In recent times, it is becoming increasingly difficult to meet customer expectations, deliver their items on time and provide top-notch customer service. Even though you are working hard to deliver an order you might face unexpected issues which can halt delivery.
These can include: inaccurate/incomplete details, outdated address, unmarked streets and doors, customers not answering when the doorbell rings…all of these can result in returned packages. Furthermore, factors like poor weather conditions or heavy traffic can delay delivery as well.
In any of these cases you will want to reach out to your customer and inform them of the delay, possibly clear up ambiguities and thus prevent any further complications. By implementing the phone calling feature in your application, you will give your couriers the option to call the customers but at the same time you will attend to your customers’ needs regarding their data protection and not share their phone number.
This use case will show you how to implement the phone calling feature in your delivery/order management application.
Steps over SDK
1. First and foremost, include InfobipRTC SDK(s) in your application(s):
2. Register your users on the Infobip platform over API. Users are registered with their identity—a unique alphanumeric string. Once completed, the Infobip platform will return an authorization token.
POST /webrtc/1/token HTTP/1.1
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
"displayName":"Alice in Wonderland"
3. Initiate a call towards the landline or mobile phone by using the callPhoneNumber method. Authorization token needs to be supplied that you will have received from the previous response. This way you will have connected the courier and the customer and protected customer’s privacy.
String token = obtainToken();
CallRequest callRequest = new CallRequest(
CallPhoneNumberOptions callPhoneNumberOptions = CallPhoneNumberOptions.builder().from("33755531044").build();
OutgoingCall call = InfobipRTC.callPhoneNumber(callRequest, callPhoneNumberOptions);