[Asterisk-Users] Unable to dial using SIP using FWD and iConnectHere

2004-09-16 Thread Rodolfo Grave
Hi.
I cant make SIP calls from asterisk.
When I start asterisk, I get the following message: What does it means?? 
Asterisk is not behind NAT or Firewall.

--
[chan_sip.so] = (Session Initiation Protocol (SIP))
 == Parsing '/etc/asterisk/sip.conf': Found
Sep 16 09:52:33 WARNING[16384]: chan_sip.c:8477 reload_config: Unable to 
get IP address for dhcp--490, SIP disabled
 == Registered channel type 'SIP' (Session Initiation Protocol (SIP))
 == Registered application 'SIPDtmfMode'
 == Parsing '/etc/asterisk/enum.conf': Found
 == Parsing '/etc/asterisk/logger.conf': Found
Asterisk Event Logger restarted
Asterisk Ready.
*CLI


I have configured some sample sections in my extensions.conf file to 
test asterisk features:

---
[demo]
exten = 1,1,SetCallerID(My Self-Testing)
exten = 
1,2,Dial(IAX2/${FWDNUMBER}:[EMAIL PROTECTED]/${FWDNUMBER})
; call my own FWD number using iax subscription at FWD. I'm receiving 
this call in X-Lite soft phone configured at another PC (not at the 
asterisk box)
; This woks great! I can dial [EMAIL PROTECTED] from console and get an incoming 
call at the X-Lite.

exten = 2,1,Dial(SIP/[EMAIL PROTECTED],r)
; Test for outoging calls using IConnectHere account
exten = 3,1,Dial(SIP/${FWDNUMBER}:[EMAIL PROTECTED]:5060,r)
; Test for outgoing calls using FWD account via SIP
--
These are my peers in sip.conf:
---
[outgoing_sip_iconnect]
; for routing calls outbound to the PSTN numbers via iconnecthere
;
type=peer
username=!!!My Iconnect Number!!!
secret=!!!MyPassword!!!
host=sipauth.deltathree.com
canreinvite=no
qualify=no
disallow=all
allow=gsm
allow=ulaw
allow=alaw
allow=G726
[outgoing_sip_fwd]
type=peer
username=!!!My FWD Number
secret=!!!MyPassword
host=fwd.pulver.com
disallow=all
allow=ulaw
allow=G726
-
And this is what I get when I type dial [EMAIL PROTECTED] or [EMAIL PROTECTED]... messages 
are the same except for server IP address, which are indeed the right 
ones (I've cheked that out making pings).


*CLI dial [EMAIL PROTECTED]
   -- Executing Dial(OSS/dsp, SIP/[EMAIL PROTECTED]) in new stack
*CLI Sep 16 11:26:23 WARNING[278544]: chan_sip.c:590 __sip_xmit: 
sip_xmit of 0x8109224 (len 726) to 65.39.205.114 returned -1: Bad file 
descriptor
   -- Called [EMAIL PROTECTED]
Sep 16 11:26:24 WARNING[245775]: chan_sip.c:590 __sip_xmit: sip_xmit of 
0x8109224 (len 726) to 65.39.205.114 returned -1: Bad file descriptor
Sep 16 11:26:25 WARNING[245775]: chan_sip.c:590 __sip_xmit: sip_xmit of 
0x8109224 (len 726) to 65.39.205.114 returned -1: Bad file descriptor
Sep 16 11:26:26 WARNING[245775]: chan_sip.c:590 __sip_xmit: sip_xmit of 
0x8109224 (len 726) to 65.39.205.114 returned -1: Bad file descriptor
Sep 16 11:26:27 WARNING[245775]: chan_sip.c:590 __sip_xmit: sip_xmit of 
0x8109224 (len 726) to 65.39.205.114 returned -1: Bad file descriptor
Sep 16 11:26:28 WARNING[245775]: chan_sip.c:590 __sip_xmit: sip_xmit of 
0x8109224 (len 726) to 65.39.205.114 returned -1: Bad file descriptor
Sep 16 11:26:29 WARNING[245775]: chan_sip.c:673 retrans_pkt: Maximum 
retries exceeded on call [EMAIL PROTECTED] 
for seqno 102 (Critical Request)
Sep 16 11:26:29 WARNING[278544]: chan_sip.c:590 __sip_xmit: sip_xmit of 
0x8106c7c (len 364) to 65.39.205.114 returned -1: Bad file descriptor
 == No one is available to answer at this time
   -- Executing Wait(OSS/dsp, 1) in new stack
Sep 16 11:26:30 WARNING[245775]: chan_sip.c:590 __sip_xmit: sip_xmit of 
0x8106c7c (len 364) to 65.39.205.114 returned -1: Bad file descriptor
Sep 16 11:26:31 WARNING[245775]: chan_sip.c:590 __sip_xmit: sip_xmit of 
0x8106c7c (len 364) to 65.39.205.114 returned -1: Bad file descriptor
Sep 16 11:26:32 WARNING[245775]: chan_sip.c:590 __sip_xmit: sip_xmit of 
0x8106c7c (len 364) to 65.39.205.114 returned -1: Bad file descriptor
Sep 16 11:26:33 WARNING[245775]: chan_sip.c:590 __sip_xmit: sip_xmit of 
0x8106c7c (len 364) to 65.39.205.114 returned -1: Bad file descriptor
Sep 16 11:26:34 WARNING[245775]: chan_sip.c:590 __sip_xmit: sip_xmit of 
0x8106c7c (len 364) to 65.39.205.114 returned -1: Bad file descriptor
Sep 16 11:26:35 WARNING[245775]: chan_sip.c:673 retrans_pkt: Maximum 
retries exceeded on call [EMAIL PROTECTED] 
for seqno 102 (Non-critical Request)
   -- Timeout on OSS/dsp
 == CDR updated on OSS/dsp
   -- Executing Goto(OSS/dsp, #|1) in new stack
   -- Goto (demo,#,1)
   -- Executing Playback(OSS/dsp, demo-thanks) in new stack
 Console call has been answered 
   -- Playing 'demo-thanks' (language 'en')
   -- Executing Hangup(OSS/dsp, ) in new stack
 == Spawn extension (demo, #, 2) exited non-zero on 'OSS/dsp'
 Hangup on console 

*CLI
---
---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0438-2, 16/09/2004
Tested on: 16/09/2004 19:18:45
avast! 

Re: [Asterisk-Users] Unable to dial using SIP using FWD and iConnectHere

2004-09-16 Thread Andrew Thompson
Rodolfo Grave wrote:
Hi.
I cant make SIP calls from asterisk.
When I start asterisk, I get the following message: What does it means?? 
Asterisk is not behind NAT or Firewall.

--
[chan_sip.so] = (Session Initiation Protocol (SIP))
 == Parsing '/etc/asterisk/sip.conf': Found
Sep 16 09:52:33 WARNING[16384]: chan_sip.c:8477 reload_config: Unable to 
get IP address for dhcp--490, SIP disabled
What is dhcp--490? Is that the name of your linux machine?
Do your linux box get its IP via DHCP from your provider?
Do a reverse lookup on your linux boxes IP and see if it comes up as 
dhcp--490.yourcarrier.tld or something like that. If so, try pinging 
 dhcp--490 and also the reverse lookup address. You may have to add 
the yourcarrier.tld to your lookup file(can't remember the name right 
now) so that your dns lookups automatically attempt to search for 
dhcp--490.yourcarrier.tld before they fail out as unknown.

--
Andrew Thompson
http://aktzero.com/
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Unable to dial using SIP using FWD and iConnectHere

2004-09-16 Thread Brian Wilkins
If it's what Andrew is talking about, then add the hostname to /etc/hosts.

On Thursday 16 September 2004 05:27 pm, Andrew Thompson wrote:
 Rodolfo Grave wrote:
  Hi.
  I cant make SIP calls from asterisk.
 
  When I start asterisk, I get the following message: What does it means??
  Asterisk is not behind NAT or Firewall.
 
  --
  [chan_sip.so] = (Session Initiation Protocol (SIP))
   == Parsing '/etc/asterisk/sip.conf': Found
  Sep 16 09:52:33 WARNING[16384]: chan_sip.c:8477 reload_config: Unable to
  get IP address for dhcp--490, SIP disabled

 What is dhcp--490? Is that the name of your linux machine?

 Do your linux box get its IP via DHCP from your provider?

 Do a reverse lookup on your linux boxes IP and see if it comes up as
 dhcp--490.yourcarrier.tld or something like that. If so, try pinging
   dhcp--490 and also the reverse lookup address. You may have to add
 the yourcarrier.tld to your lookup file(can't remember the name right
 now) so that your dns lookups automatically attempt to search for
 dhcp--490.yourcarrier.tld before they fail out as unknown.

-- 
--
Heritage Communications Corporation
  Melbourne, FL USA 32935
http://www.hcc.net
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Unable to dial using SIP using FWD and iConnectHere

2004-09-16 Thread Rodolfo Grave
Hi and thanks. I added the entry in the /etc/hosts file and it is 
working now... I also had to add more parameters at the peers 
definition: authname, username

Now..
The problem with this solution is that my hostname and my ip changes 
everytime I reset my box (at least)... how can I solve this? Can't I 
just say asterisk to use the eth0 IP??

Thanks a lot.
RODOLFO
Brian Wilkins wrote:
If it's what Andrew is talking about, then add the hostname to /etc/hosts.
On Thursday 16 September 2004 05:27 pm, Andrew Thompson wrote:
 

Rodolfo Grave wrote:
   

Hi.
I cant make SIP calls from asterisk.
When I start asterisk, I get the following message: What does it means??
Asterisk is not behind NAT or Firewall.
--
[chan_sip.so] = (Session Initiation Protocol (SIP))
== Parsing '/etc/asterisk/sip.conf': Found
Sep 16 09:52:33 WARNING[16384]: chan_sip.c:8477 reload_config: Unable to
get IP address for dhcp--490, SIP disabled
 

What is dhcp--490? Is that the name of your linux machine?
Do your linux box get its IP via DHCP from your provider?
Do a reverse lookup on your linux boxes IP and see if it comes up as
dhcp--490.yourcarrier.tld or something like that. If so, try pinging
 dhcp--490 and also the reverse lookup address. You may have to add
the yourcarrier.tld to your lookup file(can't remember the name right
now) so that your dns lookups automatically attempt to search for
dhcp--490.yourcarrier.tld before they fail out as unknown.
   

 


---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 0438-2, 16/09/2004
Tested on: 16/09/2004 20:24:42
avast! - copyright (c) 2000-2004 ALWIL Software.
http://www.avast.com

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Unable to dial using SIP using FWD and iConnectHere

2004-09-16 Thread Andrew Thompson
Rodolfo Grave wrote:
Hi and thanks. I added the entry in the /etc/hosts file and it is 
working now... I also had to add more parameters at the peers 
definition: authname, username

Now..
The problem with this solution is that my hostname and my ip changes 
everytime I reset my box (at least)... how can I solve this? Can't I 
just say asterisk to use the eth0 IP??
snip
Brian Wilkins wrote:
If it's what Andrew is talking about, then add the hostname to 
/etc/hosts.
I did a quick search and found this link: 
http://www.faqs.org/docs/securing/chap9sec91.html

/etc/resolv.conf is the file I believe you should edit.
I believe that you want to add your providers domain.tld to this file so 
that your dns lookups automatically looks up 
your_dhcp_name.providerdomain.tld when you run a query for 
your_dhcp_name. Even if your_dhcp_name changes, having the domain 
suffix in /etc/resolv.conf should allow the query to complete successfully.

Hope this helps.
--
Andrew Thompson
http://aktzero.com/
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users