Page 1 of 1

Problem with the dial plan

PostPosted: Tue Aug 02, 2011 4:02 pm
by subhadeep
Yesterday i have installed the latest version, and i'm very much new with the server, after putting up the LAN and setting SIP phones(X-lite), i can see they are getting registered, but when am manually dialing a number its show errors....
i guess i'm not able to setting up the carrier properly, anyone please help..

In X-lite the error shows--> Call failed: 480 temporarily unavailable

In ASTERISK realtime logs! its showin-->
[Aug 2 16:47:20] VERBOSE[22849] logger.c: [Aug 2 16:47:20] -- Executing [912042223116@default:1] AGI("SIP/8001-00000016", "agi://127.0.0.1:4577/call_log") in new stack
[Aug 2 16:47:20] VERBOSE[22849] logger.c: [Aug 2 16:47:20] -- AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Aug 2 16:47:20] VERBOSE[22849] logger.c: [Aug 2 16:47:20] -- Executing [912042223116@default:2] Dial("SIP/8001-00000016", "SIP/12042223116@goautodial||tTo") in new stack
[Aug 2 16:47:20] WARNING[22849] app_dial.c: Unable to create channel of type 'SIP' (cause 20 - Unknown)
[Aug 2 16:47:20] VERBOSE[22849] logger.c: [Aug 2 16:47:20] == Everyone is busy/congested at this time (1:0/0/1)
[Aug 2 16:47:20] VERBOSE[22849] logger.c: [Aug 2 16:47:20] -- Executing [912042223116@default:3] Hangup("SIP/8001-00000016", "") in new stack
[Aug 2 16:47:20] VERBOSE[22849] logger.c: [Aug 2 16:47:20] == Spawn extension (default, 912042223116, 3) exited non-zero on 'SIP/8001-00000016'
[Aug 2 16:47:20] VERBOSE[22849] logger.c: [Aug 2 16:47:20] -- Executing [h@default:1] DeadAGI("SIP/8001-00000016", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL----------") in new stack
[Aug 2 16:47:20] VERBOSE[22849] logger.c: [Aug 2 16:47:20] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ---------- completed, returning

In my Carrier the configuration is:

Carrier ID: 0526XXXXX

Carrier Name: 0526XXXXX

Carrier Description: 0526XXXXX NET4

Registration String: register => 0526XXXXX:password@202.71.134.13/0526XXXXX

Template ID: SIP_generic

Account Entry:

[goautodial]
disallow=all
allow=g729
allow=alaw
allow=ulaw
type=friend
username=0526XXXXX
fromuser=0526XXXXX
secret=password
host=202.71.134.13
fromdomain=202.71.134.13
dtmfmode=rfc2833
callerid=0526XXXXX

Protocol: SIP

Globals String:

Dialplan Entry: exten => _91XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91XXXXXXXXXX,2,Dial(SIP/${EXTEN:1}@goautodial,,tTo)
exten => _91XXXXXXXXXX,3,Hangup

Server IP: 192.168.1.2

Active: Y

In CLI settings-->

Privilege: Command

ActionID: c5479d74942edc7049e3dc8f8c6cefd4
Host Username Refresh State Reg.Time
202.71.134.13:5060 0526XXXXX 105 Registered Tue, 02 Aug 2011 17:07:04
--END COMMAND--


Please anyone help me out... please...

PostPosted: Tue Aug 02, 2011 4:39 pm
by williamconley
[goautodial]
disallow=all
allow=g729
allow=alaw
allow=ulaw
type=friend
username=0526XXXXX
fromuser=0526XXXXX
secret=password
host=202.71.134.13
fromdomain=202.71.134.13
dtmfmode=rfc2833
callerid=0526XXXXX

Protocol: SIP

Globals String:

Dialplan Entry: exten => _91XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91XXXXXXXXXX,2,Dial(SIP/${EXTEN:1}@goautodial,,tTo)
exten => _91XXXXXXXXXX,3,Hangup
Your globals string is empty.

The "sip context" of [goautodial] is not what belongs in the dialplan entry. Your globals string belongs there.

Set your globals string to "TRUNK9 = SIP/goautodial" and set your second line of the dial plan to:
Code: Select all
exten =>_91XXXXXXXXXX,2,Dial(${TRUNK9}/${EXTEN:1},,tTor)

PostPosted: Wed Aug 03, 2011 3:31 am
by subhadeep
Thanks a lot for the reply... i added the line as u told and even changed the global string, but still its not working, but now im am getting an new log:
chan_sip.c: Peer '8001' is now Reachable. (83ms / 2000ms) :)

And the error goes like this:

Code: Select all
logger.c: [Aug  3 04:22:02]     -- Executing [912042223116@default:2] Dial("SIP/8001-00000002", "SIP/goautodial/12042223116||tTor") in new stack
[Aug  3 04:22:02] WARNING[12652] app_dial.c: Unable to create channel of type 'SIP' (cause 20 - Unknown)
[Aug  3 04:22:02] VERBOSE[12652] logger.c: [Aug  3 04:22:02]   == Everyone is busy/congested at this time (1:0/0/1)
[Aug  3 04:22:02] VERBOSE[12652] logger.c: [Aug  3 04:22:02]     -- Executing [912042223116@default:3] Hangup("SIP/8001-00000002", "") in new stack
[Aug  3 04:22:02] VERBOSE[12652] logger.c: [Aug  3 04:22:02]   == Spawn extension (default, 912042223116, 3) exited non-zero on 'SIP/8001-00000002'
[Aug  3 04:22:02] VERBOSE[12652] logger.c: [Aug  3 04:22:02]     -- Executing [h@default:1] DeadAGI("SIP/8001-00000002", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL----------") in new stack
[Aug  3 04:22:03] VERBOSE[12652] logger.c: [Aug  3 04:22:03]     -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----20-----CHANUNAVAIL---------- completed, returning 0

Please help me out... :(

PostPosted: Wed Aug 03, 2011 9:49 am
by williamconley
try sip debug in asterisk and see if it will give you the reason it cannot create that channel.

PostPosted: Wed Aug 03, 2011 3:15 pm
by subhadeep
williamconley wrote:try sip debug in asterisk and see if it will give you the reason it cannot create that channel.

Thanks for all the help and replies... a local consultant solved the problem... he said there was a problem with the dial plan only and even a codec was missing... :)

PostPosted: Thu Oct 20, 2011 6:52 pm
by skramer
Subhadeep,
Do you know EXACTLY how your dialplan was fixed? Looks like I am having the SAME issue from a new install. see here:

http://www.vicidial.org/VICIDIALforum/v ... +executing

Please let us know

PostPosted: Fri Oct 21, 2011 11:26 am
by skramer
This has been solved see attached thread.