Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Wed Apr 24, 2024 10:51 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: IP Authentication for wholesale
PostPosted: Thu Jun 03, 2010 7:59 am 
Offline

Joined: Sun Aug 17, 2008 1:52 pm
Posts: 93
Hi Guys,


I'm tyring to setup a whole account with IP authentication but I get this: SIP/2.0 407 Proxy Authentication Required

This question have been asked a lot, but people who got their problem solved in the forum, did not state exactly how did they fix it.


the config is:
Code:
[4861273552]
type=peer
accountcode=4861273552
dtmfmode=RFC2833
amaflags=billing
disallow=all
allow=ulaw
allow=alaw
canreinvite=no
insecure=port,invite
nat=no
host=10.1.2.22
context=a2billing
cancallforward=yes
qualify=yes
regseconds=0



SIP PACKETS:
Code:
<--- SIP read from 10.1.2.22:5060 --->
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 10.1.2.22:5060;branch=z9hG4bK2cc1fb25;rport
From: "xxx" <sip:[email protected]>;tag=as01de5f3b
To: <sip:[email protected]>
Contact: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Max-Forwards: 70
Remote-Party-ID: "xxx" <sip:[email protected]>;privacy=off;screen=no
Date: Thu, 03 Jun 2010 07:50:26 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Content-Type: application/sdp
Content-Length: 258

v=0
o=root 21398 21398 IN IP4 10.1.2.22
s=session
c=IN IP4 10.1.2.22
t=0 0
m=audio 13444 RTP/AVP 0 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

<------------->
--- (15 headers 13 lines) ---
Sending to 10.1.2.22 : 5060 (NAT)
Using INVITE request as basis request - [email protected]
localhost*CLI> sip set
<--- Reliably Transmitting (NAT) to 10.1.2.22:5060 --->
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 10.1.2.22:5060;branch=z9hG4bK2cc1fb25;received=10.1.2.22;rport=5060
From: "Mohammad" <sip:[email protected]>;tag=as01de5f3b
To: <sip:[email protected]>;tag=as15e72483
Call-ID: [email protected]
CSeq: 102 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO
Supported: replaces
Proxy-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="448150c2"
Content-Length: 0



Top
 Profile  
 
 Post subject: Re: IP Authentication for wholesale
PostPosted: Thu Jun 03, 2010 8:38 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

Is your server on the same subnet as the endpoint, or to put it another way is there NAT in the way.

Joe


Top
 Profile  
 
 Post subject: Re: IP Authentication for wholesale
PostPosted: Fri Jun 04, 2010 5:18 am 
Offline

Joined: Sun Aug 17, 2008 1:52 pm
Posts: 93
yes it on the same subnet.


Top
 Profile  
 
 Post subject: Re: IP Authentication for wholesale
PostPosted: Fri Jun 04, 2010 5:21 am 
Offline

Joined: Sun Aug 17, 2008 1:52 pm
Posts: 93
very funny.

I was spending days to fix this small thing, I just restarted the machine and it worked !!!!

restarting/reloading asterisk didn't help!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group