Cannot make call from FOP2

I login as 101...then whenever i try to dial an extension using the dial button..(i choose destination extension then i click dial button)..but fop2 calling itself(ext 101)

I also cant transfer call to any extension...i try accepting a call and then choose the destination ext then click the transfer button but fop2 terminate all calls

Comments

  • One possible reason is insufficient permissions in /etc/asterisk/manager.conf,

    Try adding "all" both to read/write and reload asterisk, then try again. The actual permission required is "originate" for asterisk versions greater than 1.4, but in trixbox distros the manager permissions are broken so you should better use "all" if you want a fully functional fop2.

    Best regards,
  • thanks for reply,
    Im using bare back asterisk 1.6 installation and asterisk GUI 2.0.
    Ive done adding the 'all' permission but the problem still the same...still it dialling itself
  • Ok, I understand now.

    When you originate a call, your phone will ring first, once you pickup, it will ring the other leg. That is normal and expected behavior.

    If you pickup your phone and nothing happens, it is because the destination button has an incorrect or incomplete extension and context setting. Be sure buttons have the proper extension=xxx and context=yyy, you should be able to ring that extension by matching that xxx extension in the asterisk dialplan yyy context, if not, the call or transfer will fail.
  • so u mean in buttons.cfg :
    i need to configure extension=xxx and context=yyy

    while in extension.conf :
    i need to configure my dialplan to match extension=xxx and context=yyy
    but which one should i configure ?

    one more thing im not sure how to write the yyy
  • I do not know your dialplan, so I cannot tell you what to write. In the asterisk dialplan you have a context where you can reach your extensions via their extension numbers. In FreePBX you can reach them from the context "from-internal". In a vanilla asterisk install is up to you, I cannot tell you what your contexts are, suppose you have in extensions.conf something like
    [default]
    exten => 100,1,Dial(SIP/100)
    exten => 100,n,Hangup
    
    exten => 101,1,Dial(SIP/101)
    exten => 101,n,Hangup
    

    So you can reach extensions 100 and 101 from context "default". In that case, in your buttons.cfg file for fop2 you must use:
    [SIP/100]
    type=extension
    label=John
    extension=100
    context=default
    
    [SIP/101]
    type=extension
    label=Mary
    extension=101
    context=default
    
    

    If you omit or put an invalid extension@context for your buttons, you won't be able to transfer or originate calls...
  • how would i configure a simple SIP extension in a dialplan so that i can test it using soft phone and also fop2 ?
  • Hi Jimmy,

    I posted a fully working sample before, both extensions.conf for your simple dialplan in asterisk, and the buttons.cfg for fop2 that matches it.
Sign In or Register to comment.