Outbound Problem
Added by Muhammad Amin Dhamani over 10 years ago
Hi,
I am facing problem that my SIP account with VOIP provider is registered but when I try to call its failed and give error NOTICE15227: chan_sip.c:23534 handle_request_invite: Call from '8001' (10.59.0.20:64706) to extension '0911167159' rejected because extension not found in context 'default'.
Can anybody help to solve this problem.
Replies (17)
RE: Outbound Problem
-
Added by striker 247 over 10 years ago
post your dialplan entry
your dialplan should match ur number dialled 0911167159
RE: Outbound Problem
-
Added by Muhammad Amin Dhamani over 10 years ago
exten => _.,1,AGI
exten => _.,2,Dial(SIP/${EXTEN:1}@CAT,,tTo)
exten => _.,3,Hangup
RE: Outbound Problem
-
Added by striker 247 over 10 years ago
use
the below dialplan
exten => _9X.,1,AGI
exten => _9X.,2,Dial(SIP/${EXTEN:1}@CAT,tTo)
exten => _9X.,3,Hangup
once done reload the server and check whether this diaplan is updated in extensions-vicidial.conf
or type
asterisk -vvvvvr
dialplan show 90911167159@default
once done dial your number with 9 as prefix ie: 90911167159
br
striker
www.striker24x7.blogspot.com
once done reload
RE: Outbound Problem
-
Added by Muhammad Amin Dhamani over 10 years ago
Hi Thanks for information. I am still getting error unable to dial. When I dial it says person you are dialing is unavailable.
Error:
======
Connected to Asterisk 1.8.23.0-1_centos5.go RPM by [email protected] currently running on gotestvoip (pid = 24720)
Verbosity is at least 3
Using SIP RTP CoS mark 5
-- Executing [90911167159@default:1] AGI("SIP/8001-00000003", "") in new stack
[Oct 13 13:02:18] WARNING[30386]: res_agi.c:3842 agi_exec_full: AGI requires an argument (script)
Spawn extension (default, 90911167159, 1) exited non-zero on 'SIP/8001-00000003'
-- Executing [h@default:1] AGI in new stack
-- <SIP/8001-00000003>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------- completed, returning 0
RE: Outbound Problem
-
Added by striker 247 over 10 years ago
exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log) exten => _9X.,2,Dial(SIP/${EXTEN:1}@CAT,tTo) exten => _9X.,3,Hangup
RE: Outbound Problem
-
Added by Muhammad Amin Dhamani over 10 years ago
Still not working.
Using SIP RTP CoS mark 5-- Executing [90911167159@default:1] AGI("SIP/8001-00000002", "agi://127.0.0.1:4577/call_log") in new stack
-- <SIP/8001-00000002>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing [90911167159@default:2] Dial("SIP/8001-00000002", "SIP/0911167159@CAT,tTo") in new stack
Using SIP RTP CoS mark 5
-- Called SIP/0911167159@CAT
[Oct 14 09:29:30] WARNING21273: app_dial.c:2512 dial_exec_full: Invalid timeout specified: 'tTo'. Setting timeout to infinite
[Oct 14 09:29:30] WARNING18213: chan_sip.c:21126 handle_response_invite: Received response: "Forbidden" from '"8001" <sip:[email protected]>;tag=as56d5bc59'
Everyone is busy/congested at this time (1:0/0/1)
-- Executing [90911167159@default:3] Hangup("SIP/8001-00000002", "") in new stack
Spawn extension (default, 90911167159, 3) exited non-zero on 'SIP/8001-00000002'
-- Executing [h@default:1] AGI in new stack
-- <SIP/8001-00000002>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----21-----CHANUNAVAIL---------- completed, returning 0
gotestvoip*CLI>
RE: Outbound Problem
-
Added by striker 247 over 10 years ago
sorry some type error
exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log) exten => _9X.,2,Dial(SIP/${EXTEN:1}@CAT,,tTo) exten => _9X.,3,Hangup
as per your log is it dialling right no , do ur provider need 0 infront of all nos
Called SIP/0911167159@CAT
RE: Outbound Problem
-
Added by Muhammad Amin Dhamani over 10 years ago
Still same error yes we dial number with prefix 0.
RE: Outbound Problem
-
Added by Muhammad Amin Dhamani over 10 years ago
= 1 extension (3 priorities) in 1 context. =
Using SIP RTP CoS mark 5
-- Executing [90911167159@default:1] AGI("SIP/8001-00000008", "agi://127.0.0.1:4577/call_log") in new stack
-- <SIP/8001-00000008>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing [90911167159@default:2] Dial("SIP/8001-00000008", "SIP/0911167159@CAT,,tTo") in new stack
Using SIP RTP CoS mark 5
-- Called SIP/0911167159@CAT
[Oct 15 11:20:56] WARNING504: chan_sip.c:21126 handle_response_invite: Received response: "Forbidden" from '"8001" <sip:[email protected]>;tag=as5fd7fa03'
Everyone is busy/congested at this time (1:0/0/1)
-- Executing [90911167159@default:3] Hangup("SIP/8001-00000008", "") in new stack
Spawn extension (default, 90911167159, 3) exited non-zero on 'SIP/8001-00000008'
-- Executing [h@default:1] AGI in new stack
-- <SIP/8001-00000008>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----21-----CHANUNAVAIL---------- completed, returning 0
RE: Outbound Problem
-
Added by striker 247 over 10 years ago
seems now your carrier side issue
post out put of
sip show peers
sip show registry
post your carrier settings...
RE: Outbound Problem
-
Added by Muhammad Amin Dhamani over 10 years ago
gotestvoip*CLI> sip show peers
Name/username Host Dyn Forcerport ACL Port Status
8001/8001 10.59.0.20 D N 22054 OK (105 ms)
8002/8002 (Unspecified) D N 0 UNKNOWN
8003/8003 (Unspecified) D N 0 UNKNOWN
8004/8004 (Unspecified) D N 0 UNKNOWN
8005/8005 (Unspecified) D N 0 UNKNOWN
8006/8006 (Unspecified) D N 0 UNKNOWN
8007/8007 (Unspecified) D N 0 UNKNOWN
8008/8008 (Unspecified) D N 0 UNKNOWN
8009/8009 (Unspecified) D N 0 UNKNOWN
8010/8010 (Unspecified) D N 0 UNKNOWN
8011/8011 (Unspecified) D N 0 UNKNOWN
8012/8012 (Unspecified) D N 0 UNKNOWN
8013/8013 (Unspecified) D N 0 UNKNOWN
8014/8014 (Unspecified) D N 0 UNKNOWN
8015/8015 (Unspecified) D N 0 UNKNOWN
8016/8016 (Unspecified) D N 0 UNKNOWN
8017/8017 (Unspecified) D N 0 UNKNOWN
8018/8018 (Unspecified) D N 0 UNKNOWN
8019/8019 (Unspecified) D N 0 UNKNOWN
8020/8020 (Unspecified) D N 0 UNKNOWN
CAT/+6621054037 202.129.61.118 N 5060 OK (10 ms)
21 sip peers [Monitored: 2 online, 19 offline Unmonitored: 0 online, 0 offline]
gotestvoip*CLI> sip show registry
Host dnsmgr Username Refresh State Reg.Time
catnextgen.com:5060 Y +6621054037 45 Registered Wed, 15 Oct 2014 11:31:49
1 SIP registrations.
Carrier Configuration:
======================
; WARNING- THIS FILE IS AUTO-GENERATED BY VICIDIAL, ANY EDITS YOU MAKE WILL BE LOST
register => +6621054037:xxxxxxx:[email protected]@catnextgen.com/+6621054037
; VICIDIAL Carrier: CAT - CAT037
[CAT]
disallow=all
allow=ulaw
type=friend
dtmfmode=rfc2833
context=trunkinbound
qualify=yes
insecure=very
nat=yes
host=202.129.61.118
allow=alaw
allow=g729
username=+6621054037
secret=xxxxxxx
[8001]
username=8001
secret=goautodial
accountcode=8001
callerid="8001" <+6621054037>
mailbox=8001
context=default
type=friend
host=dynamic
RE: Outbound Problem
-
Added by striker 247 over 10 years ago
are you able to make call by registring you voip sip account direcly in softphone?
RE: Outbound Problem
-
Added by Muhammad Amin Dhamani over 10 years ago
Yes its working directly on Softphone and same setting were working on Freepbx earlier.
RE: Outbound Problem
-
Added by Muhammad Amin Dhamani over 10 years ago
I have attached the previous dial Plan which was working on Freepbx.
RE: Outbound Problem
-
Added by striker 247 over 10 years ago
are u dialling right no
Called SIP/0911167159@CAT
do they require 0 in front
RE: Outbound Problem
-
Added by Muhammad Amin Dhamani over 10 years ago
Yes this is the right number which I am calling. I tried with 0 and without 0 in front but still not working.
RE: Outbound Problem
-
Added by Muhammad Amin Dhamani over 10 years ago
This is the error when I dial without 9 prefix.
[Oct 16 10:58:13] NOTICE504: chan_sip.c:23534 handle_request_invite: Call from '8001' (10.59.0.20:24796) to extension '0911167159' rejected because extension not found in context 'default'.
This the error when I dial with 9 prefix.
Using SIP RTP CoS mark 5-- Executing [9911167159@default:1] AGI("SIP/8001-0000000a", "agi://127.0.0.1:4577/call_log") in new stack
-- <SIP/8001-0000000a>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing [9911167159@default:2] Dial("SIP/8001-0000000a", "SIP/911167159@CAT,,tTo") in new stack
Using SIP RTP CoS mark 5
-- Called SIP/911167159@CAT
[Oct 16 10:58:21] WARNING504: chan_sip.c:21126 handle_response_invite: Received response: "Forbidden" from '"8001" <sip:[email protected]>;tag=as7b3cc3cd'
Everyone is busy/congested at this time (1:0/0/1)
-- Executing [9911167159@default:3] Hangup("SIP/8001-0000000a", "") in new stack
Spawn extension (default, 9911167159, 3) exited non-zero on 'SIP/8001-0000000a'
-- Executing [h@default:1] AGI in new stack
-- <SIP/8001-0000000a>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----21-----CHANUNAVAIL---------- completed, returning 0
This is the error when I dial number without 0.
Using SIP RTP CoS mark 5-- Executing [9911167159@default:1] AGI("SIP/8001-0000000e", "agi://127.0.0.1:4577/call_log") in new stack
-- <SIP/8001-0000000e>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
-- Executing [9911167159@default:2] Dial("SIP/8001-0000000e", "SIP/911167159@CAT,,tTo") in new stack
Using SIP RTP CoS mark 5
-- Called SIP/911167159@CAT
[Oct 16 11:01:19] WARNING504: chan_sip.c:21126 handle_response_invite: Received response: "Forbidden" from '"8001" <sip:[email protected]>;tag=as3a14f3c7'
Everyone is busy/congested at this time (1:0/0/1)
-- Executing [9911167159@default:3] Hangup("SIP/8001-0000000e", "") in new stack
Spawn extension (default, 9911167159, 3) exited non-zero on 'SIP/8001-0000000e'
-- Executing [h@default:1] AGI in new stack
-- <SIP/8001-0000000e>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----21-----CHANUNAVAIL---------- completed, returning 0