PRI connection

63 views
Skip to first unread message

Sanil S

unread,
Nov 10, 2008, 6:42:10 AM11/10/08
to Utah Asterisk Users Group
Hello..
My PRI connection is working fine. But when I call to a local number,
I am getting an error message.

Attempting call on Zap/g0/9895270073 for s@from-pstn:1 (Retry 3)
-- Requested transfer capability: 0x00 - SPEECH
-- Channel 0/1, span 1 got hangup request, cause 3
-- Hungup 'Zap/1-1'
[Nov 10 16:49:16] NOTICE[10314]: pbx_spool.c:355 attempt_thread: Call
failed to go through, reason (1) Hangup

But I can dial to a STD number, call receives the destination. In
India normally numbers are 10 digit numbers. So for dialing a STD
number I have to add prefix '0'. So when I dial a STD number by using
10 digit number the call will receive. This is because of the fact
that prefix '0' is added with all calls.

Due to this prefix '0', when I dial a local number, asterisk can't
find a route.

Please suggest me a solution for this.

Thanks
SaNIL

jeremy....@gmail.com

unread,
Dec 14, 2008, 3:18:09 AM12/14/08
to Utah Asterisk Users Group
It sounds like you could use a dialplan tutorial to learn how to route
your outgoing calls and either add (or don't add) extra numbers
depending on the destination. Something like this:

exten => _989NXXXXXX,1,Macro(dialout-trunk,1,0${EXTEN},,)
exten => _989NXXXXXX,n,Macro(outisbusy,)

This example (when added in the correct context, and it assumes that
Zap/g0 is accessible as trunk #1) should add a zero to all numbers
starting with 989 (notice the 0 before ${EXTEN}). There are much
better dialplan writers out there, I have taken this from a
configuration generated by FreePBX in my own system, then modified it
for your application. I hope this helps get you started, but do a
Google search for "asterisk dialplan tutorial" and I think you'll find
a lot of useful information.

Good luck!
Jeremy

Sanil S

unread,
Dec 14, 2008, 3:22:08 AM12/14/08
to ut...@googlegroups.com
Hello Jerey....

Thanks for your reply.
--
Sanil S
Technology Consultant
Co-Founder: http://www.mobme.in
Blog: http://www.iamatechie.com
Linked In: http://www.linkedin.com/in/sanilchandran
Reply all
Reply to author
Forward
0 new messages