problem with incoming calls

  • i have the below phone lines and are assigned to phones.
    phone lines.JPG


    when a call is coming from our sip trunk with our telephone provider the number that comes in is 22497700 and the system rejects the call see below asterisk log. Is there i asked our provider to send number as 497700 but they dont support it.
    If i entered the phone number as 22497700 in the line config (in the above screenshot) the phone works but then the outgoing number goes out as 2222497700.
    the 22 is the area code but is also
    what can i do in order to either skip the area code or manipulate the incoming line number


    -- Executing [22497700@Cyta2-incoming:1] Set("SIP/22311843_obproxy-00000012", "channelname=Cyta2-incoming") in new stack
    -- Executing [22497700@Cyta2-incoming:2] Set("SIP/22311843_obproxy-00000012", "lineconfigid=1002") in new stack
    -- Executing [22497700@Cyta2-incoming:3] Goto("SIP/22311843_obproxy-00000012", "Cyta2-incoming-manuell|22497700|1") in new stack
    -- Goto (Cyta2-incoming-manuell,22497700,1)
    -- Executing [22497700@Cyta2-incoming-manuell:1] Goto("SIP/22311843_obproxy-00000012", "incoming|22497700|1") in new stack
    -- Goto (incoming,22497700,1)
    -- Executing [22497700@incoming:1] Goto("SIP/22311843_obproxy-00000012", "calling|22497700|1") in new stack
    -- Goto (calling,22497700,1)
    -- Executing [22497700@calling:1] AGI("SIP/22311843_obproxy-00000012", "agi://localhost/initdial.agi") in new stack
    -- AGI Script Executing Application: (Set) Options: (__SFCLIDNUM=+35799693315)
    -- AGI Script Executing Application: (Set) Options: (__SFCLIDINTNUM=)
    -- AGI Script Executing Application: (Set) Options: (__SFCLIDNAME=)
    -- AGI Script Executing Application: (Set) Options: (__SFCALLERACCID=-1)
    -- AGI Script Executing Application: (noop) Options: (---[info]---Call from : (name) (num) +35799693315 (intern) )
    -- AGI Script Executing Application: (Set) Options: (CHANNEL(language)=en)
    -- AGI Script Executing Application: (noop) Options: (---[ERROR]---Rejecting Call, no Deposit 4 Call 22497700 )
    -- AGI Script Executing Application: (congestion) Options: (1)
    == Spawn extension (calling, 22497700, 1) exited non-zero on 'SIP/22311843_obproxy-00000012'
    localhost*CLI>


  • Hey gp-force, is the Manual Configuration active for the Cyta2-Line? (Lines -> Extended)
    There you'd need to truncate the incoming caller number from 22497700 to 497700, no need to involve the provider ;)

    Viele Grüße
    Niklas


    - Ex STARFACE Support: 2014-2020 -

  • hi, thanks for your prompt reply.


    no the manual config is not active


    i understand what you say and tried to do it but with no success.
    can you please help me with the config for that

  • Sure, but I need your template.
    Could you activate the manual configuration and send me the configuration?

    Viele Grüße
    Niklas


    - Ex STARFACE Support: 2014-2020 -

  • Sure, but I need your template.
    Could you activate the manual configuration and send me the configuration?


    hello, see the manual config below.
    many thanks


    [Cyta2-incoming]
    exten => _.,1,Set(channelname=Cyta2-incoming)
    exten => _.,2,Set(lineconfigid=1002)
    exten => _.,3,Goto(Cyta2-incoming-manuell,${EXTEN},1)


    [Cyta2-incoming-manuell]
    exten => _X.,1,Goto(incoming,${EXTEN:2},1)
    exten => _+X.,1,Goto(incoming,${EXTEN},1)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!