Re: [asterisk-users] SIP/2.0 403 Forbidden

2010-03-28 Thread Dovid Bender
You need to ask your carrier what you are not sending them that they would 
like. It's usually a fromdomain or authname.
  - Original Message - 
  From: Aaron chen 
  To: Asterisk Users Mailing List - Non-Commercial Discussion ; Asterisk 
Developers Mailing List 
  Sent: Friday, March 26, 2010 09:22
  Subject: [asterisk-users] SIP/2.0 403 Forbidden


  hi,all

  when i send a call to other server use SIP trunk,

  i got this below,

  <--- SIP read from 222.46.18.52:5060 --->
  SIP/2.0 403 Forbidden

  what's rong with is?


Asterisk 1.4.21.2, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer 
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for 
details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it 
under
certain conditions. Type 'core show license' for details.
=
  == Parsing '/etc/asterisk/asterisk.conf': Found
Connected to Asterisk 1.4.21.2 currently running on gd-branch (pid = 3145)
Verbosity is at least 3
-- Executing [015921256...@from-internal:1] Set("SIP/75002-b7705298", 
"MOHCLASS=none") in new stack
-- Executing [015921256...@from-internal:2] Macro("SIP/75002-b7705298", 
"user-callerid|SKIPTTL|") in new stack
-- Executing [...@macro-user-callerid:1] Set("SIP/75002-b7705298", 
"AMPUSER=75002") in new stack
-- Executing [...@macro-user-callerid:2] GotoIf("SIP/75002-b7705298", 
"0?report") in new stack
-- Executing [...@macro-user-callerid:3] ExecIf("SIP/75002-b7705298", 
"1|Set|REALCALLERIDNUM=75002") in new stack
-- Executing [...@macro-user-callerid:4] Set("SIP/75002-b7705298", 
"AMPUSER=75002") in new stack
-- Executing [...@macro-user-callerid:5] Set("SIP/75002-b7705298", 
"AMPUSERCIDNAME=75002") in new stack
-- Executing [...@macro-user-callerid:6] GotoIf("SIP/75002-b7705298", 
"0?report") in new stack
-- Executing [...@macro-user-callerid:7] Set("SIP/75002-b7705298", 
"AMPUSERCID=75002") in new stack
-- Executing [...@macro-user-callerid:8] Set("SIP/75002-b7705298", 
"CALLERID(all)="75002" <75002>") in new stack
-- Executing [...@macro-user-callerid:9] ExecIf("SIP/75002-b7705298", 
"0|Set|CHANNEL(language)=") in new stack
-- Executing [...@macro-user-callerid:10] GotoIf("SIP/75002-b7705298", 
"1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [...@macro-user-callerid:19] NoOp("SIP/75002-b7705298", 
"Using CallerID "75002" <75002>") in new stack
-- Executing [015921256...@from-internal:3] Set("SIP/75002-b7705298", 
"_NODEST=") in new stack
-- Executing [015921256...@from-internal:4] Macro("SIP/75002-b7705298", 
"record-enable|75002|OUT|") in new stack
-- Executing [...@macro-record-enable:1] GotoIf("SIP/75002-b7705298", 
"1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [...@macro-record-enable:4] AGI("SIP/75002-b7705298", 
"recordingcheck|20100326-141638|1269584198.62") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
  recordingcheck|20100326-141638|1269584198.62: Outbound recording enabled.
  recordingcheck|20100326-141638|1269584198.62: 
CALLFILENAME=OUT75002-20100326-141638-1269584198.62
-- AGI Script recordingcheck completed, returning 0
-- Executing [...@macro-record-enable:999] 
MixMonitor("SIP/75002-b7705298", 
"/var/spool/asterisk/monitor/gd-branch/gdbranchOUT75002-20100326-141638-1269584198.62.wav||")
 in new stack
-- Executing [...@macro-record-enable:1000] Set("SIP/75002-b7705298", 
"RecordingFileName=/var/spool/asterisk/monitor/gd-branch/gdbranchOUT75002-20100326-141638-1269584198.62.wav")
 in new stack
-- Executing [...@macro-record-enable:1001] NoOp("SIP/75002-b7705298", 
"/var/spool/asterisk/monitor/gd-branch/gdbranchOUT75002-20100326-141638-1269584198.62.wav")
 in new stack
-- Executing [...@macro-record-enable:1002] Set("SIP/75002-b7705298", 
"CDR(userfield)=/var/spool/asterisk/monitor/gd-branch/gdbranchOUT75002-20100326-141638-1269584198.62.wav")
 in new stack
-- Executing [015921256...@from-internal:5] Macro("SIP/75002-b7705298", 
"dialout-trunk|7|015921256331||") in new stack
-- Executing [...@macro-dia

[asterisk-users] SIP/2.0 403 Forbidden

2010-03-25 Thread Aaron chen
hi,all

when i send a call to other server use SIP trunk,

i got this below,

<--- SIP read from 222.46.18.52:5060 --->
SIP/2.0 403 Forbidden

what's rong with is?



> Asterisk 1.4.21.2, Copyright (C) 1999 - 2008 Digium, Inc. and others.
> Created by Mark Spencer 
> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for
> details.
> This is free software, with components licensed under the GNU General
> Public
> License version 2 and other licenses; you are welcome to redistribute it
> under
> certain conditions. Type 'core show license' for details.
> =
>   == Parsing '/etc/asterisk/asterisk.conf': Found
> Connected to Asterisk 1.4.21.2 currently running on gd-branch (pid = 3145)
> Verbosity is at least 3
> -- Executing [015921256...@from-internal:1] Set("SIP/75002-b7705298",
> "MOHCLASS=none") in new stack
> -- Executing [015921256...@from-internal:2]
> Macro("SIP/75002-b7705298", "user-callerid|SKIPTTL|") in new stack
> -- Executing [...@macro-user-callerid:1] Set("SIP/75002-b7705298",
> "AMPUSER=75002") in new stack
> -- Executing [...@macro-user-callerid:2] GotoIf("SIP/75002-b7705298",
> "0?report") in new stack
> -- Executing [...@macro-user-callerid:3] ExecIf("SIP/75002-b7705298",
> "1|Set|REALCALLERIDNUM=75002") in new stack
> -- Executing [...@macro-user-callerid:4] Set("SIP/75002-b7705298",
> "AMPUSER=75002") in new stack
> -- Executing [...@macro-user-callerid:5] Set("SIP/75002-b7705298",
> "AMPUSERCIDNAME=75002") in new stack
> -- Executing [...@macro-user-callerid:6] GotoIf("SIP/75002-b7705298",
> "0?report") in new stack
> -- Executing [...@macro-user-callerid:7] Set("SIP/75002-b7705298",
> "AMPUSERCID=75002") in new stack
> -- Executing [...@macro-user-callerid:8] Set("SIP/75002-b7705298",
> "CALLERID(all)="75002" <75002>") in new stack
> -- Executing [...@macro-user-callerid:9] ExecIf("SIP/75002-b7705298",
> "0|Set|CHANNEL(language)=") in new stack
> -- Executing [...@macro-user-callerid:10] GotoIf("SIP/75002-b7705298",
> "1?continue") in new stack
> -- Goto (macro-user-callerid,s,19)
> -- Executing [...@macro-user-callerid:19] NoOp("SIP/75002-b7705298",
> "Using CallerID "75002" <75002>") in new stack
> -- Executing [015921256...@from-internal:3] Set("SIP/75002-b7705298",
> "_NODEST=") in new stack
> -- Executing [015921256...@from-internal:4]
> Macro("SIP/75002-b7705298", "record-enable|75002|OUT|") in new stack
> -- Executing [...@macro-record-enable:1] GotoIf("SIP/75002-b7705298",
> "1?check") in new stack
> -- Goto (macro-record-enable,s,4)
> -- Executing [...@macro-record-enable:4] AGI("SIP/75002-b7705298",
> "recordingcheck|20100326-141638|1269584198.62") in new stack
> -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
>   recordingcheck|20100326-141638|1269584198.62: Outbound recording enabled.
>   recordingcheck|20100326-141638|1269584198.62:
> CALLFILENAME=OUT75002-20100326-141638-1269584198.62
> -- AGI Script recordingcheck completed, returning 0
> -- Executing [...@macro-record-enable:999]
> MixMonitor("SIP/75002-b7705298",
> "/var/spool/asterisk/monitor/gd-branch/gdbranchOUT75002-20100326-141638-1269584198.62.wav||")
> in new stack
> -- Executing [...@macro-record-enable:1000] Set("SIP/75002-b7705298",
> "RecordingFileName=/var/spool/asterisk/monitor/gd-branch/gdbranchOUT75002-20100326-141638-1269584198.62.wav")
> in new stack
> -- Executing [...@macro-record-enable:1001] NoOp("SIP/75002-b7705298",
> "/var/spool/asterisk/monitor/gd-branch/gdbranchOUT75002-20100326-141638-1269584198.62.wav")
> in new stack
> -- Executing [...@macro-record-enable:1002] Set("SIP/75002-b7705298",
> "CDR(userfield)=/var/spool/asterisk/monitor/gd-branch/gdbranchOUT75002-20100326-141638-1269584198.62.wav")
> in new stack
> -- Executing [015921256...@from-internal:5]
> Macro("SIP/75002-b7705298", "dialout-trunk|7|015921256331||") in new stack
> -- Executing [...@macro-dialout-trunk:1] Set("SIP/75002-b7705298",
> "DIAL_TRUNK=7") in new stack
> -- Executing [...@macro-dialout-trunk:2] GosubIf("SIP/75002-b7705298",
> "0?sub-pincheck|s|1") in new stack
> -- Executing [...@macro-dialout-trunk:3] GotoIf("SIP/75002-b7705298",
> "0?disabletrunk|1") in new stack
> -- Executing [...@macro-dialout-trunk:4] Set("SIP/75002-b7705298",
> "DIAL_NUMBER=015921256331") in new stack
> -- Executing [...@macro-dialout-trunk:5] Set("SIP/75002-b7705298",
> "DIAL_TRUNK_OPTIONS=Ttr") in new stack
> -- Executing [...@macro-dialout-trunk:6] Set("SIP/75002-b7705298",
> "OUTBOUND_GROUP=OUT_7") in new stack
> -- Executing [...@macro-dialout-trunk:7] GotoIf("SIP/75002-b7705298",
> "1?nomax") in new stack
> -- Goto (macro-dialout-trunk,s,9)
> -- Executing [...@macro-dialout-trunk:9] GotoIf("SIP/75002-b7705298",
> "0?skipoutcid") in new stack
> -- Executing [...@macro-dialout-trunk:10] Set(

Re: [Asterisk-Users] SIP/2.0 403 Forbidden

2005-08-18 Thread John Gruber

John Gruber wrote:

I too am starting out with  Andy Powell's Little Asterick Handbook 
following it letter by letter and having the 403 forbidden issues with 
my XLite client.


Before I start to work this out... did you find anything?

John Gruber


in your sip.conf entry for your phone. add

type=friend

All is right with the world.

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


[Asterisk-Users] SIP/2.0 403 Forbidden

2005-08-18 Thread John Gruber
I too am starting out with  Andy Powell's Little Asterick Handbook 
following it letter by letter and having the 403 forbidden issues with 
my XLite client.


Before I start to work this out... did you find anything?

John Gruber
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] SIP/2.0 403 Forbidden

2005-07-06 Thread Silvio Schneider
Hi all,

I have been worriyng and googling a lot but I can't find my mistake.
I am trying to regiter an X-Lite Softphone to Asterisk, but
I am getting a SIP/2.0 403 Forbidden response:

SEND TIME: 10157385
SEND >> 10.100.249.12:5060
REGISTER sip:10.100.249.12 SIP/2.0
Via: SIP/2.0/UDP
10.100.249.86:5060;rport;branch=z9hG4bKFAC1B6F2B5414EE9855696A09A83FB22
From: Tester ;tag=3354744682
To: Tester 
Contact: "Tester" 
Call-ID: [EMAIL PROTECTED]
CSeq: 4806 REGISTER
Expires: 1800
Max-Forwards: 70
User-Agent: X-Lite release 1103m
Content-Length: 0


RECEIVE TIME: 10157385
RECEIVE << 10.100.249.12:5060
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP
10.100.249.86:5060;branch=z9hG4bKFAC1B6F2B5414EE9855696A09A83FB22
From: Tester ;tag=3354744682
To: Tester ;tag=as7ae925e2
Call-ID: [EMAIL PROTECTED]
CSeq: 4806 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY
Contact: 
Content-Length: 0 

--
MY config is:
/etc/asterisk/sip.conf :

; Note: If your SIP devices are behind a NAT and your Asterisk
;  server isn't, try adding "nat=1" to each peer definition to
;  solve translation problems.
[general]
port = 5060   ; Port to bind to (SIP is 5060)
bindaddr = 0.0.0.0; Address to bind to (all addresses on machine)
disallow=all
allow=ulaw
allow=alaw
context = from-sip-external ; Send unknown SIP callers to this context
callerid = Unknown

#include sip_nat.conf
#include sip_custom.conf
#include sip_additional.conf

[1000]
username=1000
secret=abc123
context=mytest
host=dynamic
-
/etc/asterisk/extensions.conf :

[general]
static=yes
writeprotect=yes

;Suport phones
;SUPPORTPHONES=SIP/2205&SIP/2206&SIP/2207&SIP/2208&SIP/2209

[globals]
XLITE=SIP/1000

[mytest]
exten => 1367,1Dial(SIP/1000)
exten => 2890,1,Wait(2)
exten => 2890,2,Answer
exten => 2890,3,Playback(demo-echotest)
exten => 2890,4,Echo()
exten => 2468,1,Dial($XLITE) 
-
Some startup messages from Asterisk:
[pbx_config.so] => (Text Extension Configuration)
  == Parsing '/etc/asterisk/extensions.conf': Found
  == Setting global variable 'XLITE' to 'SIP/1000'
-- Registered extension context 'mytest'
-- Added extension '1367' priority 1 to mytest
-- Added extension '2890' priority 1 to mytest
-- Added extension '2890' priority 2 to mytest
-- Added extension '2890' priority 3 to mytest
-- Added extension '2890' priority 4 to mytest
-- Added extension '2468' priority 1 to mytest 

Someone has an idea what is causing the "SIP/2.0 403 Forbidden"?
Please help. 

-- 
Weitersagen: GMX DSL-Flatrates mit Tempo-Garantie!
Ab 4,99 Euro/Monat: http://www.gmx.net/de/go/dsl
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users