SOLVED ViCO TRUNK doesn't work

JimmyKhine

Member
Joined
Jun 23, 2016
Messages
40
Reaction score
0
Dear all,

I need your support. Currently I am running latest version of Incredible PBX on latest version of Centos. I don't what issue is there but the unique TRUNK here can't dial out at all. It always have the message " Forbidden " on the Log.
 

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,540
Reaction score
729
Dear all,

I need your support. Currently I am running latest version of Incredible PBX on latest version of Centos. I don't what issue is there but the unique TRUNK here can't dial out at all. It always have the message " Forbidden " on the Log.

Please post the relevant portion of the log.
 

JimmyKhine

Member
Joined
Jun 23, 2016
Messages
40
Reaction score
0
Hi Bill

Here is what I have:

-- Called SIP/NBC/9000254208600000
[2016-08-02 21:01:19] WARNING[2063][C-00000297]: chan_sip.c:23843 handle_respons e_invite: Received response: "Forbidden" from '<sip:[email protected] m>;tag=as77e4c12e'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:23] NoOp("SIP/122-000004bb", "Dial faile d for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 21") in new st ack
-- Executing [s@macro-dialout-trunk:24] GotoIf("SIP/122-000004bb", "0?contin ue,1:s-CHANUNAVAIL,1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("SIP/122-000004bb", " RC=21") in new stack
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("SIP/122-000004bb", "21,1") in new stack
-- Goto (macro-dialout-trunk,21,1)
-- Executing [21@macro-dialout-trunk:1] Goto("SIP/122-000004bb", "continue,1 ") in new stack
-- Goto (macro-dialout-trunk,continue,1)
 

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,540
Reaction score
729
Some reasons the provider will send Forbidden is if you are using the wrong password, are out of funds, or calling from an unauthorized IP.
 

JimmyKhine

Member
Joined
Jun 23, 2016
Messages
40
Reaction score
0
Bill. It can't be some reasons as you explained

The information on the TRUNK, I could register with X-lite and it worked well to call out. Also, the provider & me communicated via phone & email, hence once again, it can't be wrong password or out of fund. But as the told me, they don't authorize the IP. The information they provided to me that was SIP account, no need to authorize
 

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,540
Reaction score
729
If not wrong password, it could be that you are sending the wrong username or From header.
 

JimmyKhine

Member
Joined
Jun 23, 2016
Messages
40
Reaction score
0
They told me that their end will receive the number 254208600000 and if I would want to call out using TRUNK, i needed to add the prefix 90 and then country code 00 to dial international number so there will be 9000
 

JimmyKhine

Member
Joined
Jun 23, 2016
Messages
40
Reaction score
0
When I called using X-lite, I don't need to press any prefix, just dialed 254208600000 and it connected
 

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,540
Reaction score
729
When I called using X-lite, I don't need to press any prefix, just dialed 254208600000 and it connected

Here is your solution. Fix up your outbound route and/or trunk dialing rules so that it just sends the PSTN part (starting with 254) and strips the 90 prefix and 00 international code.
 

JimmyKhine

Member
Joined
Jun 23, 2016
Messages
40
Reaction score
0
I have tried to change the prefix to 900, 9, 000, 9000, 90 but it still doesn't work at all
 

JimmyKhine

Member
Joined
Jun 23, 2016
Messages
40
Reaction score
0
Here is your solution. Fix up your outbound route and/or trunk dialing rules so that it just sends the PSTN part (starting with 254) and strips the 90 prefix and 00 international code.
Do you have any sample? This TRUNK is not only able to call kenya, it can call other countries on Africa as well

As you told me, I have put the prepend as 254 and prefix as my own number 6 so when I dial I just pressed 2086 00000 and it still doesn't work at all
 

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,540
Reaction score
729
There are many tutorials out there how to set up outbound routes and trunk dialing rules in FreePBX. I am not familiar with PSTN dialing in Africa and so I do not have an example for you.
 

JimmyKhine

Member
Joined
Jun 23, 2016
Messages
40
Reaction score
0
Bill.

I am using more than 5 providers right now and I have set all the setting from trunk to outbound route. All of them are working well
 

JimmyKhine

Member
Joined
Jun 23, 2016
Messages
40
Reaction score
0
I am using it to call out daily, however, when I switch to this TRunk. It doesn't work
 

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,540
Reaction score
729
To be more clear about it, I'm saying to configure the outbound route and/or the trunk (you can manipulate the dialed number in both places) so that only 254208600000 is sent to the provider.
 
Joined
Nov 14, 2008
Messages
1,398
Reaction score
320
I think Bill has covered it all... Some providers might kick it back if you don't have the right codec. Watch the CLI and use the trunk or outbound route dialing rules to construct the number you need based on what you want your users to dial. Providers cary as to what they want for a given number.
 

JimmyKhine

Member
Joined
Jun 23, 2016
Messages
40
Reaction score
0
I have fixed it. The issue here from the password doesn't have "@" and I forgot to make register string
Anyway, thank you for your suggestion brian & bill
 

Members online

No members online now.

Forum statistics

Threads
25,802
Messages
167,720
Members
19,232
Latest member
voiplads
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top