Outbound

Hello everyone

I have one i hope simple question

Twenty-first number of my “sip number” decides of the route

For example if 21st is 0 go to Fixed Cellular Terminal if 21st is 1 go to ,

In my old FreePBX 2.7.0.0 my dial paterns was like this XXXXXXXXXXXXXXXXXXXX0. go somewhere ( use “trunk0” )

next one was XXXXXXXXXXXXXXXXXXXX1. go somewhere ( use “trunk1” )
…and it was working perfectly.

Can anyone tell me how to do it in FreePbx Distro ?

Sorry for my english i hope is clear:)

sorry it’s not clear. 21st?
what for number as example would you dial? 21-numbers? to reach someone?

201203091952135000975817570090 this is example of sip number when im calling thorough X-lite, last 9 numbers are phone number - 817570090 .

On 21st place of sip number there is 5 so its mean call thorough trunk number 5
If its 4 call thorough trunk number 4…

It was like this in my old FreePbx and i want to do this in FreePbx Disro but i dont know how…

for trunk nr. 5 = (20 -x) xxxxxxxxxxxxxxxxxxxx5|.

for trunk nr. 6 = (20 -x) xxxxxxxxxxxxxxxxxxxx6|.

etc.

thx for response i will try it tomorow and let you know. I hope it will helps :slight_smile:

Still something wrong ( service Unavailable )

I did it like this

in prepend i put 20-X

in prefix XXXXXXXXXXXXXXXXXXXX5

in match pattern . <= dot

Its ok ?

Can you tell me what does it mean 20-X ? what its doing ?

X= any integer between 0 and 9

Ok i know what X is, it can be 0 1 2 3 4 ,but what 20-X means how it works ? and did i put the corect parts in the corect fields ?

That was a user showing you their math.

Nothing should be in prepend field.

so how it should be in my case ? what and where a should put ?

You don’t have a prefix or a prepend so just put in the match pattern as you have written in then route it to the trunk.

It still works the same way as the old version, just the interface is cleaner.

Does that make sense?

xxxxxxxxxxxxxxxxxxxx5|. ok i have this in the match pattern but match pattern doesnt approve the " | " PBX is removeing it after submit and im getting xxxxxxxxxxxxxxxxxxxx5. and its still not working as it should be.

After calling im getting “service Unavailable”

Take a look at the “tooltip” or hint for the field by hovering your pointer over the help area and you will get info on the field. You need to understand what you are doing and not just placing values in fields.

just put xxxxxxxxxxxxxxxxxxxx1

in the field, nothing else.

I dont have a big knowledge about PBX im still learning but before i had exactly xxxxxxxxxxxxxxxxxxxx1 or xxxxxxxxxxxxxxxxxxxx5 and it was working very well, now its not and i dont know why, and its geting me crazy

Do you have that exact value in the “match pattern” field?

When you dial check the log or the CDR and see what the system is sending to your carrier.

2012-03-10 22:09:09 1331413749.148 SIP 6000 Busy 201203102117043100970502069154 SIP BUSY 00:00

2012-03-10 21:59:05 1331413145.146 SIP 6000 Busy 201203102117043100970502069154 SIP BUSY 00:00

2012-03-10 21:42:18 1331412138.143 SIP 6000 Congestion 201203102117043100975713102783 SIP FAILED

00:04
2012-03-10 21:40:43 1331412043.141 SIP 6000 Congestion 201203102117043100975713102783 SIP FAILED 00:04

2012-03-10 21:38:01 1331411881.139 SIP 6000 Congestion 201203102117043100975713102783 SIP FAILED 00:04

And before was xxxxxxxxxxxxxxxxxxxx5 totaly the same

[2012-03-10 22:11:27] WARNING[9206] pbx.c: Context ‘findmefollow-ringallv2’ tries to include nonexistent context ‘findmefollow-ringallv2-custom’
[2012-03-10 22:11:27] WARNING[9206] pbx.c: Context ‘ext-local-confirm’ tries to include nonexistent context ‘ext-local-confirm-custom’
[2012-03-10 22:11:27] WARNING[9206] pbx.c: Context ‘app-userlogonoff’ tries to include nonexistent context ‘app-userlogonoff-custom’
[2012-03-10 22:11:27] WARNING[9206] pbx.c: Context ‘cidlookup’ tries to include nonexistent context ‘cidlookup-custom’
[2012-03-10 22:11:27] WARNING[9206] pbx.c: Context ‘app-callwaiting-cwon’ tries to include nonexistent context ‘app-callwaiting-cwon-custom’
[2012-03-10 22:11:27] WARNING[9206] pbx.c: Context ‘app-callwaiting-cwoff’ tries to include nonexistent context ‘app-callwaiting-cwoff-custom’
[2012-03-10 22:11:27] WARNING[9206] pbx.c: Context ‘sub-from-ccss’ tries to include nonexistent context ‘sub-from-ccss-custom’
[2012-03-10 22:11:27] WARNING[9206] pbx.c: Context ‘from-ccss-extension’ tries to include nonexistent context ‘from-ccss-extension-custom’
[2012-03-10 22:11:27] WARNING[9206] pbx.c: Context ‘from-ccss-internal’ tries to include nonexistent context ‘from-ccss-internal-custom’
[2012-03-10 22:11:27] WARNING[9206] pbx.c: Context ‘macro-ccss-default’ tries to include nonexistent context ‘macro-ccss-default-custom’
[2012-03-10 22:11:27] WARNING[9206] pbx.c: Context ‘sub-ccss’ tries to include nonexistent context ‘sub-ccss-custom’
[2012-03-10 22:11:27] WARNING[9206] pbx.c: Context ‘ext-local’ tries to include nonexistent context ‘ext-local-custom’
[2012-03-10 22:11:27] WARNING[9206] pbx.c: Context ‘app-campon-toggle’ tries to include nonexistent context 'app-campon-