[Asterisk-Users] Call Rules

asterisk at mattmartin.co.uk asterisk at mattmartin.co.uk
Mon Jan 9 21:50:57 MST 2006


Hi,

I apologise if this is not the correct place to post such a message. I use
Asterisk at Home package and all seems to be going well.

I have identified one problem and have not managed to find anyway to
fix(modify) it.

We have a menu option that diverts to a mobile. If the mobile is off the
network sends back a message to that effect. Now, this mobile does not have
voicemail and asterisk is noting the passback as follows;

  == No one is available to answer at this time (1:0/0/0)
    -- Executing Goto("SIP/2211-c1c6", "s-NOANSWER|1") in new stack
    -- Goto (macro-dialout-trunk,s-NOANSWER,1)
    -- Executing NoOp("SIP/2211-c1c6", "Dial failed due to NOANSWER") in new
stack
    -- Executing Macro("SIP/2211-c1c6", "outisbusy") in new stack
    -- Executing Playback("SIP/2211-c1c6", "all-circuits-busy-now") in new
stack
    -- Playing 'all-circuits-busy-now' (language 'en')
    -- Executing Playback("SIP/2211-c1c6", "pls-try-call-later") in new
stack
    -- Playing 'pls-try-call-later' (language 'en')
    -- Executing Macro("SIP/2211-c1c6", "hangupcall") in new stack
    -- Executing ResetCDR("SIP/2211-c1c6", "w") in new stack
    -- Executing NoCDR("SIP/2211-c1c6", "") in new stack
    -- Executing Wait("SIP/2211-c1c6", "5") in new stack
    -- Executing Hangup("SIP/2211-c1c6", "") in new stack
  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on
'SIP/2211-c1c6' in macro 'hangupcall'
  == Spawn extension (macro-outisbusy, s, 3) exited non-zero on
'SIP/2211-c1c6' in macro 'outisbusy'
  == Spawn extension (from-internal, 07xxxxxxxxxx, 2) exited non-zero on
'SIP/2211-c1c6'
    -- Executing Macro("SIP/2211-c1c6", "hangupcall") in new stack
    -- Executing ResetCDR("SIP/2211-c1c6", "w") in new stack
    -- Executing NoCDR("SIP/2211-c1c6", "") in new stack
    -- Executing Wait("SIP/2211-c1c6", "5") in new stack
  == Spawn extension (macro-hangupcall, s, 3) exited non-zero on
'SIP/2211-c1c6' in macro 'hangupcall'
  == Spawn extension (from-internal, h, 1) exited non-zero on
'SIP/2211-c1c6'


Now, the person in the queue hears this message and the call is finished.

What I am trying to achive is this. The queue has a number of local agents,
landlines and mobiles. All mobiles are of the format 07xxxxxxxxxx.

I managed to achive partially what I wanted by playing with a default macro,
however, this had side affects elsewhere.

Ideally - I want any call outbound to a 07 mobile number to not give the
"circuits busy" message - but try again (stay within the queue rules) or
goto the queue failover destination.

Any help is appreciated.

Matt




More information about the asterisk-users mailing list