[asterisk-users] Not a valid SIP contact - Asterisk 1.4.21.1 & Mitel SIP phones
Mark Wiater
mwiater at cablespeed.com
Sat Jul 19 10:22:08 CDT 2008
Hi,
I have a client using Mitel 5212 phones in SIP mode with a 1.4.21.1
Asterisk server (and a couple of previous 1.4 versions). They're
mostly happy with the combination except for this one issue.
For incoming calls only, either originating from other local SIP
phones or from a PRI, calls won't get bridged (remote party get's
hung up) if the call is answer too quickly on the Mitel. Or so it
seems. The receiving Mitel phone thinks the call is in session though.
Oh... this does not happen all of the time, maybe 50%.
Asterisk is reporting errors like:
[Jul 19 10:46:41] NOTICE[2466]: chan_sip.c:8068
set_address_from_contact: '"72.16.1.20>;tag=as7b9f4bfb' is not a
valid SIP contact (missing sip:) trying to use anyway
[Jul 19 10:46:41] WARNING[2466]: chan_sip.c:8097
set_address_from_contact: Invalid host name in Contact: (can't
resolve in DNS) : '"72.16.1.20>'
[Jul 19 10:46:41] WARNING[2466]: chan_sip.c:5839 set_destination:
Can't find address for host '"72.16.1.20'
[Jul 19 10:46:41] WARNING[2466]: chan_sip.c:5839 set_destination:
Can't find address for host '"72.16.1.20'
or
[Jul 19 10:45:03] NOTICE[2466]: chan_sip.c:8068
set_address_from_contact: '"172.16.1.20>;tag=as4a1b11c8' is not a
valid SIP contact (missing sip:) trying to use anyway
[Jul 19 10:45:03] WARNING[2466]: chan_sip.c:8097
set_address_from_contact: Invalid host name in Contact: can't
resolve in DNS) : '"172.16.1.20>'
[Jul 19 10:45:04] WARNING[2466]: chan_sip.c:5839 set_destination:
Can't find address for host '"172.16.1.20'
[Jul 19 10:45:04] WARNING[2466]: chan_sip.c:5839 set_destination:
Can't find address for host '"172.16.1.20'
or
[Jul 19 10:52:18] NOTICE[2466]: chan_sip.c:8068
set_address_from_contact: '"nt-Length:0' is not a valid SIP contact
(missing sip:) trying to use anyway
[Jul 19 10:52:18] WARNING[2466]: chan_sip.c:8097
set_address_from_contact: Invalid host name in Contact: (can't
resolve in DNS) : '"nt-Length'
[Jul 19 10:52:18] WARNING[2466]: chan_sip.c:5839 set_destination:
Can't find address for host '"nt-Length'
[Jul 19 10:52:18] WARNING[2466]: chan_sip.c:5839 set_destination:
Can't find address for host '"nt-Length'
-- SIP/517-09215fb0 answered SIP/512-09258c78
-- Native bridging SIP/512-09258c78 and SIP/517-09215fb0
[Jul 19 10:52:18] WARNING[22054]: chan_sip.c:5839 set_destination:
Can't find address for host '"nt-Length'
-- Got SIP response 416 "Unsupported URI Scheme" back from 172.16.1.157
[Jul 19 10:52:18] WARNING[2466]: chan_sip.c:5839 set_destination:
Can't find address for host '"nt-Length'
So it seems that the Mitel phone is sending a bad contact field in
SIP. I've confirmed via tcpdump that this is what's in the SIP
packet on the wire.
I wanted to try a different version of SIP on the Mitel but that
doesn't seem to be an option, it's not available for download and
the local Mitel vendor can't seem to get his hands on anything newer
than 6.0.0.something, though there is supposedly 7.1.x available.
These phones are running 06.00.00.19.
The Asterisk server has a pretty standard sip.conf,
bindaddr=0.0.0.0
pedantic=no;
bindport=5060
srvlookup=no
tos_video=af41
notifyringing=yes
notifyhold=yes
allowsubscribe=yes
limitonpeer=yes
localnet=172.16.1.0/255.255.255.0
Polycom phones on this same asterisk server do not display this
behavior.
I'm wondering if there is a workaround for this apparent Mitel issue
in Asterisk's configuration. Anyone using this combination with success?
Thanks in advance for any thoughts
Mark
More information about the asterisk-users
mailing list