[asterisk-users] SayUnixTime quandry

Danny Nicholas danny at debsinc.com
Tue Aug 14 14:26:57 CDT 2012


Hi Gang,

                 Hopefully somebody out there has a "doh" for this one.  My
dialplan announces the date and time using SayUnixTime.  When I run this:

exten => 36225,1,Set(ABA=999999999)

exten => 36225,n,Background(telbank/${ABA}/${CHANNEL(language)}/thetimeis)

exten => 36225,n,sayunixtime(,,Abe 'digits/at' IMP)

 

I get this CLI output

    -- Executing [36225 at default:1] Set("SIP/sipuser-00000001",
"ABA=999999999") in new stack

    -- Executing [36225 at default:2] BackGround("SIP/sipuser-00000001",
"telbank/999999999/en/thetimeis") in new stack

    -- <SIP/sipuser-00000001> Playing
'telbank/999999999/en/thetimeis.slin44' (language 'en')

[Aug 14 14:22:45] NOTICE[8690]: channel.c:4202 __ast_read: Dropping
incompatible
voice frame on SIP/sipuser-00000001 of format gsm since our native format
has c
hanged to (ulaw)

    -- Executing [36225 at default:3] SayUnixTime("SIP/sipuser-00000001",
",,Abe 'digits/at' IMP") in new stack

    -- <SIP/sipuser-00000001> Playing 'digits/day-2.slin44' (language 'en')

    -- <SIP/sipuser-00000001> Playing 'digits/mon-7.slin44' (language 'en')

    -- <SIP/sipuser-00000001> Playing 'digits/h-14.slin44' (language 'en')

    -- <SIP/sipuser-00000001> Playing 'digits/at.slin44' (language 'en')

    -- <SIP/sipuser-00000001> Playing 'digits/2.slin44' (language 'en')

    -- <SIP/sipuser-00000001> Playing 'digits/20.slin44' (language 'en')

    -- <SIP/sipuser-00000001> Playing 'digits/2.slin44' (language 'en')

   -- <SIP/sipuser-00000001> Playing 'digits/p-m.slin44' (language 'en')

 

Great, but it messes with my CDR reading program because of the two leading
commas.  When I take out the commas, I get this :

exten => 36225,1,Set(ABA=999999999)

exten => 36225,n,Background(telbank/${ABA}/${CHANNEL(language)}/thetimeis)

exten => 36225,n,sayunixtime(,,Abe 'digits/at' IMP)

   -- Executing [36225 at default:1] Set("SIP/sipuser-00000002",
"ABA=112202123") in new stack

    -- Executing [36225 at default:2] BackGround("SIP/sipuser-00000002",
"telbank/112202123/en/thetimeis") in new stack

    -- <SIP/sipuser-00000002> Playing
'telbank/112202123/en/thetimeis.slin44' (language 'en')

[Aug 14 14:26:13] NOTICE[8751]: channel.c:4202 __ast_read: Dropping
incompatible voice frame on SIP/sipuser-00000002 of format gsm since our
native format has changed to (ulaw)

    -- Executing [36225 at default:3] SayUnixTime("SIP/sipuser-00000002", "Abe
'digits/at' IMP") in new stack

    -- <SIP/sipuser-00000002> Playing 'digits/day-2.slin44' (language 'en')

    -- <SIP/sipuser-00000002> Playing 'digits/mon-7.slin44' (language 'en')

    -- <SIP/sipuser-00000002> Playing 'digits/h-14.slin44' (language 'en')

    -- <SIP/sipuser-00000002> Playing 'digits/2.slin44' (language 'en')

    -- <SIP/sipuser-00000002> Playing 'digits/thousand.slin44' (language
'en')

    -- <SIP/sipuser-00000002> Playing 'digits/12.slin44' (language 'en')

    -- <SIP/sipuser-00000002> Playing 'digits/at.slin44' (language 'en')

    -- <SIP/sipuser-00000002> Playing 'digits/2.slin44' (language 'en')

    -- <SIP/sipuser-00000002> Playing 'digits/20.slin44' (language 'en')

    -- <SIP/sipuser-00000002> Playing 'digits/6.slin44' (language 'en')

    -- <SIP/sipuser-00000002> Playing 'digits/p-m.slin44' (language 'en')

 

Any suggestions?

Thanks

Danny Nicholas

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


More information about the asterisk-users mailing list