<div dir="ltr"><div style><br></div><div class="gmail_extra"><div class="gmail_quote">On Tue, Jul 2, 2013 at 11:03 AM, Amit Patkar | ATPL <span dir="ltr"><<a href="mailto:amit@avhan.com" target="_blank">amit@avhan.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div><font face="Calibri">Hi Matt,<br>
<br>
As required, please find DEBUG trace for datetime function. I
have used this function in Dialplan to capture DEBUG trace. I
hope, this can help us in resolving the issue.<br>
<br>
[Jul 2 15:54:44] DEBUG[2698] chan_sip.c: Checking device state
for peer 1001<br>
[Jul 2 15:54:44] DEBUG[2698] devicestate.c: Changing state for
SIP/1001 - state 2 (In use)<br>
[Jul 2 15:54:44] DEBUG[2698] devicestate.c: device 'SIP/1001'
state '2'<br>
[Jul 2 15:54:44] DEBUG[2737] pbx.c: Launching 'Answer'<br>
[Jul 2 15:54:44] VERBOSE[2737] pbx.c: -- Executing
[6666@avhan:1] Answer("SIP/1001-00000000", "") in new stack<br>
[Jul 2 15:54:44] DEBUG[2698] devicestate.c: No provider found,
checking channel drivers for SIP - 1001<br>
[Jul 2 15:54:44] DEBUG[2698] chan_sip.c: Checking device state
for peer 1001<br>
[Jul 2 15:54:44] DEBUG[2698] devicestate.c: Changing state for
SIP/1001 - state 2 (In use)<br>
[Jul 2 15:54:44] DEBUG[2698] devicestate.c: device 'SIP/1001'
state '2'<br>
[Jul 2 15:54:44] DEBUG[2737] chan_sip.c: SIP answering channel:
SIP/1001-00000000<br>
[Jul 2 15:54:44] DEBUG[2737] res_rtp_asterisk.c: Setting the
marker bit due to a source update<br>
[Jul 2 15:54:44] DEBUG[2737] chan_sip.c: Setting framing from
config on incoming call<br>
[Jul 2 15:54:44] DEBUG[2737] chan_sip.c: ** Our capability: 0x4
(ulaw) Video flag: True Text flag: True<br>
[Jul 2 15:54:44] DEBUG[2737] chan_sip.c: ** Our prefcodec: 0x0
(nothing) <br>
[Jul 2 15:54:44] DEBUG[2737] chan_sip.c: -- Done with adding
codecs to SDP<br>
[Jul 2 15:54:44] DEBUG[2737] chan_sip.c: Done building SDP.
Settling with this capability: 0x4 (ulaw)<br>
[Jul 2 15:54:44] DEBUG[2737] chan_sip.c: Trying to put 'SIP/2.0
200' onto UDP socket destined for <a href="http://192.168.2.18:7490" target="_blank">192.168.2.18:7490</a><br>
[Jul 2 15:54:44] DEBUG[2734] app_queue.c: Device 'SIP/1001'
changed to state '2' (In use) but we don't care because they're
not a member of any queue.<br>
[Jul 2 15:54:44] DEBUG[2734] app_queue.c: Device 'SIP/1001'
changed to state '2' (In use) but we don't care because they're
not a member of any queue.<br>
[Jul 2 15:54:44] DEBUG[2734] app_queue.c: Device 'SIP/1001'
changed to state '2' (In use) but we don't care because they're
not a member of any queue.<br>
[Jul 2 15:54:44] DEBUG[2722] chan_sip.c: = Looking for Call
ID: YjNlMjU5YTJlMmQ5Njc3YjQ1MDgyMDg3ZjI1ZDViMmY. (Checking From)
--From tag 226b515a --To-tag as6e727cd7 <br>
[Jul 2 15:54:44] DEBUG[2722] chan_sip.c: **** Received ACK (6)
- Command in SIP ACK<br>
[Jul 2 15:54:44] DEBUG[2722] chan_sip.c: Stopping
retransmission on 'YjNlMjU5YTJlMmQ5Njc3YjQ1MDgyMDg3ZjI1ZDViMmY.'
of Response 2: Match Found<br>
[Jul 2 15:54:44] DEBUG[2737] pbx.c: Launching 'DateTime'<br>
[Jul 2 15:54:44] VERBOSE[2737] pbx.c: -- Executing
[6666@avhan:2] DateTime("SIP/1001-00000000", "1365120000,,YBd")
in new stack<br>
[Jul 2 15:54:44] DEBUG[2737] app_playback.c: string
<datetime:YBd:201304050530.00-5- 94> depth <0><br>
[Jul 2 15:54:44] DEBUG[2737] app_playback.c: try
<datetime:YBd:201304050530.00-5- 94> in <en><br>
[Jul 2 15:54:44] DEBUG[2737] pbx.c: Launching 'Hangup'<br>
[Jul 2 15:54:44] VERBOSE[2737] pbx.c: -- Executing
[6666@avhan:3] Hangup("SIP/1001-00000000", "") in new stack<br>
[Jul 2 15:54:44] DEBUG[2737] pbx.c: Spawn extension
(avhan,6666,3) exited non-zero on 'SIP/1001-00000000'<br>
[Jul 2 15:54:44] VERBOSE[2737] pbx.c: == Spawn extension
(avhan, 6666, 3) exited non-zero on 'SIP/1001-00000000'<br>
[Jul 2 15:54:44] DEBUG[2737] channel.c: Soft-Hanging up channel
'SIP/1001-00000000'<br>
[Jul 2 15:54:44] DEBUG[2737] channel.c: Hanging up channel
'SIP/1001-00000000'<br>
[Jul 2 15:54:44] DEBUG[2737] chan_sip.c: Hangup call
SIP/1001-00000000, SIP callid
YjNlMjU5YTJlMmQ5Njc3YjQ1MDgyMDg3ZjI1ZDViMmY.<br>
[Jul 2 15:54:44] DEBUG[2737] chan_sip.c: Updating call counter
for incoming call<br>
[Jul 2 15:54:44] DEBUG[2698] devicestate.c: No provider found,
checking channel drivers for SIP - 1001<br>
[Jul 2 15:54:44] DEBUG[2698] chan_sip.c: Checking device state
for peer 1001<br>
[Jul 2 15:54:44] DEBUG[2698] devicestate.c: Changing state for
SIP/1001 - state 1 (Not in use)<br>
[Jul 2 15:54:44] DEBUG[2698] devicestate.c: device 'SIP/1001'
state '1'<br>
[Jul 2 15:54:44] DEBUG[2737] res_rtp_asterisk.c: Setting RTCP
address on RTP instance '0x98ac7f0'<br>
[Jul 2 15:54:44] DEBUG[2737] netsock2.c: Splitting
'<a href="http://192.168.2.18:7490" target="_blank">192.168.2.18:7490</a>' into...<br>
[Jul 2 15:54:44] DEBUG[2737] netsock2.c: ...host '192.168.2.18'
and port '7490'.<br>
[Jul 2 15:54:44] DEBUG[2737] chan_sip.c: Trying to put 'BYE
<a>sip:100</a>' onto UDP socket destined for <a href="http://192.168.2.18:7490" target="_blank">192.168.2.18:7490</a><br>
<br>
</font><div class="im"><br></div></div></div></blockquote><div><br></div><div><span style="font-family:Calibri;font-size:13px">So, these statements show that it is actually using the config file to try to say the datetime:</span><br>
</div><div><span style="font-size:13px;font-family:Calibri"><div><br></div>[Jul 2 15:54:44] VERBOSE[2737] pbx.c: -- Executing [6666@avhan:2] DateTime("SIP/1001-00000000", "1365120000,,YBd") in new stack</span><br style="font-size:13px;font-family:Calibri">
<span style="font-size:13px;font-family:Calibri">[Jul 2 15:54:44] DEBUG[2737] app_playback.c: string <datetime:YBd:201304050530.00-</span><span style="font-size:13px;font-family:Calibri">5- 94> depth <0></span><br style="font-size:13px;font-family:Calibri">
<span style="font-size:13px;font-family:Calibri">[Jul 2 15:54:44] DEBUG[2737] app_playback.c: try <datetime:YBd:201304050530.00-</span><span style="font-size:13px;font-family:Calibri">5- 94> in <en></span><br>
<div><span style="font-family:Calibri;font-size:13px"><br></span></div><div><span style="font-family:Calibri;font-size:13px">The DEBUG statements in app_playback indicate the following:</span></div></div><div style><span style="font-family:Calibri;font-size:13px"> * It will use the configuration in the [en] context (no language was specified, so it defaults to en)</span></div>
<div style><span style="font-family:Calibri;font-size:13px"> * It will use the configuration in the datetime extension</span></div><div style><span style="font-family:Calibri;font-size:13px"> * It will attempt a match in the datetime extension on datetime:YBd</span></div>
<div style><span style="font-family:Calibri;font-size:13px"> * It will attempt to say </span><span style="font-size:13px;font-family:Calibri">201304050530.00-</span><span style="font-size:13px;font-family:Calibri">5- 94 based on whatever extension pattern matches datetime:YBd</span></div>
<div style><span style="font-size:13px;font-family:Calibri"><br></span></div><div style><span style="font-size:13px;font-family:Calibri">Looking at your say.conf config file, you don't have an extension that matches "datetime". You have one that matches "date" and "time", but not the combination of the two.</span></div>
<div style><span style="font-size:13px;font-family:Calibri"><br></span></div><div style><font face="Calibri">Matt</font> <br></div></div><div><br></div>-- <br><div dir="ltr"><div>Matthew Jordan<br></div><div>Digium, Inc. | Engineering Manager</div>
<div>445 Jan Davis Drive NW - Huntsville, AL 35806 - USA</div><div>Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a></div>
</div>
</div></div>