Number not in service when agent answers phone after logon

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Number not in service when agent answers phone after logon

Postby nicdevlin » Thu Jul 23, 2015 12:44 am

Hi,

I have just installed VICI Dialer and have read through the manuals and several youtube videos as well, and I am at the stage where I am testing my first user.

Upon logging into vicidial portal with the phone and user credentials the sip softphone rings. When answered it recites a pre-recorded message that states "The number you have rang is not in service" and then hangs up.

Agent is then loaded into the select groups area before proceeding the the agent area.

I'm located in Australia.

Version Details:
Code: Select all
Asterisk 1.8.29.0-vici


CLI Output during error:
Code: Select all
[Jul 23 15:25:33]     -- Executing [8600051@trunkinbound:1] AGI("SIP/101-00000001", "agi-DID_route.agi") in new stack
[Jul 23 15:25:33]     -- Launched AGI Script /usr/share/asterisk/agi-bin/agi-DID_route.agi
[Jul 23 15:25:33]     -- <SIP/101-00000001>AGI Script agi-DID_route.agi completed, returning 0
[Jul 23 15:25:33]     -- Executing [9998811112@default:1] Wait("SIP/101-00000001", "2") in new stack
[Jul 23 15:25:34]   == Manager 'sendcron' logged off from 127.0.0.1
[Jul 23 15:25:35]     -- Executing [9998811112@default:2] Answer("SIP/101-00000001", "") in new stack
[Jul 23 15:25:35]     -- Executing [9998811112@default:3] Playback("SIP/101-00000001", "ss-noservice") in new stack
[Jul 23 15:25:35]     -- <SIP/101-00000001> Playing 'ss-noservice.gsm' (language 'en')
[Jul 23 15:25:40]     -- Executing [9998811112@default:4] Playback("SIP/101-00000001", "vm-goodbye") in new stack
[Jul 23 15:25:40]     -- <SIP/101-00000001> Playing 'vm-goodbye.gsm' (language 'en')
[Jul 23 15:25:41]     -- Executing [9998811112@default:5] Hangup("SIP/101-00000001", "") in new stack
[Jul 23 15:25:41]   == Spawn extension (default, 9998811112, 5) exited non-zero on 'SIP/101-00000001'
[Jul 23 15:25:41]     -- Executing [h@default:1] AGI("SIP/101-00000001", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in new stack
[Jul 23 15:25:41]     -- <SIP/101-00000001>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16--------------- completed, returning 0
[Jul 23 15:25:54] NOTICE[24203]: chan_local.c:973 local_call: No such extension/context 55558600051@ while calling Local channel
[Jul 23 15:25:54] NOTICE[24203]: channel.c:5529 __ast_request_and_dial: Unable to call channel Local/55558600051@


Account Entry:

Code: Select all
[XXXXXX]
disallow=all
allow=ulaw
type=friend
username=700622
secret=xxxxxxxxxx
host=xx.xx.xx.xx
dtmfmode=rfc2833
context=trunkinbound


Dial Plan Entry:

Code: Select all
exten =>_61XXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten =>_61XXXXXXXXX,2,Dial({TRUNK9}/${EXTEN},,tTo)
exten =>_61XXXXXXXXX,3,Hangup


Phone SIP Template:

Code: Select all
type=friend
host=dynamic
canreinvite=no
disallow=all
allow=ulaw


If I switch the DID to dial the extension of the soft phone and bypass the campaign it rings and works fine, however trying to dial out on the softphone also results in the error above as well.

What am I missing here?

Please let me know if I have missed out any further info that may assist with troubleshooting my issue.

Thanks in advance.
nicdevlin
 
Posts: 15
Joined: Thu Jul 23, 2015 12:29 am

Re: Number not in service when agent answers phone after log

Postby mflorell » Thu Jul 23, 2015 5:51 am

For agent phones you need to set the contexts to 'default'
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Number not in service when agent answers phone after log

Postby nicdevlin » Thu Jul 23, 2015 6:21 pm

Hi Matthew thanks for your reply.

I have added the "context=default" line into the sip template.

Code: Select all
type=friend
host=dynamic
canreinvite=no
disallow=all
allow=ulaw
context= default


This is the output the CLI shows now.


Code: Select all
[Jul 24 09:19:20]   == Using SIP RTP CoS mark 5
[Jul 24 09:19:20] NOTICE[21700]: chan_sip.c:23838 handle_request_invite: Call from '101' (10.10.0.25:49419) to extension '32773636' rejected because extension not found in context 'default'.


Am I missing something simple here?
nicdevlin
 
Posts: 15
Joined: Thu Jul 23, 2015 12:29 am

Re: Number not in service when agent answers phone after log

Postby mflorell » Fri Jul 24, 2015 6:26 am

Don't use a template, make sure the Phone entries have their "Exten Context" and "Phone context" set to default.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Number not in service when agent answers phone after log

Postby nicdevlin » Sun Jul 26, 2015 6:56 pm

Thanks again Matt, I have adjusted the template for the phones to NONE and added default into the Exten and Phone Context fields on the phones.

This has resolved the issue of not being able to dial internal extensions, that seems to be working fine now since the above adjustment.

However, any external call still results in the CLI displaying this error.

Code: Select all
[Jul 27 09:46:06] NOTICE[2703]: chan_sip.c:23838 handle_request_invite: Call from '102' (10.10.0.250:61139) to extension '32773636' rejected because extension not found in context 'default'.


Would this have anything to do with my dial plan entry?
nicdevlin
 
Posts: 15
Joined: Thu Jul 23, 2015 12:29 am

Re: Number not in service when agent answers phone after log

Postby mflorell » Sun Jul 26, 2015 7:34 pm

That one is a diaplan issue, What country are you calling in?
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Number not in service when agent answers phone after log

Postby nicdevlin » Sun Jul 26, 2015 8:39 pm

Australia, I have attempted to call 0732773636 and 32773636 with the same problem.
nicdevlin
 
Posts: 15
Joined: Thu Jul 23, 2015 12:29 am

Re: Number not in service when agent answers phone after log

Postby mflorell » Mon Jul 27, 2015 6:52 am

What entries do you have for your dialplan right now to dial out through your carrier?
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Number not in service when agent answers phone after log

Postby nicdevlin » Mon Jul 27, 2015 6:13 pm

Code: Select all
exten =>_61XXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten =>_61XXXXXXXXX,2,Dial({TRUNK9}/${EXTEN},,tTo)
exten =>_61XXXXXXXXX,3,Hangup
nicdevlin
 
Posts: 15
Joined: Thu Jul 23, 2015 12:29 am

Re: Number not in service when agent answers phone after log

Postby mflorell » Mon Jul 27, 2015 9:07 pm

Looks like the numbers you are trying to dial don't match what you have in your dialplan.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Number not in service when agent answers phone after log

Postby nicdevlin » Tue Jul 28, 2015 2:19 am

I have been given this dial plan from my carrier, however I have no idea where this would fit in at all?

Code: Select all
(*xx.|000S0|0011x.|1[38]00xxxxxxS0|13[1-9]xxxS0|0[23478]xxxxxxxxS0|[2-9]xxxxxxxS0|xx.)
nicdevlin
 
Posts: 15
Joined: Thu Jul 23, 2015 12:29 am

Re: Number not in service when agent answers phone after log

Postby mflorell » Tue Jul 28, 2015 6:01 am

That looks like an allowed keymap for a VOIP handset phone actually.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Number not in service when agent answers phone after log

Postby nicdevlin » Wed Jul 29, 2015 2:21 am

I have amended my dial plan to the following:

Code: Select all
exten => _9XXXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9XXXXXXXXXXX,2,Dial({TRUNK9}/${EXTEN},,tTo)
exten => _9XXXXXXXXXXX,3,Hangup



I am now able to dial my office number 9 61 7 32773636 which I believe is the correct way to dial it? I hope?

I now get another error message, so I believe I am one step closer.

Code: Select all
[Jul 29 17:13:06]     -- Executing [961732773636@default:1] AGI("SIP/101-00000000", "agi://127.0.0.1:4577/call_log") in new stack
[Jul 29 17:13:06]     -- <SIP/101-00000000>AGI Script agi://127.0.0.1:4577/call_log completed, returning 0
[Jul 29 17:13:06]     -- Executing [961732773636@default:2] Dial("SIP/101-00000000", "{TRUNK9}/961732773636,,tTo") in new stack
[Jul 29 17:13:06] WARNING[19761]: channel.c:5754 ast_request: No channel type registered for '{TRUNK9}'
[Jul 29 17:13:06] WARNING[19761]: app_dial.c:2345 dial_exec_full: Unable to create channel of type '{TRUNK9}' (cause 66 - Channel not implemented)
[Jul 29 17:13:06]   == Everyone is busy/congested at this time (1:0/0/1)
[Jul 29 17:13:06]     -- Executing [961732773636@default:3] Hangup("SIP/101-00000000", "") in new stack
[Jul 29 17:13:06]   == Spawn extension (default, 961732773636, 3) exited non-zero on 'SIP/101-00000000'
[Jul 29 17:13:06]     -- Executing [h@default:1] AGI("SIP/101-00000000", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----66-----CHANUNAVAIL----------") in new stack
[Jul 29 17:13:06]     -- <SIP/101-00000000>AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----66-----CHANUNAVAIL---------- completed, returning 0


Thanks so much for your help so far Matt.
nicdevlin
 
Posts: 15
Joined: Thu Jul 23, 2015 12:29 am

Re: Number not in service when agent answers phone after log

Postby nicdevlin » Thu Jul 30, 2015 7:53 pm

Would anyone be able to point out what I have missed here?
nicdevlin
 
Posts: 15
Joined: Thu Jul 23, 2015 12:29 am


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 80 guests