Calls not been picked up

Discussion in 'General' started by ericng, May 13, 2009.

  1. ericng

    Joined:
    May 14, 2008
    Messages:
    78
    Likes Received:
    0
    I need some expert advice on my dialplan below (in extensions_custom.conf)for routing the DID calls as there are cases where the calls were not been picked up:

    [dnid-custom]
    exten => _X.,1,Set(DID=${EXTEN})
    exten => _X.,2,Set(CALLERID(name) CALLERID(num)=8${CALLERID(dnid)})
    exten => _X.,n,Goto(s,1)
    exten => s,1,NoOp(Entering from-zaptel with DID == ${DID})
    ; Some trunks _require_ a RINGING be sent before an Answer.
    exten => s,n,SetGlobalVar(ADM=8${CALLERID(dnid)})
    ;exten => s,n,NoOp(${ADM})
    exten => s,n,Ringing()
    ; If ($did == "") { $did = "s"; }
    exten => s,n,Set(DID=${IF($["${DID}"= ""]?s:${DID})})
    exten => s,n,NoOp(DID is now ${DID})
    exten => s,n,GotoIf($["${CHANNEL:0:3}"="Zap"]?zapok:notzap)
    exten => s,n(notzap),Goto(from-pstn,${DID},1)
    ; If there's no ext-did,s,1, that means there's not a no did/no cid route. Hangup.
    exten => s,n,Macro(hangup)
    exten => s,n(zapok),NoOp(Is a Zaptel Channel)
    exten => s,n,Set(CHAN=${CHANNEL:4})
    exten => s,n,Set(CHAN=${CUT(CHAN,-,1)})
    exten => s,n,Macro(from-zaptel-${CHAN},${DID},1)
    ; If nothing there, then treat it as a DID
    exten => s,n,NoOp(Returned from Macro from-zaptel-${CHAN})
    exten => s,n,Goto(from-pstn,${DID},1)
    exten => fax,1,Goto(ext-fax,in_fax,1)

    All my inbound routes are set to route to a queue 700 and by right I should see the calls been sent to destination (dst) 700 in freepbx call detail reports. I see there were some calls been to sent s and when this happen, the call just ring but not sending to the queue group 700.

    Hope someone can shed some lights to assist me.


    Thanks


    Eric
     
  2. jgutierrez

    Joined:
    Feb 28, 2008
    Messages:
    5,737
    Likes Received:
    0
    I'm a little confused... I f you want to set all inbound calls to a queue, just configure an inbound route for any did/ any cid, and set it to your queue..
     
  3. ericng

    Joined:
    May 14, 2008
    Messages:
    78
    Likes Received:
    0
    I did set all inbound calls to a queue for any did or any cid but somehow rather there still some calls not been forwarded to the queue. It was not always happen but some times.
     
  4. jgutierrez

    Joined:
    Feb 28, 2008
    Messages:
    5,737
    Likes Received:
    0
    Hmmm... If you have set all incoming routes into a queue, they should go there... Have you worte down any custom context that could redirect calls into another destination? Do you have any time conditions?

    What trunks do you have? Analog, sip, iax2 ? What are the context that you use from them to receive calls?

    You said that some times the calls go into another destination, that other destination is the same??? Or it changes evrytime?

    Are you sure that you haven't set a followme into any of the extensions on the queue? Are you sure that the failover is not causing calls to go into another destination?
     
  5. ericng

    Joined:
    May 14, 2008
    Messages:
    78
    Likes Received:
    0
    Reason why I am setting up a custom context in extensions_custom.conf is I need to set up few variables such ADM and to forward DNID into sip phone's display. I was just copied a config from a ZAPTEL system and not sure which parts to be amended since Elastix now uses DADHI now.

    I do not have any time condition or followme setting. All that I have set are all inbound routes is set to a queue. BTW, I am using digital E1 channel.

    The problem I faced now is some incoming calls were first landed into extension s and not going to the specified queue group. When this happen. call will just ringing and no pick up.

    Hope some experts can be of assistance.


    Thanks


    Eric
     
  6. jgutierrez

    Joined:
    Feb 28, 2008
    Messages:
    5,737
    Likes Received:
    0
    I would do the following:

    1. Set all the inbound calls to use my context, lets say: [elastix-inbound]
    2. Set all the variables that I need:
    [elastix-inbound]
    exten => _X.,1,Answer
    exten => _X.,n,......
    .....................
    include => from-pstn

    This way, I will set the variables that I need on my context, and when it finish, the call will be sent to the from-pstn context, and it will do what I have set on the inbound route web interface
     
  7. ericng

    Joined:
    May 14, 2008
    Messages:
    78
    Likes Received:
    0
    I have done the following in my extensions_custom.conf

    [dnid-custom]
    exten => _X.,1,Set(DID=${EXTEN})
    exten => _X.,2,Set(CALLERID(name) CALLERID(num)=8${CALLERID(dnid)})
    ;exten => _X.,n,Goto(s,1)
    exten => _X.,3,SetGlobalVar(ADM=8${CALLERID(dnid)})
    include => from-pstn

    and my dahdi-channels.conf is

    group=0,12
    context=dnid-custom
    switchtype = euroisdn
    signalling = pri_cpe
    channel => 32-46,48-62
    context = default
    group = 63


    But at times, I still have incoming calls not been send to a queue (I configured all incoming calls routed to a queue, then distributed to the free extension)and the call just ring forever. I checked in freepbx web CDR report, these calls were end up in extension s:

    462. 2009-05-23 01:42:49 DAHDI/48-1... 0172298027 "80933" <0172298027> 700 ANSWERED 01:22
    463. 2009-05-23 01:18:18 DAHDI/59-1... 0173253956 "80973" <0173253956> 700 ANSWERED 00:10
    464. 2009-05-23 01:18:18 Local/614@... 0173253956 "80973" <0173253956> 614 ANSWERED 00:10
    465. 2009-05-23 01:06:09 DAHDI/60-1... 095163202 "80933" <095163202> 700 ANSWERED 01:50
    466. 2009-05-23 01:06:09 Local/614@... 095163202 "80933" <095163202> 614 ANSWERED 01:50
    467. 2009-05-23 01:05:42 Local/611@... 0327133345 "81023" <0327133345> 611 NO ANSWER 00:14
    468. 2009-05-23 01:05:25 Local/614@... 0327133345 "81023" <0327133345> 614 NO ANSWER 00:16
    469. 2009-05-23 01:05:25 DAHDI/55-1... 0327133345 "81023" <0327133345> s ANSWERED 00:35
    470. 2009-05-23 01:02:27 Local/611@... 0320709951 "81023" <0320709951> 611 NO ANSWER 00:10
    471. 2009-05-23 01:02:11 Local/614@... 0320709951 "81023" <0320709951> 614 NO ANSWER 00:15

    The problem happen on and off, therefore need someone to shed some light in getting this issue resolved.


    Thanks
     
  8. jgutierrez

    Joined:
    Feb 28, 2008
    Messages:
    5,737
    Likes Received:
    0
    Oh ok, there are some cases where the CID can't be retrieved...

    That is the case when you receive the s that you are talking about, in that case add it into your context

    Code:
    exten => _X.,1,Set(DID=${EXTEN})
    exten => _X.,2,Set(CALLERID(name) CALLERID(num)=8${CALLERID(dnid)})
    exten => _X.,3,SetGlobalVar(ADM=8${CALLERID(dnid)})
    exten => s,1,Set(DID=1111)
    exten => s,2,Set(CALLERID(name) CALLERID(num)=8${CALLERID(dnid)})
    exten => s,3,SetGlobalVar(ADM=8${CALLERID(dnid)})
    include => from-pstn
    
     

Share This Page