[Asterisk-Users] Dropping last digit when dialling from analogue phone.

Demian Dixon demian at coretech.co.nz
Tue Nov 2 17:52:20 MST 2004


Hey all,

I'm running Asterisk CVS-HEAD-09/01/04-11:36:41 (version from Voicetronix) with
a Voicetronix OpenSwitch 12 card.  I have a couple of analogue phones plugged
into the Voicetronix and a SIP phone for internal use.

The SIP phone and the internal analogue phones are in the same initial context.
I am trying to dial the number 1,021 4462821, if I do it from the SIP phone, no
problem at all.  If I do it from the analogue phone then it always cuts off the
last digit that I am dialling.. (1 for an outside line)

Any ideas why this isn't working?

here are the relevant dialplans..

[ Context 'internal' created by 'pbx_config' ]

  Include =>        'parkedcalls'                                 [pbx_config]
  Include =>        'trunklocal'                                  [pbx_config]
  Include =>        'telescum_msg'                                [pbx_config]
  Include =>        'nzcellphone'                                 [pbx_config]
  Include =>        'tollfree'                                    [pbx_config]
  Ignore pattern => '1'                                           [pbx_config]

[ Context 'nzcellphone' created by 'pbx_config' ]
  '_10NXXXXXXXX' => 1. Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})        [pbx_config]
                    2. Congestion()                               [pbx_config]

  Include =>        'shortcell'                                   [pbx_config]

[ Context 'shortcell' created by 'pbx_config' ]
  '_10NXXXXXXX' =>  1. Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})        [pbx_config]
                    2. Congestion()                               [pbx_config]


And here is the output when I dial using an analogue phone...

       > vpb/1-5: Event [9=>[04] Station OFF Hook]
       > vpb/1-5: handle_notowned: mode=1, event[9][[04] Station OFF Hook
]=[0]
       > vpb/1-5: handle_notowned: playing dialtone
       > [04]: Playing tone
       > vpb/1-5: handle_notowned: mode=1, [9=>0]
       > vpb/1-5: Event [8=>[04] DTMF digit (up): 1]
       > vpb/1-5: handle_notowned: mode=1, event[8][[04] DTMF digit (up): 1
]=[49]
       > vpb/1-5: handle_notowned: mode=1, [8=>49]
       > vpb/1-5: Event [102=>[04] Dial End]
       > vpb/1-5: handle_notowned: mode=1, event[102][[04] Dial End
]=[0]
       > vpb/1-5: handle_notowned: mode=1, [102=>0]
       > vpb/1-5: Event [8=>[04] DTMF digit (up): 0]
       > vpb/1-5: handle_notowned: mode=1, event[8][[04] DTMF digit (up): 0
]=[48]
       > vpb/1-5: handle_notowned: mode=1, [8=>48]
       > vpb/1-5: Event [8=>[04] DTMF digit (up): 2]
       > vpb/1-5: handle_notowned: mode=1, event[8][[04] DTMF digit (up): 2
]=[50]
       > vpb/1-5: handle_notowned: mode=1, [8=>50]
       > vpb/1-5: Event [8=>[04] DTMF digit (up): 1]
       > vpb/1-5: handle_notowned: mode=1, event[8][[04] DTMF digit (up): 1
]=[49]
       > vpb/1-5: handle_notowned: mode=1, [8=>49]
       > vpb/1-5: Event [8=>[04] DTMF digit (up): 4]
       > vpb/1-5: handle_notowned: mode=1, event[8][[04] DTMF digit (up): 4
]=[52]
       > vpb/1-5: handle_notowned: mode=1, [8=>52]
       > vpb/1-5: Event [8=>[04] DTMF digit (up): 4]
       > vpb/1-5: handle_notowned: mode=1, event[8][[04] DTMF digit (up): 4
]=[52]
       > vpb/1-5: handle_notowned: mode=1, [8=>52]
       > vpb/1-5: Event [8=>[04] DTMF digit (up): 6]
       > vpb/1-5: handle_notowned: mode=1, event[8][[04] DTMF digit (up): 6
]=[54]
       > vpb/1-5: handle_notowned: mode=1, [8=>54]
       > vpb/1-5: Event [8=>[04] DTMF digit (up): 2]
       > vpb/1-5: handle_notowned: mode=1, event[8][[04] DTMF digit (up): 2
]=[50]
       > vpb/1-5: handle_notowned: mode=1, [8=>50]
       > vpb/1-5: Event [8=>[04] DTMF digit (up): 8]
       > vpb/1-5: handle_notowned: mode=1, event[8][[04] DTMF digit (up): 8
]=[56]
       > vpb/1-5: handle_notowned: mode=1, [8=>56]
       > vpb/1-5: Event [8=>[04] DTMF digit (up): 2]
       > vpb/1-5: handle_notowned: mode=1, event[8][[04] DTMF digit (up): 2
]=[50]
vpb/1-5: New call for context [internal]
    -- Executing Dial("vpb/1-5", "vpb/g1/021446282") in new stack
vpb/1-12: New call for context [incoming4991109]
  ==  g1 requested, got: [vpb/1-12]
       > Restarting monitor
       > Trying to reawake monitor
       > Monitor restarted
       > vpb/1-12: starting call
  == vpb/1-12: Calling 021446282 on vpb/1-12
  == vpb/1-12: Dial parms for vpb/1-12 1/2000ms/4000ms/4000ms/120000ms
  == vpb/1-12: Dial parms for vpb/1-12 tone 7->0
  == vpb/1-12: Dial parms for vpb/1-12 tone 0->1
  == vpb/1-12: Dial parms for vpb/1-12 tone 4->2
  == vpb/1-12: Dial parms for vpb/1-12 tone 7->3
  == vpb/1-12: Dial parms for vpb/1-12 tone 3->4
       > vpb/1-5: handle_notowned: mode=1, [8=>50]
       > Monitor got null event
       > vpb/1-5: Event [8=>[04] DTMF digit (up): 1]
       > vpb/1-5: handle_owned: got event: [8=>49]
       > vpb/1-5: handle_owned: putting frame type[-1]subclass[0], bridge=(nil)
    -- vpb/1-12: VPB Calling 021446282 [t=120000] on vpb/1-12 returned 0
vpb/1-12: chanreads: starting thread
    -- Called g1/021446282
    -- vpb/1-12 is ringing
       > vpb/1-5: vpb_indicate [3] state[4]
       > vpb/1-12: Event [8=>[11] DTMF digit (up): 2]
       > vpb/1-12: handle_owned: got event: [8=>50]
       > vpb/1-12: handle_owned: putting frame type[-1]subclass[0], bridge=(nil)
       > vpb/1-12: Event [8=>[11] DTMF digit (up): 1]
       > vpb/1-12: handle_owned: got event: [8=>49]
       > vpb/1-12: handle_owned: putting frame type[-1]subclass[0], bridge=(nil)
       > vpb/1-12: Event [8=>[11] DTMF digit (up): 4]
       > vpb/1-12: handle_owned: got event: [8=>52]
       > vpb/1-12: handle_owned: putting frame type[-1]subclass[0], bridge=(nil)
       > vpb/1-12: Event [8=>[11] DTMF digit (up): 4]
       > vpb/1-12: handle_owned: got event: [8=>52]
       > vpb/1-12: handle_owned: putting frame type[-1]subclass[0], bridge=(nil)
       > vpb/1-12: Event [8=>[11] DTMF digit (up): 6]
       > vpb/1-12: handle_owned: got event: [8=>54]
       > vpb/1-12: handle_owned: putting frame type[-1]subclass[0], bridge=(nil)
       > vpb/1-12: Event [8=>[11] DTMF digit (up): 2]
       > vpb/1-12: handle_owned: got event: [8=>50]
       > vpb/1-12: handle_owned: putting frame type[-1]subclass[0], bridge=(nil)
       > vpb/1-12: Event [8=>[11] DTMF digit (up): 8]
       > vpb/1-12: handle_owned: got event: [8=>56]
       > vpb/1-12: handle_owned: putting frame type[-1]subclass[0], bridge=(nil)
       > vpb/1-12: Event [102=>[11] Dial End]
       > vpb/1-12: handle_owned: got event: [102=>0]
  == vpb/1-12: Dialend
       > vpb/1-12: handle_owned: putting frame type[4]subclass[4], bridge=(nil)
    -- vpb/1-12 answered vpb/1-5
       > vpb/1-5: vpb_indicate [-1] state[4]
       > vpb/1-5: Answering channel
  == vpb/1-5: Answered call from (null) on vpb/1-5 [FXS]
vpb/1-5: chanreads: starting thread
  == vpb/1-5:Now listening for DTMF
  == vpb/1-5: Starting record mode (codec=0)[AST_FORMAT_SLINEAR:VPB_LINEAR]
  == vpb/1-12:Now listening for DTMF
  == vpb/1-12: Starting record mode (codec=0)[AST_FORMAT_SLINEAR:VPB_LINEAR]
       > vpb/1-12: Event [8=>[11] DTMF digit (up): 2]
       > vpb/1-12: handle_owned: got event: [8=>50]
       > vpb/1-12: handle_owned: putting frame type[1]subclass[50], bridge=(nil)
    -- Attempting native bridge of vpb/1-5 and vpb/1-12
  == Bridging call entered with [vpb/1-5, vpb/1-12]
       > vpb/1-5: Event [12=>[04] Loop Drop]
       > vpb/1-5: handle_owned: got event: [12=>0]
       > vpb/1-5: handle_owned: putting frame type[4]subclass[0],
bridge=0x8125dec
  == Bridging call done with [vpb/1-5, vpb/1-12] => 0
    -- Attempting native bridge of vpb/1-5 and vpb/1-12
  == Bridging call entered with [vpb/1-5, vpb/1-12]
       > vpb/1-5: Event [10=>[04] Station ON Hook]
       > vpb/1-5: handle_owned: got event: [10=>0]
       > vpb/1-5: handle_owned: putting frame type[4]subclass[1],
bridge=0x8125dec
  == Bridging call done with [vpb/1-5, vpb/1-12] => 0
  == vpb/1-12: Hangup requested

-- 


Systems Consultant
Core Technology Ltd







More information about the asterisk-users mailing list