Transfer call from DAHDI

  1. 12 years ago

    Hello, please helpe to resolve problem.
    I have Asterisk 1.6 with FreePBX
    When i get call from DAHDI on some sip extension and whe i trying to transfer this call to another sip extension via FOP2 call just hang up :(
    please help me resolve this problem.
    Log below

    • - Called 401
    • - SIP/401-000081b7 is ringing
    • - SIP/401-000081b7 answered DAHDI/18-1

    == Spawn extension (from-internal, 442, 1) exited non-zero on 'DAHDI/18-1' in macro 'dial-one'
    == Spawn extension (from-internal, 442, 1) exited non-zero on 'DAHDI/18-1' in macro 'exten-vm'
    == Spawn extension (from-internal, 442, 1) exited non-zero on 'DAHDI/18-1'

    • - Executing [h@from-internal:1] Macro("DAHDI/18-1", "hangupcall") in new stack
    • - Executing [s@macro-hangupcall:1] GotoIf("DAHDI/18-1", "1?skiprg") in new stack
    • - Goto (macro-hangupcall,s,4)
    • - Executing [s@macro-hangupcall:4] GotoIf("DAHDI/18-1", "1?skipblkvm") in new stack
    • - Goto (macro-hangupcall,s,7)
    • - Executing [s@macro-hangupcall:7] GotoIf("DAHDI/18-1", "1?theend") in new stack
    • - Goto (macro-hangupcall,s,9)
    • - Executing [s@macro-hangupcall:9] Hangup("DAHDI/18-1", "") in new stack

    == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'DAHDI/18-1' in macro 'hangupcall'
    == Spawn extension (from-internal, h, 1) exited non-zero on 'DAHDI/18-1'
    -- Hungup 'DAHDI/18-1'

  2. admin

    1 Jun 2012 Administrator

    Asterisk logs will not help at all.

    Did you configure buttons by hand, or you use autoconfiguration for freepbx?

    If configured by hand, how does your buttons.cfg file looks like?

    Did you try transferring sip to sip ? Are you positive the problem is because of DAHDI? Or just a guess?

  3. Buttons configured by hands
    example below:
    [SIP/575]
    type=extension
    extension=575
    context=from-internal
    label=575
    mailbox=575@default
    extenvoicemail=*575@from-internal

    Sorry was wrong, i can't forward calls not just from DAHDI, actually i can't foward all incoming calls. If i dial any number forward works.

  4. admin

    5 Jun 2012 Administrator

    The most probable cause is that your dialplan does not use a context named "from-internal".

    The context setting must be the dialplan context where you can reach an extension, I do not know your dialplan so I cannot say, perhaps you use the "default" context for your extensions? Whatever you use, you must use that context in the button configuration file.

    Best regards,

or Sign Up to reply!