Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] ${ANSWEREDTIME} returning null


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
anuragrana31189 at gma...
Guest





PostPosted: Wed Sep 17, 2014 6:35 am    Post subject: [asterisk-users] ${ANSWEREDTIME} returning null Reply with quote

Hi,


I am initiating a call using call files. In 'h' extension I am trying to collect the value of ANSWEREDTIME variable but it is returning null.


While It works fine when call is not generated using call files instead is generated from softphone.

any idea what might be wrong?



thanks
Anurag Rana
http://newbie42.blogspot.in/
Back to top
anuragrana31189 at gma...
Guest





PostPosted: Wed Sep 17, 2014 6:43 am    Post subject: [asterisk-users] ${ANSWEREDTIME} returning null Reply with quote

Call file syntax:


Channel: SIP/1111

MaxRetries: 2

Context: demo1

Extension: s

Priority: 1

WaitTime: 30

RetryTime:
60


in dialplan:
exten=>h,n,NoOp(${DIALLEDPEERNUMBER)

variable ${DIALLEDPEERNUMBER} is returning null.


Suggestions please?



Thanks

Anurag Rana
http://newbie42.blogspot.in/
Back to top
asterisk_list at earth...
Guest





PostPosted: Wed Sep 17, 2014 6:50 am    Post subject: [asterisk-users] ${ANSWEREDTIME} returning null Reply with quote

On Wednesday 17 Sep 2014, Anurag Rana wrote:
Quote:
in dialplan:
exten=>h,n,NoOp(${DIALLEDPEERNUMBER)

variable ${DIALLEDPEERNUMBER} is returning null.

Suggestions please?

Thanks

Anurag Rana
http://newbie42.blogspot.in/

Asterisk has it mis-spelled as "DIALEDPEERNUMBER" (sic).
Try
exten => h,n,NoOp(${DIALEDPEERNUMBER})
instead.

--
AJS

Note: Originating address only accepts e-mail from list! If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .

--
_____________________________________________________________________
-- 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
Back to top
anuragrana31189 at gma...
Guest





PostPosted: Wed Sep 17, 2014 6:53 am    Post subject: [asterisk-users] ${ANSWEREDTIME} returning null Reply with quote

Oh, Sorry My mistake, I misspelled it in mail.

It is already ${DIALEDPEERNUMBER}, still returning null.

Anurag Rana
http://newbie42.blogspot.in/
Back to top
asterisk_list at earth...
Guest





PostPosted: Wed Sep 17, 2014 7:09 am    Post subject: [asterisk-users] ${ANSWEREDTIME} returning null Reply with quote

On Wednesday 17 Sep 2014, Anurag Rana wrote:
Quote:
Oh, Sorry My mistake, I misspelled it in mail.
It is already ${DIALEDPEERNUMBER}, still returning null.

Anurag Rana
http://newbie42.blogspot.in/

Hmm. I've looked a bit further. According to the documentation,
${DIALEDPEERNUMBER} is set by a Dial() command. If you are using a call file
to generate the call, then there will not be an explicit Dial() command and
the variable will not get assigned.

Could you set a variable in the call file instead? Use a line like
Set: varname=value
in the call file. Then, later in the dialplan, you can retrieve ${varname} .
If the call was -not- made by a call file, then that variable won't be set; in
which case, you can pick up on ${DIALEDPEERNUMBER} instead.


--
AJS

Note: Originating address only accepts e-mail from list! If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .

--
_____________________________________________________________________
-- 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
Back to top
anuragrana31189 at gma...
Guest





PostPosted: Wed Sep 17, 2014 10:11 am    Post subject: [asterisk-users] ${ANSWEREDTIME} returning null Reply with quote

Thanks, That worked. Smile

Anurag Rana
http://newbie42.blogspot.in/
Back to top
asterisk_list at earth...
Guest





PostPosted: Wed Sep 17, 2014 10:24 am    Post subject: [asterisk-users] ${ANSWEREDTIME} returning null Reply with quote

On Wednesday 17 Sep 2014, Anurag Rana wrote:
Quote:
Thanks, That worked. Smile

Anurag Rana
http://newbie42.blogspot.in/

Good; it's always nice to hear that someone has got something working!


--
AJS

Note: Originating address only accepts e-mail from list! If replying off-
list, change address to asterisk1list at earthshod dot co dot uk .

--
_____________________________________________________________________
-- 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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services