Author Topic: ISDN national plan  (Read 8838 times)

sam

  • Newbie
  • *
  • Posts: 2
    • View Profile
ISDN national plan
« on: October 02, 2013, 06:39:20 AM »
Hi, my ISP requires to send a number in national format.
I tried to do so
^8\(.*\)$=sig/\0;trunk=trunk1;caller=4958956565;callerplan=national
it does not work......
How can I do it?

cc08

  • Guest
Re: ISDN national plan
« Reply #1 on: October 08, 2013, 12:04:15 AM »
Hey, where all the telepaths ?  :)

without the configs,  logs,  and details only to them...

sam

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: ISDN national plan
« Reply #2 on: October 08, 2013, 02:45:18 AM »
/etc/dahdi/modules
   opvxd115

/etc/dahdi/system.conf
   span=1,1,0,ccs,hdb3
   bchan=1-15,17-31
   dchan=16
   loadzone    = ru
   defaultzone = ru

/etc/yate/zapcard.conf
   [general]
   format=mulaw
   [span1]
   type=E1
   offset=0
   sigchan=16
   voicechans=1-15.17-31

/etc/yate/ysigchan.conf
   [trunk1]
   type=isdn-pri-cpe
   switchtype=euro-isdn-e1
   sig=span1
   voice=span1

/etc/yate/regexroute.conf
   ^8\(.*\)$=sig/\0;trunk=trunk1;caller=4958956565;callerplan=national

/etc/yate/regfile.conf
   [200]
   password=test


LOG:
<INFO> Routing call to '89195648987' in context 'default' via 'sig/89195648987' in 472 usec
<sig/223:ALL> Trying to call on trunk 'trunk1' [0x7f76c8156a30]
<trunk1/Q931:ALL> Call(1,158) direction=outgoing TEI=0 [0x7f76c8121310]
<trunk1/B:ALL> ZapCircuit(31). IOCTL(SetLinear) failed on channel 31 (param=0). 22: Invalid argument [0x7f76c8104da0]
<trunk1/B:NOTE> ZapCircuit(31). IOCTL(SetToneDetect) failed on channel 31 (param=3). 38: Function not implemented [0x7f76c8104da0]
<trunk1/Q931:ALL> Call(1,158). State 'Null' --> 'CallInitiated' [0x7f76c8121310]
<trunk1/Q931:INFO> Sending message (0x7f76c81083b0)
-----
SETUP
  [From initiator=true CallRef=158]   08 02 00 9e 05
  Sending complete (codeset=0 type=161)   a1
  Bearer capability (codeset=0 type=4)   04 03 80 90 a3
    transfer-cap=speech
    transfer-mode=circuit
    transfer-rate=64kbit
    layer1-protocol=alaw
  Channel identification (codeset=0 type=24)   18 03 a1 83 9f
    interface-bri=false
    channel-exclusive=false
    channel-select=present
    type=B
    channel-by-number=true
    channels=31
  Calling number (codeset=0 type=108)   6c 0c 00 80 34 39 35 34 31 31 36 35 34 31
    number=4958956565
    type=unknown
    plan=unknown
    presentation=allowed
    screening=user-provided
  Called number (codeset=0 type=112)   70 0c 80 38 39 31 39 31 30 36 37 34 36 30
    number=89195648987
    type=
    plan=
-----
<sig/223:CALL> Outgoing call from=4958956565 to=89195648987 trunk=trunk1 sigcall=0x7f76c8121310 [0x7f76c8156a30]
<trunk1/Q931:INFO> Received message (0x1337f10)
-----
CALL PROCEEDING
  [From initiator=false CallRef=158]   08 02 80 9e 02
  Channel identification (codeset=0 type=24)   18 03 a9 83 87
    interface-bri=false
    channel-exclusive=true
    d-channel=false
    channel-select=present
    channel-by-number=true
    type=B
    channels=7
-----
<trunk1/B:ALL> ZapCircuit(7). IOCTL(SetLinear) failed on channel 7 (param=0). 22: Invalid argument [0x7f76c8104da0]
<trunk1/B:NOTE> ZapCircuit(7). IOCTL(SetToneDetect) failed on channel 7 (param=3). 38: Function not implemented [0x7f76c8104da0]
<trunk1/Q931:ALL> Call(1,158). State 'CallInitiated' --> 'OutgoingProceeding' [0x7f76c8121310]



cc08

  • Guest
Re: ISDN national plan
« Reply #3 on: October 17, 2013, 04:52:35 AM »
I apologize, but to make a conclusion personally for me do not have enough information from the sniffer (commands in the console: sniffer on).