[asterisk-users] "Contact header appears incorrect on this invite" Asterisk registering with another PBX
Mike A. Leonetti
mleonetti at evolutionce.com
Fri May 7 10:35:09 CDT 2010
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
State Reg.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/${arg1}@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_user}@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_user}@{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_user}@{broadsmart_ip}>;tag=as3bafb590
>
> To: <sip:{broadsmart_user}@{broadsmart_ip}>
>
> Call-ID: 13545ba119fb96b707e90636720df33a at 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_password}@{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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100507/35e84e0c/attachment.htm
More information about the asterisk-users
mailing list