Chat Script Problem.

Chat Script Problem.

Post by Ospf » Wed, 06 Feb 2002 19:27:40



   I'm trying to find out a way to send a very specific string from a
router (Cisco 2600 series) to a cell phone, in order to establish a
DDR GPRS session.

   The string is: AT+CGDCONT=1,"IP","gprs.com","0.0.0.0",0,0

   The chat-script is: router# chat-script dial ""
"AT+CGDCONT=1,"IP","gprs.com","0.0.0.0",0,0"

   The chat-script seems to work fine until it get to the third pair
of quotes. Then, the router says it can't receive IP response from the
cell phone (from the router's viewpoint, the expect-send-expect
procedure is okay, so it expects a string IP). I know I need, somehow,
to find a escape character that allows me to write between quotes all
that string, but I can't figure something out.

  Could anyone help me, please?

 
 
 

Chat Script Problem.

Post by Russ » Wed, 06 Feb 2002 22:39:42


What do you think about this :

\ Sends the ASCII character with its octal value.

Just look for the ASCII value of quote and everything should be fine.

www.andtek.net - Web based access to real routers !


> I'm trying to find out a way to send a very specific string from a
> router (Cisco 2600 series) to a cell phone, in order to establish a
> DDR GPRS session.

>    The string is: AT+CGDCONT=1,"IP","gprs.com","0.0.0.0",0,0

>    The chat-script is: router# chat-script dial ""
> "AT+CGDCONT=1,"IP","gprs.com","0.0.0.0",0,0"

>    The chat-script seems to work fine until it get to the third pair
> of quotes. Then, the router says it can't receive IP response from the
> cell phone (from the router's viewpoint, the expect-send-expect
> procedure is okay, so it expects a string IP). I know I need, somehow,
> to find a escape character that allows me to write between quotes all
> that string, but I can't figure something out.

>   Could anyone help me, please?


 
 
 

Chat Script Problem.

Post by Ospf » Thu, 07 Feb 2002 19:08:28




Quote:>What do you think about this :

>\ Sends the ASCII character with its octal value.

>Just look for the ASCII value of quote and everything should be fine.

   I just tried it but it didn't work. :(

   router# configure terminal

   router# chat-script string ""
"AT+CGDCONT=1,\042IP\042,\042movistar.es\042,\0420.0.0.0\042,0,0"

   router# ^Z

   router# show running-config

   router# chat-script string ""
"AT+CGDCONT=1,"IP","movistar.es","0.0.0.0",0,0"

   The IOS translates the octal value of quotes the moment you press
Return, so when the router sends the string to the cell phone, it
expects the string IP anyway.  :(

   Is there anything else I could try?

   Thanks in advance.

 
 
 

1. chat-script problems between two cisco2511's

I can't seem to get two CISCO 2511 IOS 10.3(3) to properly bring up a
DDR line using an ASYNC port and to negotiate the chat-script to
cause the logon to work.

Troubleshooting shows that the chat script is failing after sending the
password, yet manual dialing the same modem (telnet 2000+port#) reveals
that the expect/send sequences are as specified in the config file.
it's about as simple a chat-script as can be yet it fails to work:

Manually dialing gives the following:

    atdtXXXXXXXXXXXXX
    CONNECT 28800/ARQ/V34/LAPM/V42BIS

    User Access Verification

    Username: USER
    Password: PASS
    Entering PPP mode.
    Async interface address is unnumbered (Ethernet0)
    Your IP address is XX.XX.XX.XX. MTU is 1500 bytes
    Header compression will match your system.

The relevant info from the config file on the router initiating
the call is:

chat-script dial ABORT ERROR "" "AT Z" OK "ATDT \T" TIMEOUT 45 \c CONNECT \c
chat-script login ABORT invalid TIMEOUT 15 name: USER word: PASS "MTU is" \c

    interface Async1
     ip address XX.XX.XX.XX 255.255.255.0
     encapsulation ppp
     async dynamic routing
     dialer in-band
     dialer idle-timeout 600
     dialer enable-timeout 5
     dialer wait-for-carrier-time 45
     dialer map ip YY.YY.YY.YY modem-script dial system-script login PHONE#
     dialer-group 1

    access-list 101 permit ip any any
    dialer-list 1 list 101

    line 1
     no exec
     modem dtr-active
     stopbits 1
     rxspeed 38400
     txspeed 38400
     flowcontrol hardware

Anything else anyone can suggest?  I have tried just about every
combination of chat script, line params, etc....  I thought I was
done with chat scripts when UUCP stopped being used around here....

TIA

--curtis

--

UUcom, Inc., Alexandria VA  22311                       Fax:   (703) 824-1611

2. Looking for TOR

3. Chat script problem (debian)

4. Bio-Optic Organized Knowledge Y2K compliant

5. Modem chat script and System Chat script

6. A very common question...

7. chat script: at\n3 problem

8. Need HELP with Parnet cabel

9. Problems with chat script part two

10. problems with chat script

11. Problem with chat script: pppd (LINUX)

12. Do you always need to configure chat-script?

13. Call waiting and CHAT script