Reputation: 2272
We are running Asterisk as our call dispatcher, but we would like to add some more logic with the programmable APIs offered by Twilio.
We can currently forward the call from Asterisk to Twilio, but in some case, we need to forward again the call to some SIP phone. However, we want to avoid the extra cost of handling the call through Twilio since it could be pretty long and it would become expensive for us.
Is there any way to tell back to asterisk which SIP phone should it re-forward the call to?
|------|-----------|---------|
PRI------ | PBX |--8 lines--| |---------
| |-----------|Asterisk |--------- 50 SIP phone
|------| | |---------
|---------|
||
|| SIP
||
|---------|
| |
| Twilio | decides which SIP phone to forward the call
| |
|---------|
Upvotes: 0
Views: 183
Reputation: 15259
Correct solution for such case is sip redirect(301 code).
Unfortanly twilio API not support that, so no way.
Upvotes: 2