twilio - Twillio sendDigits for CallerID (outbound calls) -


after searching find twiml noun 'senddigits' sends digits destination number following:

<dial record="true" callerid="415-123-1111">       <number senddigits="wwww1928">         415-123-4567       </number> </dial> 

what need send digits 'callerid' (we need use callerid's in extension system locally). find nothing in twiml references this.

can please tell me work around send digits 'callerid'.

thank

twilio employee here. think understand you're trying do: want connect person (phone number + extension) person b (phone number + extension). correct?

if so, you're half way there, you've coded 2nd half of call (to person b). need use rest api initiate call person a. api call takes 3 parameters:

  • to - phone number person a
  • from - caller id want person see when phone rings (usually twilio #)
  • url - url twiml

the twiml send twilio should this:

<play digits="12345"/> <!-- @ point you've connected person --> <dial record="true" callerid="twilio number here">   <number senddigits="wwww1928">     415-123-4567   </number> </dial> <!-- @ point you've connected person b --> 

the key thing remember connecting call between 2 people 2-step process: first use rest api establish live call 1st person , use twiml , establish live call 2nd person. twilio bridges them together.

hope helps!


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -