[Asterisk-Users] how to tell what ${DIALSTATUS} is being set

Randy Bush randy at psg.com
Sat Apr 2 11:44:46 MST 2005


i often have nufone problems, e.g.

    -- Executing Dial("SIP/konaa0p-4b88", "IAX2/myname at NuFone/14086661234") in new stack
    -- Called myname at NuFone/14086661234
    -- Call accepted by 66.225.202.72 (format ulaw)
    -- Format for call is ulaw
    -- Hungup 'IAX2/NuFone/5'

<sound of surf (on a boogie board kind of day) for a fairly long while>

  == No one is available to answer at this time
    -- Executing Hangup("SIP/konaa0p-4b88", "") in new stack
  == Spawn extension (dial-gateways, 14086661234, 5) exited non-zero on 'SIP/konaa0p-4b88'
    -- Executing Hangup("SIP/konaa0p-4b88", "") in new stack
  == Spawn extension (dial-gateways, h, 1) exited non-zero on 'SIP/konaa0p-4b88'

i would like to detect this (and many other things) in ${DIALSTATUS}
conditions so that i can then GotoIf() them.  the problem is that the
log does not tell me explicitly which ${DIALSTATUS} has been returned,
leaving me guessing.  with BUSY vs CONGESTION this is even more of an
issue.

is it reasonable to ask that the log contain the value being set in
${DIALSTATUS}?

randy




More information about the asterisk-users mailing list