Skip to content

Commit

Permalink
Change caller id
Browse files Browse the repository at this point in the history
Set a custom caller id or anonymous.
  • Loading branch information
TheCK committed Nov 27, 2014
1 parent d4f83ef commit f5d06c6
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,21 @@ Action | Description
Dial
----

Send call to voicemail or an external number ([call charges apply](https://www.simquadrat.de/tarife/mobile)).
Redirect the call and alter your caller id ([call charges apply](https://www.simquadrat.de/tarife/mobile)).

Attribute | Possible values | Default value
--------- | ------------------------------------------------------------ | -------------
callerId | Number in [E.164](http://en.wikipedia.org/wiki/E.164) format | Account settings
anonymous | true, false | Account / phone settings

Possible targets for the dial command:

Target | Description
--------- | -----------
Number | Send call to an external number (has to be in [E.164](http://en.wikipedia.org/wiki/E.164) format)
Voicemail | Send call to [voicemail](https://www.simquadrat.de/feature-store/voicemail) (feature has to be booked)


**Example 1: Redirect call**
```xml
<?xml version="1.0" encoding="UTF-8"?>
Expand All @@ -76,6 +84,27 @@ Voicemail | Send call to [voicemail](https://www.simquadrat.de/feature-store/voi
</Response>
```

**Example 3: Suppress phone number**
```xml
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Dial anonymous="true">
<Number>4915799912345</Number>
</Dial>
</Response>
```

**Example 4: Set custom caller id for outgoing call**
```xml
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Dial callerId="492111234567">
<!-- Originally dialed number, extracted from POST request -->
<Number>4915799912345</Number>
</Dial>
</Response>
```

Play
----

Expand Down

0 comments on commit f5d06c6

Please sign in to comment.