Dear Forum,
The incoming calls are working fine thru the defined iSDN line
Thru routing we set up that numbers starting with 098, 01, 514 and 051 go thru ISDN line
If I dial some number which starts with 0 i.e. 098xxxx (our mobile net), 01xxxx (calling other city) then it works, but if I dial a local number e.x. 320200 then it breaks.
However, from the ssh session I see that it dials 051320200 instead of 320200 which I enter as the number to call, and 051320200 is indeed an invalid number.
It is the local number with the 0+local preselection which I had to set up in the Line Configuration -> Configuration tab, as it does not allow me to save the config without these values to be defined.
If I force the line selection by dialing **9*514728, the it works again fine.
So how to get rid of this 051? Here is the output of ssh for one of the failed call:
-- Executing AGI("SIP/zsoltXllite-086f8020", "agi://localhost/initdial.agi") in new stack
-- AGI Script Executing Application: (noop) Options: (---[info]---Call from : (name) Zsolt Magyar (num) 0 (intern) 202 )
-- AGI Script Executing Application: (Set) Options: (LANGUAGE()=de)
-- AGI Script Executing Application: (noop) Options: (---[Info]---Call outgoing for account 1003 to 320200 )
-- AGI Script Executing Application: (ResetCDR) Options: ()
-- AGI Script Executing Application: (Set) Options: (EXTEN=051320200)
-- AGI Script Executing Application: (Set) Options: (CDR(userfield)=1079)
-- AGI Script Executing Application: (Set) Options: (CALLERID(all)=anonymous <0>)
-- AGI Script Executing Application: (setCallerPres) Options: (PROHIB)
-- AGI Script Executing Application: (noop) Options: (---[info]---CallerID : 0 for call over line ISDN )
-- AGI Script Executing Application: (ResetCDR) Options: ()
-- AGI Script Executing Application: (Set) Options: (EXTEN=051320200)
-- AGI Script Executing Application: (noop) Options: (---[info]---Trying to place an outgoing call on line: ISDN )
-- AGI Script Executing Application: (ChanIsAvail) Options: (ZAP/G31)
-- Hungup 'Zap/2-1'
-- AGI Script Executing Application: (noop) Options: (---[info]--- AvailChan: Zap/2-1 )
-- AGI Script Executing Application: (set) Options: (AVAILCHAN="")
-- AGI Script Executing Application: (Set) Options: (CDR(accountcode)=1)
-- AGI Script Executing Application: (Dial) Options: (Zap/2/051320200|120|wW)
-- Requested transfer capability: 0x00 - SPEECH
-- Called 2/051320200
-- Zap/2-1 is proceeding passing it to SIP/zsoltXllite-086f8020
-- Channel 0/2, span 1 got hangup request, cause 3
-- Channel 0/2, span 1 received AOC-E charging 0 units
-- Hungup 'Zap/2-1'
== Everyone is busy/congested at this time (1:0/0/1)
-- AGI Script Executing Application: (noop) Options: (---[info]---Dial returned status: CHANUNAVAIL )
-- AGI Script agi://localhost/initdial.agi completed, returning 0
-- Executing Hangup("SIP/zsoltXllite-086f8020", "") in new stack
== Spawn extension (international, 320200, 2) exited non-zero on 'SIP/zsoltXllite-086f8020'