NO JOY One trunk with multiple numbers

Gertjan

Member
Joined
Oct 7, 2014
Messages
43
Reaction score
0
Hi,

for a customer i have one trunk the provider gave me. (3starsnet)
On that trunk there are multiple numbers linked to within the provider.

For incoming calls this is no problem, i made a inbound route for each number.
But for outbound calling i have a problem that every extension have its own number.

Do i have to made multiple outbound routes to that trunk with the right number?

I also tried to give the extension an outbound CID but with no joy.

Can anyone help me with this?
Thanks in advance!
 

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,534
Reaction score
727
I also tried to give the extension an outbound CID but with no joy.
This is the right way to do it. You just need to figure out why there's "no joy." Check the Asterisk logs and see whether the correct caller ID is being passed the whole way to the trunk. Make sure you don't have the trunk set to override caller ID from the extensions.
 

Gertjan

Member
Joined
Oct 7, 2014
Messages
43
Reaction score
0
Hi,

ok i had a look to my trunk and the CID Options is on Allow any CID and default settings.
On my outbound route everything is basic so "override Extension" is NOT marked.

on my extension the only thing i did was filled in the outbound CID.

Below we have the asterisk log, there you can see that the CID was given to that extension.

Can i look somewhere else if i did something wrong?

i have changed the number with an "x"
So you can see i want to give the outbound caller ID with at the end "120" and my outgoing trunk ends with the "171"
I think that this seems ok?

2015-08-18 17:38:27] VERBOSE[20220][C-00000be3] pbx.c: -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/400-00001dd4", "0?Set(CALLERID(all)=)") in new stack
[2015-08-18 17:38:27] VERBOSE[20220][C-00000be3] pbx.c: -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/400-00001dd4", "1?Set(CALLERID(all)=02xxxx120)") in new stack
[2015-08-18 17:38:27] VERBOSE[20220][C-00000be3] pbx.c: -- Executing [s@macro-outbound-callerid:16] ExecIf("SIP/400-00001dd4", "0?Set(CALLERID(all)=)") in new stack
[2015-08-18 17:38:27] VERBOSE[20220][C-00000be3] pbx.c: -- Executing [s@macro-outbound-callerid:17] ExecIf("SIP/400-00001dd4", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
[2015-08-18 17:38:27] VERBOSE[20220][C-00000be3] pbx.c: -- Executing [s@macro-outbound-callerid:18] Set("SIP/400-00001dd4", "CDR(outbound_cnum)=02xxxx120") in new stack
[2015-08-18 17:38:27] VERBOSE[20220][C-00000be3] pbx.c: -- Executing [s@macro-outbound-callerid:19] Set("SIP/400-00001dd4", "CDR(outbound_cnam)=") in new stack
[2015-08-18 17:38:27] VERBOSE[20220][C-00000be3] pbx.c: -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/400-00001dd4", "0?sub-flp-13,s,1()") in new stack
[2015-08-18 17:38:27] VERBOSE[20220][C-00000be3] pbx.c: -- Executing [s@macro-dialout-trunk:13] Set("SIP/400-00001dd4", "OUTNUM=0489xxxx2") in new stack
[2015-08-18 17:38:27] VERBOSE[20220][C-00000be3] pbx.c: -- Executing [s@macro-dialout-trunk:14] Set("SIP/400-00001dd4", "custom=SIP/02xxx171") in new stack
[2015-08-18 17:38:27] VERBOSE[20220][C-00000be3] pbx.c: -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/400-00001dd4", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
[2015-08-18 17:38:27] VERBOSE[20220][C-00000be3] pbx.c: -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/400-00001dd4", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
[2015-08-18 17:38:27] VERBOSE[20220][C-00000be3] pbx.c: -- Executing [s@macro-dialout-trunk:17] Macro("SIP/400-00001dd4", "dialout-trunk-predial-hook,") in new stack
[2015-08-18 17:38:27] VERBOSE[20220][C-00000be3] pbx.c: -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/400-00001dd4", "") in new stack
[2015-08-18 17:38:27] VERBOSE[20220][C-00000be3] pbx.c: -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/400-00001dd4", "0?bypass,1") in new stack
[2015-08-18 17:38:27] VERBOSE[20220][C-00000be3] pbx.c: -- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/400-00001dd4", "1?Set(CONNECTEDLINE(num,i)=0489xxxx2)") in new stack
[2015-08-18 17:38:27] VERBOSE[20220][C-00000be3] pbx.c: -- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/400-00001dd4", "1?Set(CONNECTEDLINE(name,i)=CID:02xxxx120)") in new stack
[2015-08-18 17:38:27] VERBOSE[20220][C-00000be3] pbx.c: -- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/400-00001dd4", "0?customtrunk") in new stack
[2015-08-18 17:38:27] VERBOSE[20220][C-00000be3] pbx.c: -- Executing [s@macro-dialout-trunk:22] Dial("SIP/400-00001dd4", "SIP/02xxx171/0489xxxx2,300,Tt") in new stack
 

billsimon

Well-Known Member
Joined
Jan 2, 2011
Messages
1,534
Reaction score
727
That looks right to me. Maybe the provider is overriding the caller ID. Check with them next.
 

Gertjan

Member
Joined
Oct 7, 2014
Messages
43
Reaction score
0
ok i checked with the provider but they say that their configuration is ok.

they tested it with Zoiper en they succesfully called out with the different CID linked to my trunk

has anybody another idea what i'm doing wrong?

so in my pbx i have one trunk (with 10 linked number) - one outbound route - and in the different extensions i filled in the outbound CID.

Thanks in advance!
 

Gertjan

Member
Joined
Oct 7, 2014
Messages
43
Reaction score
0
the problem still persist.

Could it be by my outgoing peer details on my trunk?

username=02xxxx171
type=peer
secret=password
rfc2833compensate=yes
nat=yes
insecure=very
host=1x8.66.8x.19
fromuser=02xxxx171
fromdomain=voipx.3starsnet.com
dtmfmode=rfc2833
disallow=all
canreinvite=no
allow=alaw&ulaw
 

randy7376

Defnyddiwr Gweithredol
Joined
Sep 29, 2010
Messages
864
Reaction score
144
Gertjan

I had a similar issue a while back. Try removing/commenting out the line with fromuser= only.
 

Members online

Forum statistics

Threads
25,782
Messages
167,509
Members
19,202
Latest member
pbxnewguy
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