[cisco-nas] Autocommand PAD over ISDN
Aaron Leonard
Aaron at cisco.com
Tue May 12 12:24:41 EDT 2009
Bordin,
Here's a way that I like to do this sort of thing ... i.e. the case
where you have incoming modem calls, and based upon the called number,
you want to invoke different applications. Assuming that those
applications can be invoked via an exec command, then there is no need
for RPM - just do this:
aaa new-model
aaa authentication login default local radius
aaa authentication ppp default radius local
aaa authorization exec default local radius
username 5554446164 nopassword dnis
username 5554446164 autocommand pad 990101803 /cud ABRK /profile krone /quiet
username 5554446163 nopassword dnis
username 5554446163 autocommand telnet 10.1.2.3
etc.
Now, while troubleshooting this, don't use autocommand. Instead, from
the exec prompt, manually enter the "pad" (or whatever) command.
Meanwhile, from another exec prompt, have some debugs running, so you
can see what's going on. Once you have the pad (or whatever) command
working as desired, *then* you can put it into an autocommand.
Hth,
Aaron
P.S. Don't use "no flush-at-activation" on modem lines intended for
character mode - this will tend to deliver garbage to the exec parser or
to your server application.
------------------------------------------------------------------------
bordin at cetrel.lu wrote:
>
> Hello,
>
> I have a problem for a migration of a "old" application Point of Sales.
> Before , the terminal async with Zmodem application is connected to a
> USR Robotics chassis in analogue (V32bis) and ISDN ( the application
> terminal is the same : according to the client we put a modem analogue
> or ISDN modem ) and USR Modems were connected to a pad Telematics.
> Then the call is made in X.25 to the application server.
>
> I have AS5400HPX, configured with "resource-pool".
> I have succeeded to configure for analog modem ( spe modem +
> autocommand pad ) but not for ISDN modem.
> I have tried with vty-async (LAPB-TA) and resource-pool group but It
> doesn't works.
> Has someone a idea ?
>
> Thanks a lot.
>
> Best Regards...
>
> Bordin Patrick
> Cetrel S.A.
> www.cetrel.lu
>
> The config :
>
>
> resource-pool enable
> !
> resource-pool group resource Krone
> range port 1/44
> !
> resource-pool group resource Krone-isdn
> range port 1/58
> !
> resource-pool profile customer Krone
> limit base-size all
> limit overflow-size 0
> resource Krone speech
> dnis group Krone
> !
> resource-pool profile customer Krone-isdn
> limit base-size all
> limit overflow-size 0
> resource Krone-isdn digital
> dnis group Krone-isdn
> !
> aaa new-model
> !
> !
> aaa group server tacacs+ XXXXXXXX
> aaa
>
>
> calltracker enable
> calltracker history max-size 360
> calltracker call-record terse quiet
> spe country germany
> !
> spe call-record modem
> !
> spe default-firmware spe-firmware-1
> no ip source-route
> !
> !
> x29 profile krone 1:0 2:0 3:2 4:6 5:0 6:0 7:0 8:0 9:0 12:0 13:0 14:0
> 15:0 16:0 17:0 18:0
>
> vty-async
> vty-async virtual-template 1
>
> isdn switch-type primary-net5
> !
> x25 routing acknowledge local
>
> modemcap entry
> krone:MSC=&F&D2E0s0=0s2=43s3=13s4=10s5=8s15=1s21=0s22=0s23=1s24=1s53=0s29=1s64=0
>
>
> controller E1 7/3
> pri-group timeslots 1-31
> description ISDN PRI
> !
> ip tcp synwait-time 5
> ip telnet source-interface Loopback0
> ip tftp source-interface Loopback0
> ip ssh version 2
> ip scp server enable
> !
> !
> !
> !
> interface Loopback0
> description Loopback Interface for management
> ip address xxxxxxxxxxxxx 255.255.255.255
> !
> interface FastEthernet0/0
> description DMZ
> ip address ccccccccccccccc 255.255.255.0
> ip virtual-reassembly
> no ip route-cache cef
> no ip route-cache
> no ip mroute-cache
> duplex auto
> speed auto
> no cdp enable
> !
> interface Serial7/3:15
> description ISDN PRI
> no ip address
> encapsulation ppp
> dialer rotary-group 1
> dialer-group 1
> autodetect encapsulation v120 lapb-ta
> no snmp trap link-status
> isdn switch-type primary-net5
> isdn overlap-receiving T302 1500
> isdn incoming-voice modem
> no cdp enable
> !
> interface Virtual-Template1
> ip unnumbered Loopback0
> no peer default ip address
> ppp authentication chap
> !
> interface Group-Async0
> no ip address
> encapsulation slip
> async mode interactive
> group-range 1/00 1/70
>
> dialer dnis group Krone
> number yyyyyyyy
> call-type cas speech
> !
> dialer dnis group Krone-isdn
> number zzzzzzzz
> call-type cas digital
> !
> dialer-list 1 protocol ip permit
>
> x25 route ^990101803.* hunt-group FEP xot-keepalive-period 5
> xot-keepalive-tries 3
> !
> privilege exec level 0 pad
> privilege exec level 0 telnet
> privilege exec level 1 enable
>
> line vty 0 4
> access-class 1 in
> logging synchronous level all
> login authentication TAC-CET
> transport preferred none
> transport input ssh
> transport output pad telnet
> escape-character 3
> line vty 5 7
> autocommand pad 990101803 /cud ABRK /profile krone /quiet
> transport input v120 lapb-ta
> transport output pad
>
> line 1/44
> session-timeout 1
> no flush-at-activation
> authorization exec EMPTY
> login authentication EMPTY
> no modem callout
> modem Dialin
> modem autoconfigure type krone
> autocommand pad 990101803 /cud ABRK /profile krone /quiet
> transport preferred pad
> transport input all
> transport output pad
> escape-character NONE
>
> line 1/58
> session-timeout 1
> location libre
> no flush-at-activation
> authorization exec EMPTY
> login authentication EMPTY
> no modem callout
> modem Dialin
> modem autoconfigure type V120
> autocommand pad 990101803 /cud ABRK /profile krone /quiet
> transport preferred none
> transport input v120 lapb-ta
> transport output all
> escape-character NONE
> end
>
> =======================================================================
>
> This electronic message is not binding on its sender nor on Cetrel S.A.
>
> Any use of information of this mail except the use by the addressee
>
> within his or her business relation with Cetrel is strictly forbidden
>
> CETREL S.A. L-2956 Luxembourg; Tel: 00352 35566-1; http://www.cetrel.lu
>
> =======================================================================
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> cisco-nas mailing list
> cisco-nas at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-nas/attachments/20090512/cd1af911/attachment.html>
More information about the cisco-nas
mailing list