[Home]

Summary:ASTERISK-14549: [patch] Session-Expires Parse Error
Reporter:Matteo (mpiazzatnetbug)Labels:
Date Opened:2009-07-28 07:40:26Date Closed:2011-06-07 14:07:26
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/Interoperability
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) chan_sip.c.patch
( 1) parserror.cap
Description:HI, I'm tring to make calls between Asterisk and a CODIAN 4500 MCU.
I have the following error when I call from a sip-client the MCU, on the CLI appears this message:
[Jul 28 14:22:30] WARNING[5511]: chan_sip.c:19644 parse_session_expires: Parsing of Session-Expires failed
As attchment you can find the CAP trace of the SIP messagges. I think asterisk is not able to parse correctly the 200 OK message coming from the MCU. Infact It replay with an ACk and immediatly after with a BYE. If I tried to use option refuse the call start but at the first message coming from the MCU I have the same error and the call dies.

****** STEPS TO REPRODUCE ******

Register a sip client on asterisk
Call a CODIAN MCU


****** ADDITIONAL INFORMATION ******

With 1.4 branch asterisk ignores Session-Expires tag, but I wanna use this feature.

Sip.conf
......
......
session-timers=accept
[matteo.piazza.tnnet]
;==================User
type=friend
username=matteo.piazza.tnnet
callerid=("matteo piazza")
secret=0483
context=from-siep
;==================Network
canreinvite=no
nat=yes
host=dynamic
qualify=yes
;deny=0.0.0.0/0.0.0.0
;permit=<ip addr>
;==================Settings
disallow=all
allow=alaw
allow=ulaw                     ; dtmfmode=inband only works with ulaw or alaw!
allow=g729
allow=h264
allow=h263p
allow=h263
allow=h261
dtmfmode=rfc2833
allowsubscribe=yes
subscribecontext=inthints
call-limit=20

extensions.conf
.....
.....
exten => _88.,1,Dial(SIP/${EXTEN}@videoconf.provincia.tn.it)
Comments:By: Matteo (mpiazzatnetbug) 2009-07-28 08:18:38

If I change the character marker it's work, infact the line in the header is:
Session-Expired: 500; refresher=uas

chan_sip.c file: line 19641
Old line
while ((p_token = strsep(&p_se_hdr, ";"))) {
New Line
while ((p_token = strsep(&p_se_hdr, ":"))) {

Only I donno if should be work with both caracther : & ; ???

As attchment a pacth file.

By: Olle Johansson (oej) 2009-09-04 01:57:42

If you read the bug guidelines we say very clearly that we need output from your asterisk server, not a pcap file. I would like to see the whole packets and how asterisk reacts, which can't be seen from a pcap. Set debug to 4, verbose to 4 and turn on sip debug - capture it all and upload to this bug report. thanks!

By: Leif Madsen (lmadsen) 2009-09-30 10:03:41

I'm closing this issue as it has been waiting on feedback for more than 2 weeks. If the reporter has additional information that can be submitted, than they are welcome to reopen the issue. Thanks!