[asterisk-users] Contact header appears incorrect on this invite Asterisk registering with another PBX

2010-05-07 Thread Mike A. Leonetti
In an attempt to connect our Asterisk 1.6 phone system with another
phone system called Broadsmart, they gave me credentials to register to.

Connected to Asterisk 1.6.2.5 currently running on watermelon (pid = 10365)
watermelon*CLI sip show registry
Host   dnsmgr Username   Refresh
StateReg.Time
{broadsmart_ip}:5060  N  {broadsmart_user}3317
Registered   Fri, 07 May 2010 11:21:41
1 SIP registrations.

It shows that I am registered.  But when I go to make a call using:
exten = 706,1,Macro(broadsmart,706)

and the Macro
[macro-broadsmart]
exten = s,1,Dial(SIP/${ar...@broadsmart,60)

Asterisk reports:
[May  7 11:34:45] WARNING[10402]: chan_sip.c:17775
handle_response_invite: Received response: Forbidden from 'Mike A.
Leonetti sip:{broadsmart_us...@broadsmart.net;tag=as6376d669'

The people on the other end sent me this e-mail:

 Your registration looks all wrong. The contact header appears
 incorrect on this invite. Please make it read

  

 Contact: sip:{broadsmart_us...@{our_ip}:5060

  

 This is probably the userid or auth user id.

  

  

 REGISTER sip:{broadsmart_ip} SIP/2.0

 Via: SIP/2.0/UDP {our_ip}:5060;branch=z9hG4bK1e85dd83;rport

 Max-Forwards: 70

 From: sip:{broadsmart_us...@{broadsmart_ip};tag=as3bafb590

 To: sip:{broadsmart_us...@{broadsmart_ip}

 Call-ID: 13545ba119fb96b707e90636720df...@127.0.0.1

 CSeq: 102 REGISTER

 User-Agent: Asterisk PBX 1.6.2.5

 Expires: 120

 Contact: sip:s...@{our_ip}

 Content-Length: 0

  

 Please change expires to what we are configured which is 3600 seconds.
I'm not sure what it is that may be causing the Contact to show up as s.

Here are the associated configs.

sip.conf
[general]
register = {broadsmart_user}:{broadsmart_passwo...@{broadsmart_ip}

[broadsmart]
host={broadsmart_ip}
port=5060
type=peer
disallow=all
allow=ulaw
dtmfmode=rfc2833
nat=no
fromuser={broadsmart_user}
secret={broadsmart_password}
fromdomain=broadsmart.net
quality=3600
canreinvite=no

Sorry for the long request.  Admittedly I'm lost.

-- 
Mike A. Leonetti
As warm as green tea

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Contact header appears incorrect on this invite Asterisk registering with another PBX

2010-05-07 Thread Mike A. Leonetti
On 05/07/10 11:52, Gareth Blades wrote:
 Mike A. Leonetti wrote:
   
 In an attempt to connect our Asterisk 1.6 phone system with another 
 phone system called Broadsmart, they gave me credentials to register to.

 Connected to Asterisk 1.6.2.5 currently running on watermelon (pid = 10365)
 watermelon*CLI sip show registry
 Host   dnsmgr Username   Refresh 
 StateReg.Time
 {broadsmart_ip}:5060  N  {broadsmart_user}3317 
 Registered   Fri, 07 May 2010 11:21:41
 1 SIP registrations.

 It shows that I am registered.  But when I go to make a call using:
 exten = 706,1,Macro(broadsmart,706)

 and the Macro
 [macro-broadsmart]
 exten = s,1,Dial(SIP/${ar...@broadsmart,60)

 Asterisk reports:
 [May  7 11:34:45] WARNING[10402]: chan_sip.c:17775 
 handle_response_invite: Received response: Forbidden from 'Mike A. 
 Leonetti sip:{broadsmart_us...@broadsmart.net;tag=as6376d669'

 The people on the other end sent me this e-mail:
 
 The register command has one set of credentials but if you are dialing 
 using Dial(SIP/${ar...@broadsmart,60) then the credentials will be 
 looked up in the [broadsmart] section within sip.conf

   
So is there a way to dial out using what is already registered?

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Contact header appears incorrect on this invite Asterisk registering with another PBX

2010-05-07 Thread Gareth Blades
Mike A. Leonetti wrote:
 In an attempt to connect our Asterisk 1.6 phone system with another 
 phone system called Broadsmart, they gave me credentials to register to.
 
 Connected to Asterisk 1.6.2.5 currently running on watermelon (pid = 10365)
 watermelon*CLI sip show registry
 Host   dnsmgr Username   Refresh 
 StateReg.Time
 {broadsmart_ip}:5060  N  {broadsmart_user}3317 
 Registered   Fri, 07 May 2010 11:21:41
 1 SIP registrations.
 
 It shows that I am registered.  But when I go to make a call using:
 exten = 706,1,Macro(broadsmart,706)
 
 and the Macro
 [macro-broadsmart]
 exten = s,1,Dial(SIP/${ar...@broadsmart,60)
 
 Asterisk reports:
 [May  7 11:34:45] WARNING[10402]: chan_sip.c:17775 
 handle_response_invite: Received response: Forbidden from 'Mike A. 
 Leonetti sip:{broadsmart_us...@broadsmart.net;tag=as6376d669'
 
 The people on the other end sent me this e-mail:

The register command has one set of credentials but if you are dialing 
using Dial(SIP/${ar...@broadsmart,60) then the credentials will be 
looked up in the [broadsmart] section within sip.conf

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Contact header appears incorrect on this invite Asterisk registering with another PBX

2010-05-07 Thread Gareth Blades
Mike A. Leonetti wrote:
 On 05/07/10 11:52, Gareth Blades wrote:
 Mike A. Leonetti wrote:
   
 In an attempt to connect our Asterisk 1.6 phone system with another 
 phone system called Broadsmart, they gave me credentials to register to.

 Connected to Asterisk 1.6.2.5 currently running on watermelon (pid = 10365)
 watermelon*CLI sip show registry
 Host   dnsmgr Username   Refresh 
 StateReg.Time
 {broadsmart_ip}:5060  N  {broadsmart_user}3317 
 Registered   Fri, 07 May 2010 11:21:41
 1 SIP registrations.

 It shows that I am registered.  But when I go to make a call using:
 exten = 706,1,Macro(broadsmart,706)

 and the Macro
 [macro-broadsmart]
 exten = s,1,Dial(SIP/${ar...@broadsmart,60)

 Asterisk reports:
 [May  7 11:34:45] WARNING[10402]: chan_sip.c:17775 
 handle_response_invite: Received response: Forbidden from 'Mike A. 
 Leonetti sip:{broadsmart_us...@broadsmart.net;tag=as6376d669'

 The people on the other end sent me this e-mail:
 
 The register command has one set of credentials but if you are dialing 
 using Dial(SIP/${ar...@broadsmart,60) then the credentials will be 
 looked up in the [broadsmart] section within sip.conf

   
 So is there a way to dial out using what is already registered?
 
No. The server you register with can often be different to the one you 
pass calls to so keeping them completely separate makes a lot of sense.
You can put the authentication information in the dial command itself 
but that is generally not a good idea because it can expose the username 
and password to other applications which integrate into asterisk or when 
viewing the asterisk console.


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Contact header appears incorrect on this invite Asterisk registering with another PBX

2010-05-07 Thread Mike A. Leonetti
On 05/07/10 12:14, Gareth Blades wrote:
 Mike A. Leonetti wrote:
   
 On 05/07/10 11:52, Gareth Blades wrote:
 
 Mike A. Leonetti wrote:
   
   
 In an attempt to connect our Asterisk 1.6 phone system with another 
 phone system called Broadsmart, they gave me credentials to register to.

 Connected to Asterisk 1.6.2.5 currently running on watermelon (pid = 10365)
 watermelon*CLI sip show registry
 Host   dnsmgr Username   Refresh 
 StateReg.Time
 {broadsmart_ip}:5060  N  {broadsmart_user}3317 
 Registered   Fri, 07 May 2010 11:21:41
 1 SIP registrations.

 It shows that I am registered.  But when I go to make a call using:
 exten = 706,1,Macro(broadsmart,706)

 and the Macro
 [macro-broadsmart]
 exten = s,1,Dial(SIP/${ar...@broadsmart,60)

 Asterisk reports:
 [May  7 11:34:45] WARNING[10402]: chan_sip.c:17775 
 handle_response_invite: Received response: Forbidden from 'Mike A. 
 Leonetti sip:{broadsmart_us...@broadsmart.net;tag=as6376d669'

 The people on the other end sent me this e-mail:
 
 
 The register command has one set of credentials but if you are dialing 
 using Dial(SIP/${ar...@broadsmart,60) then the credentials will be 
 looked up in the [broadsmart] section within sip.conf

   
   
 So is there a way to dial out using what is already registered?

 
 No. The server you register with can often be different to the one you 
 pass calls to so keeping them completely separate makes a lot of sense.
 You can put the authentication information in the dial command itself 
 but that is generally not a good idea because it can expose the username 
 and password to other applications which integrate into asterisk or when 
 viewing the asterisk console.


   
So then where is my mistake?  The credentials in broadsmart look like
the same from whats being registered.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Contact header appears incorrect on this invite Asterisk registering with another PBX

2010-05-07 Thread Gareth Blades
Mike A. Leonetti wrote:
 On 05/07/10 12:14, Gareth Blades wrote:
 Mike A. Leonetti wrote:
   
 On 05/07/10 11:52, Gareth Blades wrote:
 
 Mike A. Leonetti wrote:
   
   
 In an attempt to connect our Asterisk 1.6 phone system with another 
 phone system called Broadsmart, they gave me credentials to register to.

 Connected to Asterisk 1.6.2.5 currently running on watermelon (pid = 
 10365)
 watermelon*CLI sip show registry
 Host   dnsmgr Username   Refresh 
 StateReg.Time
 {broadsmart_ip}:5060  N  {broadsmart_user}3317 
 Registered   Fri, 07 May 2010 11:21:41
 1 SIP registrations.

 It shows that I am registered.  But when I go to make a call using:
 exten = 706,1,Macro(broadsmart,706)

 and the Macro
 [macro-broadsmart]
 exten = s,1,Dial(SIP/${ar...@broadsmart,60)

 Asterisk reports:
 [May  7 11:34:45] WARNING[10402]: chan_sip.c:17775 
 handle_response_invite: Received response: Forbidden from 'Mike A. 
 Leonetti sip:{broadsmart_us...@broadsmart.net;tag=as6376d669'

 The people on the other end sent me this e-mail:
 
 
 The register command has one set of credentials but if you are dialing 
 using Dial(SIP/${ar...@broadsmart,60) then the credentials will be 
 looked up in the [broadsmart] section within sip.conf

   
   
 So is there a way to dial out using what is already registered?

 
 No. The server you register with can often be different to the one you 
 pass calls to so keeping them completely separate makes a lot of sense.
 You can put the authentication information in the dial command itself 
 but that is generally not a good idea because it can expose the username 
 and password to other applications which integrate into asterisk or when 
 viewing the asterisk console.


   
 So then where is my mistake?  The credentials in broadsmart look like
 the same from whats being registered.
 
I cant say but just made you aware that both are separate so the 
password may be wrong in one place. It would be best to do a sip debug 
and that may help diagnose the problem.

I am off now so wont be back until after the weekend so hopefully 
someone else will help furthur.

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Contact header appears incorrect on this invite Asterisk registering with another PBX

2010-05-07 Thread Mike A. Leonetti
On 05/07/10 12:40, Gareth Blades wrote:
 Mike A. Leonetti wrote:
   
 On 05/07/10 12:14, Gareth Blades wrote:
 
 Mike A. Leonetti wrote:
   
   
 On 05/07/10 11:52, Gareth Blades wrote:
 
 
 Mike A. Leonetti wrote:
   
   
   
 In an attempt to connect our Asterisk 1.6 phone system with another 
 phone system called Broadsmart, they gave me credentials to register 
 to.

 Connected to Asterisk 1.6.2.5 currently running on watermelon (pid = 
 10365)
 watermelon*CLI sip show registry
 Host   dnsmgr Username   Refresh 
 StateReg.Time
 {broadsmart_ip}:5060  N  {broadsmart_user}3317 
 Registered   Fri, 07 May 2010 11:21:41
 1 SIP registrations.

 It shows that I am registered.  But when I go to make a call using:
 exten = 706,1,Macro(broadsmart,706)

 and the Macro
 [macro-broadsmart]
 exten = s,1,Dial(SIP/${ar...@broadsmart,60)

 Asterisk reports:
 [May  7 11:34:45] WARNING[10402]: chan_sip.c:17775 
 handle_response_invite: Received response: Forbidden from 'Mike A. 
 Leonetti sip:{broadsmart_us...@broadsmart.net;tag=as6376d669'

 The people on the other end sent me this e-mail:
 
 
 
 The register command has one set of credentials but if you are dialing 
 using Dial(SIP/${ar...@broadsmart,60) then the credentials will be 
 looked up in the [broadsmart] section within sip.conf

   
   
   
 So is there a way to dial out using what is already registered?

 
 
 No. The server you register with can often be different to the one you 
 pass calls to so keeping them completely separate makes a lot of sense.
 You can put the authentication information in the dial command itself 
 but that is generally not a good idea because it can expose the username 
 and password to other applications which integrate into asterisk or when 
 viewing the asterisk console.


   
   
 So then where is my mistake?  The credentials in broadsmart look like
 the same from whats being registered.

 
 I cant say but just made you aware that both are separate so the 
 password may be wrong in one place. It would be best to do a sip debug 
 and that may help diagnose the problem.

 I am off now so wont be back until after the weekend so hopefully 
 someone else will help furthur.

   
It turns out that it's actually on the registration end.  I see that too:


[May  7 13:02:14] NOTICE[10402]: chan_sip.c:11461 sip_reregister:--
Re-registration for  {broadsmart_passwo...@{broadsmart_ip}
REGISTER 12 headers, 0
lines   


Reliably Transmitting (no NAT) to
{broadsmart_ip}:5060:   


REGISTER sip:{broadsmart_ip}
SIP/2.0 
 

Via: SIP/2.0/UDP
{asterisk_ip}:5060;branch=z9hG4bK6df043c0;rport 
  

Max-Forwards:
70  
 

From:
sip:{broadsmart_passwo...@{broadsmart_ip};tag=as59ede08c  
   

To:
sip:{broadsmart_passwo...@{broadsmart_ip} 
 

Call-ID:
4fd754b9115b2e1c2c17ce6d1f24b...@127.0.0.1  
  

CSeq: 104
REGISTER
 

User-Agent: Asterisk PBX
1.6.2.5 
  

Authorization: Digest username={broadsmart_password},
realm=Registered_Subscribers, algorithm=MD5, uri=sip:broadsmart.net,
nonce=c022714eff5d7016afe930e9390392a3,
response=2e14289556acb0bf2657504c9147b6c1,
opaque=e5677a6b   


Expires:
3600

 

Contact:
sip:s...@{asterisk_ip}



Content-Length: 0

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Contact header appears incorrect on this invite Asterisk registering with another PBX

2010-05-07 Thread Mike A. Leonetti
On 05/07/10 12:40, Gareth Blades wrote:
 Mike A. Leonetti wrote:
   
 On 05/07/10 12:14, Gareth Blades wrote:
 
 Mike A. Leonetti wrote:
   
   
 On 05/07/10 11:52, Gareth Blades wrote:
 
 
 Mike A. Leonetti wrote:
   
   
   
 In an attempt to connect our Asterisk 1.6 phone system with another 
 phone system called Broadsmart, they gave me credentials to register 
 to.

 Connected to Asterisk 1.6.2.5 currently running on watermelon (pid = 
 10365)
 watermelon*CLI sip show registry
 Host   dnsmgr Username   Refresh 
 StateReg.Time
 {broadsmart_ip}:5060  N  {broadsmart_user}3317 
 Registered   Fri, 07 May 2010 11:21:41
 1 SIP registrations.

 It shows that I am registered.  But when I go to make a call using:
 exten = 706,1,Macro(broadsmart,706)

 and the Macro
 [macro-broadsmart]
 exten = s,1,Dial(SIP/${ar...@broadsmart,60)

 Asterisk reports:
 [May  7 11:34:45] WARNING[10402]: chan_sip.c:17775 
 handle_response_invite: Received response: Forbidden from 'Mike A. 
 Leonetti sip:{broadsmart_us...@broadsmart.net;tag=as6376d669'

 The people on the other end sent me this e-mail:
 
 
 
 The register command has one set of credentials but if you are dialing 
 using Dial(SIP/${ar...@broadsmart,60) then the credentials will be 
 looked up in the [broadsmart] section within sip.conf

   
   
   
 So is there a way to dial out using what is already registered?

 
 
 No. The server you register with can often be different to the one you 
 pass calls to so keeping them completely separate makes a lot of sense.
 You can put the authentication information in the dial command itself 
 but that is generally not a good idea because it can expose the username 
 and password to other applications which integrate into asterisk or when 
 viewing the asterisk console.


   
   
 So then where is my mistake?  The credentials in broadsmart look like
 the same from whats being registered.

 
 I cant say but just made you aware that both are separate so the 
 password may be wrong in one place. It would be best to do a sip debug 
 and that may help diagnose the problem.

 I am off now so wont be back until after the weekend so hopefully 
 someone else will help furthur.

   
I see what it is.  It was the contact extension value that wasn't set. 
It defaults to s.  Adding a / and putting that contact extension
afterwards fixed the problem.  The phones still aren't working, but
thanks for all of the help.

http://www.voip-info.org/wiki/view/Asterisk+config+sip.conf

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users