[asterisk-users] DIALSTATUS Values

Kamlesh Kumar kamlesh_kmr at hotmail.com
Fri Dec 2 05:34:19 CST 2011


Here it is:
 
<SIP/10036-000000a8>AGI Tx >> agi_request: isdcall.php
<SIP/10036-000000a8>AGI Tx >> agi_channel: SIP/10036-000000a8
<SIP/10036-000000a8>AGI Tx >> agi_language: en
<SIP/10036-000000a8>AGI Tx >> agi_type: SIP
<SIP/10036-000000a8>AGI Tx >> agi_uniqueid: 1322853473.198
<SIP/10036-000000a8>AGI Tx >> agi_version: 1.6.2.7
<SIP/10036-000000a8>AGI Tx >> agi_callerid: 10036
<SIP/10036-000000a8>AGI Tx >> agi_calleridname: 10036
<SIP/10036-000000a8>AGI Tx >> agi_callingpres: 0
<SIP/10036-000000a8>AGI Tx >> agi_callingani2: 0
<SIP/10036-000000a8>AGI Tx >> agi_callington: 0
<SIP/10036-000000a8>AGI Tx >> agi_callingtns: 0
<SIP/10036-000000a8>AGI Tx >> agi_dnid: 0012127773456
<SIP/10036-000000a8>AGI Tx >> agi_rdnis: unknown
<SIP/10036-000000a8>AGI Tx >> agi_context: privoip
<SIP/10036-000000a8>AGI Tx >> agi_extension: 0012127773456
<SIP/10036-000000a8>AGI Tx >> agi_priority: 3
<SIP/10036-000000a8>AGI Tx >> agi_enhanced: 0.0
<SIP/10036-000000a8>AGI Tx >> agi_accountcode: 10036
<SIP/10036-000000a8>AGI Tx >> agi_threadid: -1220478064
<SIP/10036-000000a8>AGI Rx << VERBOSE "10036" 1
<SIP/10036-000000a8>AGI Tx >> 200 result=1
<SIP/10036-000000a8>AGI Rx << VERBOSE "0012127773456" 1
<SIP/10036-000000a8>AGI Tx >> 200 result=1
<SIP/10036-000000a8>AGI Rx << VERBOSE "10036" 1
<SIP/10036-000000a8>AGI Tx >> 200 result=1
<SIP/10036-000000a8>AGI Rx << VERBOSE "Dialling........" 1
<SIP/10036-000000a8>AGI Tx >> 200 result=1
<SIP/10036-000000a8>AGI Tx >> 200 result=1
<SIP/10036-000000a8>AGI Rx << EXEC Dial SIP/202.89.78.21/12127773456
<SIP/10036-000000a8>AGI Tx >> 200 result=-1
<SIP/10036-000000a8>AGI Rx << GET VARIABLE DIALSTATUS
<SIP/10036-000000a8>AGI Tx >> 200 result=1 (ANSWER)
<SIP/10036-000000a8>AGI Rx << VERBOSE "Status" 1
<SIP/10036-000000a8>AGI Tx >> 200 result=1
 
Regards,
Kamlesh
 
 



Date: Fri, 2 Dec 2011 16:26:50 +0500
From: govoiper at gmail.com
To: asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] DIALSTATUS Values

Can you also paste the Asterisk Console logs around the part where AGI is dialing and after the dialing part ! make sure AGi debug is enabled as well.



On Fri, Dec 2, 2011 at 4:24 PM, Kamlesh Kumar <kamlesh_kmr at hotmail.com> wrote:



Hello,
 
in /etc/extension.conf
 
[privoip]
exten => _00X.,n,AGI(isdcall.php)

Regards,
Kamlesh
 



Date: Fri, 2 Dec 2011 16:16:27 +0500
From: govoiper at gmail.com
To: asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] DIALSTATUS Values



Hi, 
How are you calling this AGI in your dialplan !!? 


Regards,
Sammy.


On Fri, Dec 2, 2011 at 3:18 PM, Kamlesh Kumar <kamlesh_kmr at hotmail.com> wrote:



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
 
 



--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111202/cdfb68ca/attachment-0001.htm>


More information about the asterisk-users mailing list