[asterisk-users] Unable to lookup host in c= line

Nikolaus Hiebaum news at hiebaum.org
Sat Feb 10 04:45:58 MST 2007


Hi,

I am new to Asterisk and am runing asterisk 1.2.9.1 on an OpenBSD box. With a
few manuals I was able to set up some SIP providers with which outgoing and
incoming calls work. However, there is one provider with which inbound calls
don't work at all.

The only apparent error/warning message is this
WARNING[13688]: chan_sip.c:3527 process_sdp: Unable to lookup host in c= line,
'IN IP4 213.185.164.123213.185.164.123'

Maybe someone knows how to fix this. Many thanks in advance.

Here is my sip.conf with the troubling provider
---sip.conf---

[general]
disallow=all
allow=ulaw
allow=alaw
allow=ulaw
allow=g729
allow=gsm
allow=slinear
;qualify=no
context=default
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
localnet=192.168.0.0/255.255.255.0


; --------------------------------------------------------------------
;
; Connection Data for SIP providers
;

; MobileCall
register => 43720755555:XXXXX at sip001.mitacs.com/43720755555

; ---
; SIP out
[43720755555]
type=peer
username=43720755555
fromuser=43720755555
secret=XXXXX
host=sip001.mitacs.com
fromdomain=sip001.mitacs.com
insecure=very
nat=yes
qualify=yes


; ---
; SIP in
[Mitacs_in]
type=peer
fromdomain=sip001.mitacs.com
host=sip001.mitacs.com
nat=yes
context=ankommend


; --------------------------------------------------------------------
;
; Connection Data for SIP clients
;

[39]
callerid=Phone 3 <39>
host=dynamic
domain=192.168.0.82
user=39
secret=100
type=friend
mailbox=39
nat=yes
canreinvite=no
qualify=yes

---EOF---

Here is my extensions.conf.
---extensions.conf---

[general]
static=yes
writeprotect=no

[lokal]
; local extensions 30-29

exten => _3X,1,NoCDR()
exten => _3X,n,Dial,SIP/${EXTEN}|55|Ttr

; SIP Provider
[Mitacs_out]
exten => _X.,1,SetCallerId,SIPID
exten => _X.,2,Dial(SIP/${EXTEN}@43720755555,45,trg)
exten => _X.,3,Hangup

[default]
include => lokal
include => Mitacs_out

[ankommend]
exten => 43720755555,1,Dial,SIP/39|39|r

---EOF---

Finally, I enabled the debug log for the provider in question. It appears to me
that incoming calls reach the Asterisk, but then something happens and the call
doesn't get forwarded to my SIP-phone (I tried both soft-phones and hardware
phones). As I said at the beginning, the only apparent error is the
WARNING[27979] chan_sip.c: Unable to lookup host in c= line, 'IN IP4
213.185.164.123213.185.164.123'.

I am attaching the log now.

---log---

Feb  9 20:07:06 VERBOSE[27979] logger.c:
<-- SIP read from 213.185.164.123:5060:

Feb  9 20:07:06 VERBOSE[27979] logger.c: --- (0 headers 0 lines)Feb  9 20:07:06
VERBOSE[27979] logger.c: --- (0 headers 0 lines) Nat keepalive Feb  9 20:07:06
VERBOSE[27979] logger.c: --- (0 headers 0 lines) Nat keepalive ---
Feb  9 20:07:08 NOTICE[27979] manager.c: Unable to open management configuration
manager.conf.  Call management disabled.
Feb  9 20:07:08 NOTICE[27979] cdr.c: CDR simple logging enabled.
Feb  9 20:07:08 NOTICE[27979] indications.c: Removed default indication country
'us'
Feb  9 20:07:08 WARNING[27979] pbx_ael.c: Unable to open
'/etc/asterisk/extensions.ael': No such file or directory
Feb  9 20:07:08 WARNING[27979] pbx.c: Requested contexts didn't get merged
Feb  9 20:07:08 ERROR[27979] pbx_dundi.c: Unable to load config dundi.conf
Feb  9 20:07:08 NOTICE[27979] chan_agent.c: No agent configuration found --
agent support disabled
Feb  9 20:07:08 ERROR[27979] chan_iax2.c: Unable to load config iax.conf
Feb  9 20:07:08 WARNING[27979] chan_iax2.c: Error opening firmware directory
'/usr/local/share/asterisk/firmware/iax': No such file or directory
Feb  9 20:07:08 NOTICE[27979] iax2-provision.c: No IAX provisioning
configuration found, IAX provisioning disabled.
Feb  9 20:07:08 NOTICE[27979] chan_skinny.c: Unable to load config skinny.conf,
Skinny disabled
Feb  9 20:07:08 NOTICE[27979] app_enumlookup.c: No ENUM Config file, using
defaults
Feb  9 20:07:08 NOTICE[27979] app_queue.c: No call queueing config file
(queues.conf), so no call queues
Feb  9 20:07:08 WARNING[27979] cdr_custom.c: Failed to reload configuration
file.
Feb  9 20:07:08 NOTICE[27979] chan_mgcp.c: Unable to load config mgcp.conf, MGCP
disabled
Feb  9 20:07:09 VERBOSE[27979] logger.c: 12 headers, 0 lines
Feb  9 20:07:09 VERBOSE[27979] logger.c: Reliably Transmitting (NAT) to
213.185.164.123:5060:
OPTIONS sip:sip001.mitacs.com SIP/2.0
Via: SIP/2.0/UDP 192.168.0.2:5060;branch=z9hG4bK7410f22e;rport
From: "asterisk" <sip:asterisk at 192.168.0.2>;tag=as0883770e
To: <sip:sip001.mitacs.com>
Contact: <sip:asterisk at 192.168.0.2>
Call-ID: 4847e54b117bab2828be404103db59e6 at 192.168.0.2
CSeq: 102 OPTIONS
User-Agent: Asterisk PBX
Max-Forwards: 70
Date: Fri, 09 Feb 2007 19:07:09 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Length: 0


---
Feb  9 20:07:09 VERBOSE[27979] logger.c:
<-- SIP read from 213.185.164.123:5060:
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP
192.168.0.2:5060;branch=z9hG4bK7410f22e;rport=5060;received=85.125.152.162
From: "asterisk" <sip:asterisk at 192.168.0.2>;tag=as0883770e
To: <sip:sip001.mitacs.com>;tag=d4eccf8b83660ff28578f976e0340e46.176c
Call-ID: 4847e54b117bab2828be404103db59e6 at 192.168.0.2
CSeq: 102 OPTIONS
Server: Sip EXpress router (0.9.6 (i386/linux))
Content-Length: 0
Warning: 392 213.185.164.123:5060 "Noisy feedback tells:  pid=12189
req_src_ip=85.125.152.162 req_src_port=5060 in_uri=sip:sip001.mitacs.com
out_uri=sip:sip001.mitacs.com via_cnt==1"


Feb  9 20:07:09 VERBOSE[27979] logger.c: --- (9 headers 0 lines)Feb  9 20:07:09
VERBOSE[27979] logger.c: --- (9 headers 0 lines)---
Feb  9 20:07:09 VERBOSE[27979] logger.c: Destroying call
'4847e54b117bab2828be404103db59e6 at 192.168.0.2'
Feb  9 20:07:09 NOTICE[27979] chan_sip.c:    -- Re-registration for
43720755555 at sip001.mitacs.com
Feb  9 20:07:09 VERBOSE[27979] logger.c: REGISTER 12 headers, 0 lines
Feb  9 20:07:09 VERBOSE[27979] logger.c: Reliably Transmitting (no NAT) to
213.185.164.123:5060:
REGISTER sip:sip001.mitacs.com SIP/2.0
Via: SIP/2.0/UDP 192.168.0.2:5060;branch=z9hG4bK14ef08fe;rport
From: <sip:43720755555 at sip001.mitacs.com>;tag=as4eb9b679
To: <sip:43720755555 at sip001.mitacs.com>
Call-ID: 0c7451d45c6d9f7d58f32e7255ddb2c3 at 192.168.0.2
CSeq: 102 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Expires: 120
Contact: <sip:43720755555 at 192.168.0.2>
Event: registration
Content-Length: 0


---
Feb  9 20:07:09 VERBOSE[27979] logger.c:
<-- SIP read from 213.185.164.123:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
192.168.0.2:5060;branch=z9hG4bK14ef08fe;rport=5060;received=85.125.152.162
From: <sip:43720755555 at sip001.mitacs.com>;tag=as4eb9b679
To:
<sip:43720755555 at sip001.mitacs.com>;tag=d4eccf8b83660ff28578f976e0340e46.69c9
Call-ID: 0c7451d45c6d9f7d58f32e7255ddb2c3 at 192.168.0.2
CSeq: 102 REGISTER
WWW-Authenticate: Digest realm="sip001.mitacs.com",
nonce="45ccc77592a36df8592d5236be2a0009315fd596"
Server: Sip EXpress router (0.9.6 (i386/linux))
Content-Length: 0
Warning: 392 213.185.164.123:5060 "Noisy feedback tells:  pid=12190
req_src_ip=85.125.152.162 req_src_port=5060 in_uri=sip:sip001.mitacs.com
out_uri=sip:sip001.mitacs.com via_cnt==1"


Feb  9 20:07:09 VERBOSE[27979] logger.c: --- (10 headers 0 lines)Feb  9 20:07:09
VERBOSE[27979] logger.c: --- (10 headers 0 lines)---
Feb  9 20:07:09 VERBOSE[27979] logger.c: Responding to challenge, registration
to domain/host name sip001.mitacs.com
Feb  9 20:07:09 VERBOSE[27979] logger.c: REGISTER 13 headers, 0 lines
Feb  9 20:07:09 VERBOSE[27979] logger.c: Reliably Transmitting (no NAT) to
213.185.164.123:5060:
REGISTER sip:sip001.mitacs.com SIP/2.0
Via: SIP/2.0/UDP 192.168.0.2:5060;branch=z9hG4bK63f949cb;rport
From: <sip:43720755555 at sip001.mitacs.com>;tag=as4b68076c
To: <sip:43720755555 at sip001.mitacs.com>
Call-ID: 0c7451d45c6d9f7d58f32e7255ddb2c3 at 192.168.0.2
CSeq: 103 REGISTER
User-Agent: Asterisk PBX
Max-Forwards: 70
Authorization: Digest username="43720755555", realm="sip001.mitacs.com",
algorithm=MD5, uri="sip:sip001.mitacs.com",
nonce="45ccc77592a36df8592d5236be2a0009315fd596",
response="712a286ea565da465b965a71a670323b", opaque=""
Expires: 120
Contact: <sip:43720755555 at 192.168.0.2>
Event: registration
Content-Length: 0


---
Feb  9 20:07:09 VERBOSE[27979] logger.c:
<-- SIP read from 213.185.164.123:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP
192.168.0.2:5060;branch=z9hG4bK63f949cb;rport=5060;received=85.125.152.162
From: <sip:43720755555 at sip001.mitacs.com>;tag=as4b68076c
To:
<sip:43720755555 at sip001.mitacs.com>;tag=d4eccf8b83660ff28578f976e0340e46.456f
Call-ID: 0c7451d45c6d9f7d58f32e7255ddb2c3 at 192.168.0.2
CSeq: 103 REGISTER
Contact: <sip:43720755555 at 85.125.152.162:5064>;expires=3572,
<sip:43720755555 at 85.125.152.162:5060>;expires=120;received="sip:85.125.152.162:5060"
Server: Sip EXpress router (0.9.6 (i386/linux))
Content-Length: 0
Warning: 392 213.185.164.123:5060 "Noisy feedback tells:  pid=12190
req_src_ip=85.125.152.162 req_src_port=5060 in_uri=sip:sip001.mitacs.com
out_uri=sip:sip001.mitacs.com via_cnt==1"


Feb  9 20:07:09 VERBOSE[27979] logger.c: --- (10 headers 0 lines)Feb  9 20:07:09
VERBOSE[27979] logger.c: --- (10 headers 0 lines)---
Feb  9 20:07:09 VERBOSE[27979] logger.c: Scheduling destruction of call
'0c7451d45c6d9f7d58f32e7255ddb2c3 at 192.168.0.2' in 32000 ms
Feb  9 20:07:09 NOTICE[27979] chan_sip.c: Outbound Registration: Expiry for
sip001.mitacs.com is 120 sec (Scheduling reregistration in 105 s)
Feb  9 20:07:26 VERBOSE[27979] logger.c:
<-- SIP read from 213.185.164.123:5060:
INVITE sip:43720755555 at 85.125.152.162:5060 SIP/2.0
Record-Route: <sip:213.185.164.123;ftag=as4217aa4d;lr>
Via: SIP/2.0/UDP 213.185.164.123;branch=z9hG4bK70a3.0dcf83b3.1
Via: SIP/2.0/UDP 213.185.164.125:5060;branch=z9hG4bK5fcb6276;rport=5060
From: "011112222" <sip:011112222 at 213.185.164.125>;tag=as4217aa4d
To: <sip:43720755555 at sip001.mitacs.com>
Contact: <sip:011112222 at 213.185.164.125>
Call-ID: 0cfba8cf00f68a23538851a52e2faf17 at 213.185.164.125
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 16
Date: Fri, 09 Feb 2007 19:07:26 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Type: application/sdp
Content-Length: 554
P-hint: request forced to rtp proxy

v=0
o=root 16463 16463 IN IP4 213.185.164.125
s=session
c=IN IP4 213.185.164.123213.185.164.123
t=0 0
m=audio 5231252312 RTP/AVP 10 18 97 3 4 0 8 111 5 7 110 101
a=rtpmap:10 L16/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:97 iLBC/8000
a=rtpmap:3 GSFeb  9 20:07:26 VERBOSE[27979] logger.c: --- (16 headers 23
lines)Feb  9 20:07:26 VERBOSE[27979] logger.c: --- (16 headers 23 lines)---
Feb  9 20:07:26 VERBOSE[27979] logger.c: Using INVITE request as basis request -
0cfba8cf00f68a23538851a52e2faf17 at 213.185.164.125
Feb  9 20:07:26 VERBOSE[27979] logger.c: Sending to 213.185.164.123 : 5060
(non-NAT)
Feb  9 20:07:26 VERBOSE[27979] logger.c: Found peer 'Mitacs_in'
Feb  9 20:07:26 WARNING[27979] chan_sip.c: Unable to lookup host in c= line, 'IN
IP4 213.185.164.123213.185.164.123'
Feb  9 20:07:26 VERBOSE[27979] logger.c: Transmitting (NAT) to
213.185.164.123:5060:
SIP/2.0 488 Not acceptable here
Via: SIP/2.0/UDP
213.185.164.123;branch=z9hG4bK70a3.0dcf83b3.1;received=213.185.164.123
Via: SIP/2.0/UDP 213.185.164.125:5060;branch=z9hG4bK5fcb6276;rport=5060
From: "011112222" <sip:011112222 at 213.185.164.125>;tag=as4217aa4d
To: <sip:43720755555 at sip001.mitacs.com>;tag=as0f54a05d
Call-ID: 0cfba8cf00f68a23538851a52e2faf17 at 213.185.164.125
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Contact: <sip:43720755555 at 192.168.0.2>
Content-Length: 0


---
Feb  9 20:07:26 VERBOSE[27979] logger.c: Destroying call
'0cfba8cf00f68a23538851a52e2faf17 at 213.185.164.125'
Feb  9 20:07:26 VERBOSE[27979] logger.c:
<-- SIP read from 213.185.164.123:5060:
ACK sip:43720755555 at 85.125.152.162:5060 SIP/2.0
Via: SIP/2.0/UDP 213.185.164.123;branch=z9hG4bK70a3.0dcf83b3.1
From: "011112222" <sip:011112222 at 213.185.164.125>;tag=as4217aa4d
Call-ID: 0cfba8cf00f68a23538851a52e2faf17 at 213.185.164.125
To: <sip:43720755555 at sip001.mitacs.com>;tag=as0f54a05d
CSeq: 102 ACK
User-Agent: Sip EXpress router(0.9.6 (i386/linux))
Content-Length: 0


Feb  9 20:07:26 VERBOSE[27979] logger.c: --- (8 headers 0 lines)Feb  9 20:07:26
VERBOSE[27979] logger.c: --- (8 headers 0 lines)---
Feb  9 20:07:26 VERBOSE[27979] logger.c: Destroying call
'0cfba8cf00f68a23538851a52e2faf17 at 213.185.164.125'
Feb  9 20:07:27 VERBOSE[27979] logger.c: Destroying call
'660cc9ef36d2fcfc47d2af854c0d71da at 192.168.0.2'
Feb  9 20:07:37 VERBOSE[27979] logger.c:
<-- SIP read from 213.185.164.123:5060:

Feb  9 20:07:37 VERBOSE[27979] logger.c: --- (0 headers 0 lines)Feb  9 20:07:37
VERBOSE[27979] logger.c: --- (0 headers 0 lines) Nat keepalive Feb  9 20:07:37
VERBOSE[27979] logger.c: --- (0 headers 0 lines) Nat keepalive ---
Feb  9 20:07:41 VERBOSE[27979] logger.c: Destroying call
'0c7451d45c6d9f7d58f32e7255ddb2c3 at 192.168.0.2'

---EOF---

Many thanks for your help!


-- 
Beste Grüße / Best regards ,
Nikolaus Hiebaum


More information about the asterisk-users mailing list