How to dial an outgoing code automatically ??

Status
Not open for further replies.

tucanico

New Member
May 28, 2021
16
1
3
61
Hello, I have a fusion extension (100) (let's call it PBXA) in which a trunk from another exchange is registered (let's call it PBXB). I can make calls between extensions of both exchanges. But the call from fusion ends in the DISA of the PBXB, example the extension 25 of fusion calls to the 31 of PBXB, then 25 dial 100, DISA answers and 25 dial 31 and 25 of A speaks with 31 of B. Now, to that 25 uses a PBXB PSTN trunk when DISA answers you must dial *47*CODE + 0 + num. How can I make 100 automatically dial *47*CODE (CODE = 1234 for example: *47*123404734132 where 4734132 is local number to call and 0 is to acced to PSTN). I know it is a dial plan issue but I am new to fusion and have tried several things that have not worked. Thanks !!
 

Architect

New Member
Jun 1, 2021
26
4
3
52
Just want to make sure I’m understanding your question...

Do you want the dialplan to insert the prefix *47*12340 in front of any number dialed?
 

tucanico

New Member
May 28, 2021
16
1
3
61
Hello, thanks for answering!! Yes. I need you to dial that code because it is the access to the PSTN lines of that central. Currently I do it by dialing manually. That is to say: disk 100, DISA attends, disk * 47 * 12340 + number. The 0 is to take the PSTN line.
 

Architect

New Member
Jun 1, 2021
26
4
3
52
You could do something like this in your dialplan... the person must dial 47 + number for the executed dial string to be *47*12340 + number
  • condition >> destination_number = ^47?(\d{7})$
  • action >> bridge = sofia/gateway/{your gateway here}/*47*12340$1
The other option would be to just have the person dial the number by itself, and have the executed dial string input the *47*12340 regardless...
  • condition >> destination_number = ^(\d{7})$
  • action >> bridge = sofia/gateway/{your gateway here}/*47*12340$1
Do either of these help you achieve what you need?
 

tucanico

New Member
May 28, 2021
16
1
3
61
ok, thanks a lot, I'm going to try this now. The only difference is that I am not leaving through a gateway but through a merge extension (10000), which provides service to an external SIP line from the other central. In the string bridge = sofia / gateway / {your gateway here} / * 47 * 12340 $ 1 I'm going to try putting bridge = sofia / gateway / 10000 / * 47 * 12340 $ 1, I have a bridge as shown in the attached screen print . I will keep abreast of the results.
thanks a lot !!Captura de pantalla 2021-06-14 144848.png
 

tucanico

New Member
May 28, 2021
16
1
3
61
I had created a dial plan that was working at least until accessing the DISA of the other panel but it did not send the dtmf. I'm going to try to modify it or create another one. I had selected that the user dial 5 + number to exit.Captura de pantalla 2021-06-14 151055_DIALPLAN.png
 

Architect

New Member
Jun 1, 2021
26
4
3
52
I find with send dtmf that this works best fo rme...

I usually put a space in between the digits for send_dtmf because if I don’t the digits might get presented too fast.

Screen Shot 2021-06-14 at 15.01.34.png
 

tucanico

New Member
May 28, 2021
16
1
3
61
I have tried. the call goes out but is cut off. If I disc manually and very slowly it calls without problems. I'm going to rest a bit. then I go on and see maybe how to determine the transmission time of dtmf. it may take longer to emit the dtmf tone. In active calls application column it says: send dtmf * 47 * 12340number. I will keep you posted. Greetings.
Captura de pantalla 2021-06-14 185923.png
 

Attachments

  • discando por 10000.png
    discando por 10000.png
    61.6 KB · Views: 2
Status
Not open for further replies.