Difference between CallTo/To and CallFrom/From in Twilio -
when make outgoing call using twilio api & twiml app twilio makes request server following params:
'accountsid' => '...', 'applicationsid' => '...', 'caller' => 'client:2', 'callstatus' => 'ringing', 'callfrom' => 'some_phone_number', 'called' => '', 'to' => '', 'callto' => 'some_phone_numeber', 'callsid' => '...', 'from' => 'client:2', 'direction' => 'inbound', 'apiversion' => '2010-04-01',
what's difference between callto (which equals actual phone number i'm calling to) , (which empty reason) ? same , callfrom. couldn't find info in docs callto/callfrom. plus, why empty?
update
some additional info. make call twilio number real russian phone number. hangup call. there no forwarding/redirecting. twiml app outgoing calls is:
<response> <dial callerid="{{ $callfrom }}" record="record-from-ringing" action="{{ $action }}"> <number>{{ $callto }}</number> </dial> </response>
callfrom , callto equals passed request. data mentioned above twilio passes request, , twilio gets twiml instructions.
what not understand if what's difference between to/from? from/to fields used when dealing client names, internal conversation or kind of...?
and question is: when call finished , action url called, twilio passes dialcallstatus , callstatus, what's difference there? need store call status know if client busy , didn't answer, dialcallstatus has different value callstatus.
thanks
Comments
Post a Comment