Text CID with analog trunks (SOLVED)

Discussion in 'General' started by lemuelgv, Jan 27, 2009.

  1. lemuelgv

    Joined:
    Sep 9, 2008
    Messages:
    73
    Likes Received:
    0
    Hello

    I have aelastix server conected to gsm gateway trougth fxo cards
    can I get the agenda Name when a inbound call is receive to send it to my sip users via CID?

    example in my agenda i have the contact

    Peter Perez phone number 999 888 1234

    when a incoming call from 999 888 1234 is detected the calleridname must be ="Peter Perez"

    how can i get this?

    thanks
     
  2. lemuelgv

    Joined:
    Sep 9, 2008
    Messages:
    73
    Likes Received:
    0
    Re:Text CID with analog trunks

    I solved this issue

    in extensions_additional.conf

    the context


    ext-did

    after

    Code:
    exten => s,1,Set(__FROM_DID=${EXTEN})
    I add the line

    Code:
    exten => s,n,LookupCIDName()
    previously i feed the asterisk database with CIDname using in CLI

    Code:
    database put cidname 9998881234 "Peter Perez"
    and it´s works,

    just one more cuestion for the elastix experts

    where i´ve add the funcion Lookupcidname for permanent change

    if I modify anything using elastix web interface I loss this changes
     
  3. Chilling_Silence

    Joined:
    Sep 23, 2008
    Messages:
    488
    Likes Received:
    0
    Re:Text CID with analog trunks

    extensions_additional.conf is "owned" by FreePBX.

    Try the _custom.conf file instead :)
     
  4. lemuelgv

    Joined:
    Sep 9, 2008
    Messages:
    73
    Likes Received:
    0
    Re:Text CID with analog trunks

    I tried adding context ext-did in extensions-custom file

    [ext-did]
    exten => fax,1,Goto(ext-fax,in_fax,1)
    exten => s,1,Set(__FROM_DID=${EXTEN})
    exten => s,n,LookupCIDName()
    exten => s,n,GotoIf($[ "${CALLERID(name)}" != "" ] ?cidok)
    exten => s,n,Set(CALLERID(name)=${CALLERID(num)})
    exten => s,n(cidok),Noop(CallerID is ${CALLERID(all)})
    exten => s,n,Goto(ivr-6,s,1)


    and doesn´t work

    this happens equal whe I create a [ext-did-custom]
     
  5. dicko

    Joined:
    Oct 24, 2008
    Messages:
    4,099
    Likes Received:
    0
    Re:Text CID with analog trunks

    Ah but what does

    dialplan show ext-did-custom

    show

    you can't have two contexts with the same name (ext-did) in different included files and expect it to work consistently.

    So I believe you will have to rebuild a parallel custom starting extension to replace from-internal (and change the context of the devices to so reflect these customization) that references your new ext-did-custom context to maintain full function of your Elastix box.
     
  6. lemuelgv

    Joined:
    Sep 9, 2008
    Messages:
    73
    Likes Received:
    0
    Re:Text CID with analog trunks

    dicko
    you right, thanks for your help

    I'm solved

    when I have two same contexts the extentions_aditional overwrite extentions_custom



    I create ext-did-custom and delete the inbound route for any DID/any CID in the elastix web page

    thanks again
     

Share This Page