[asterisk-users] DIALSTATUS Values

Kamlesh Kumar kamlesh_kmr at hotmail.com
Fri Dec 2 04:18:27 CST 2011


Hello,
 
I tried to search the answer of my problem but unable to get resolution so sending to you guys. I'm using asterisk 1.6.2.7 and writing the AGI scripts using PHP. I'm unable to retrieve the DIALSTATUS value, during execution of AGI script, I get empty value.
 
Extracts from AGI Script:
 
#!/usr/bin/php -q
#!/bin/bash
<?php
include_once ("phpagi-2.14/phpagi.php");
$agi = new AGI();

--------some codes for dial out------------
 
       $dialstatus=$agi->get_variable(DIALSTATUS);
       $dd=$dialstatus["data"];
       $agi->verbose("Status".$dd);
 
In AGI debug, I get: 
<SIP/10036-00000096>AGI Tx >> agi_channel: SIP/10036-00000096
<SIP/10036-00000096>AGI Tx >> agi_language: en
<SIP/10036-00000096>AGI Tx >> agi_type: SIP
<SIP/10036-00000096>AGI Tx >> agi_uniqueid: 1322848927.172
<SIP/10036-00000096>AGI Tx >> agi_version: 1.6.2.7
<SIP/10036-00000096>AGI Tx >> agi_callerid: 10036
<SIP/10036-00000096>AGI Tx >> agi_calleridname: 10036
<SIP/10036-00000096>AGI Tx >> agi_dnid: 0012127773456
<SIP/10036-00000096>AGI Tx >> agi_rdnis: unknown
<SIP/10036-00000096>AGI Tx >> agi_context: privoip
<SIP/10036-00000096>AGI Tx >> agi_extension: 0012127773456
<SIP/10036-00000096>AGI Rx << GET VARIABLE DIALSTATUS
<SIP/10036-00000096>AGI Tx >> 200 result=1 (ANSWER)
<SIP/10036-00000096>AGI Rx << VERBOSE "Status" 1
<SIP/10036-00000096>AGI Tx >> 200 result=1
 
Please help me in this.
 
Thanks,
Kamlesh
 
 

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111202/924c37c7/attachment.htm>


More information about the asterisk-users mailing list