A
A
Alexander Kolomyts2016-11-28 00:22:22
Asterisk
Alexander Kolomyts, 2016-11-28 00:22:22

How to redirect a call from a call group to a cell number?

Good day residents of the portal.
Please tell me how to redirect a subscriber's call to a mobile number.
Yes, I know that the topic is beaten and discussed 100500 times. I have read so many sites and have not found an answer.
The scheme for passing a call to a PBX is simple:
1) A call from an external number goes to call group 200, it contains 2 numbers 100,101, and a mobile number 79811111111#. Call time 15 sec. And there are 4 such schemes - for 4 cities - 4 external, 4 call groups. 8 internal, 4 mobile and 4 outgoing routes. CallerID is affixed on outgoing routes so that each group calls from its own number.
Inbound Routing
DID 000141111
CID any
to Ring Groups: 200 MSK-100-101
Ring Groups: 200 MSK-100-101
List of extensions
100
101
79811111111#
Outbound routing
outbound-MSK
Caller ID (CID) for route - <blank>
Trunk sequence for matched routes msk_000141111 Number
templates
() | [+7XXXXXXXXXX] / 10[01]
(+) | [7XXXXXXXXXX] / 10[01]
() | [8XXXXXXXXXX] / 10[01]
Trunk
msk_000141111
Outgoing CallerID 74992222222
writes in the console

-- Executing [[email protected]:31] Set("Local/[email protected];2", "CDR(cnum)=+79850000000") in new stack
    -- Executing [[email protected]:32] Set("Local/[email protected];2", "CHANNEL(language)=en") in new stack
    -- Executing [[email protected]:2] NoCDR("Local/[email protected];2", "") in new stack
    -- Executing [[email protected]:3] Progress("Local/[email protected];2", "") in new stack
    -- Executing [[email protected]:4] Wait("Local/[email protected];2", "1") in new stack
    -- Local/[email protected];1 is making progress passing it to SIP/000141111-00000166
    -- SIP/100-0000016a is ringing
    -- Executing [[email protected]:5] Playback("Local/[email protected];2", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack
    -- <Local/[email protected];2> Playing 'silence/1.gsm' (language 'en')
    -- <Local/[email protected];2> Playing 'cannot-complete-as-dialed.gsm' (language 'en')
    -- <Local/[email protected];2> Playing 'check-number-dial-again.gsm' (language 'en')
    -- Executing [[email protected]:6] Wait("Local/[email protected];2", "1") in new stack
    -- Executing [[email protected]:7] Congestion("Local/[email protected];2", "20") in new stack
    -- Local/[email protected];1 is circuit-busy
  == Spawn extension (from-internal, 79811111111, 7) exited non-zero on 'Local/[email protected];2'
    -- Executing [[email protected]:1] Macro("Local/[email protected];2", "hangupcall") in new stack

that he cannot make this call to his mobile. And this is killed by the fact that only 100-101, 102-103, 104-105, 106-107 can go through the outbound routing rules. But if I remove CallerID from ref mar-and then everyone will call me through this route. But this is not an option either. because each mobile phone needs to be called through its own trunk.
Made a virtual number and FollowMe on mobile - the same result. If you call locally, then the redirection to the mobile goes.
Please help where I missed something.
PS And another question: is it possible to somehow transfer the subscriber's number when forwarding to a mobile one?
CentOS Linux release 7.2.1511 (Core), Asterisk 13.10.0, FreePBX
13.0.190.7

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
S
silverjoe, 2016-11-28
@13Arhangel

Do you have a template

Number templates
() | [7XXXXXXXXXX] / 10[01]

works only for numbers 10[01], i.e. only they can call on that route.
And CDR(cnum)=+79850000000 does not fit this pattern

A
Alexander Kolomyts, 2016-11-28
@13Arhangel

Sorry, I added other templates to the question. But on automatic telephone exchange they were initially.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question