grammar: One more test packet to parse...
This commit is contained in:
parent
1f14fda8b4
commit
99d39be944
|
@ -272,4 +272,25 @@ PP.PPCompositeParserTest subclass: SIPGrammarTest [
|
|||
res := self parse: data.
|
||||
res inspect.
|
||||
]
|
||||
|
||||
testResponse [
|
||||
| data crlf res |
|
||||
crlf := Character cr asString, Character nl asString.
|
||||
data := 'SIP/2.0 480 Temporarily Unavailable', crlf,
|
||||
'Via: SIP/2.0/UDP 172.16.254.34;branch=z9hG4bKMzQ4NTQzNDgxNCwyNDE1Nw__', crlf,
|
||||
'From: <sip:1000@on-waves.com>;tag=MzQ4NTQ0MTg2NzIyNDEwNjkyNjY_', crlf,
|
||||
'To: <sip:9198@172.16.1.72>;tag=42eBv22Fj314N', crlf,
|
||||
'Call-ID: MzY3NzE3ODgyNw__@xiaoyu', crlf,
|
||||
'CSeq: 1 INVITE', crlf,
|
||||
'User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-dff41af 2011-04-20 14-11-24 +0200', crlf,
|
||||
'Accept: application/sdp', crlf,
|
||||
'Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO, REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE', crlf,
|
||||
'Supported: timer, precondition, path, replaces', crlf,
|
||||
'Allow-Events: talk, hold, presence, dialog, line-seize, call-info, sla, include-session-description, presence.winfo, message-summary, refer', crlf,
|
||||
'Reason: Q.850;cause=96;text="MANDATORY_IE_MISSING"', crlf,
|
||||
'Content-Length: 0', crlf,
|
||||
'Remote-Party-ID: "9198" <sip:9198@172.16.1.72>;party=calling;privacy=off;screen=no', crlf, crlf.
|
||||
|
||||
res := self parse: data.
|
||||
]
|
||||
]
|
||||
|
|
Reference in New Issue