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>