Need to automate the Provider

hi Team,

I have setup some short codes which when dialed can enter the IVR and automatically send dtmf to reach out to the Extensions on the IVR end.

exten => 221,1,Set(CALLERID(num)=123456789)
exten => 221,n,NoOp(I am in Quick Dialing)
exten => 221,n,Dial(SIP/SIPPROVIDER/987654321,20,M(221))

exten => s,1,Answer()
exten => s,n,Wait(1)
exten => s,n,SendDTMF(252)
exten => s,n,Wait(1)

I am using the SIPPROVIDER hardcodedly. but I want to use the SIPPROVIDER from my trunks automatically.

like I change the order from the outbound route it will automatically use that trunk instead I always come and change the SIP Provider manually

change the dial string to:

local/[email protected]

Also check the D option for the dial application, you can send dtmf without a macro.

Cool that works fine.

Can I do one more thing like I have 50 extensions with 3 digits and I have to change it for everyone.

Can I just make the code one line so that it worked for those specific 3 digit extensions.

like 2XX and 7XX series

You can ref the dialed digit sequence (the exten) by using the var ${EXTEN}, so rewriting the above to work with all numbers between 220 and 229:

exten => _22X,1,Set(CALLERID(num)=123456789)
exten => _22X,n,NoOp(I am in Quick Dialing)
exten => _22X,n,Dial(SIP/SIPPROVIDER/987654321,20,M(${EXTEN}))

That’s something much better

1 Like

It’s not recording the calls under the Trunks recording or outbound route recording.

Can we also record calls from extensions_custom.conf.

2022-03-07 10:29:27 [1646666967.309499] 1004 Dial 259 ANSWERED 01:00

By using the from-internal context, the GUI settings control the recording.

I am writing the code in extension_custom.conf

under the [from-internal-custom]

what else I need to do to get recordings working

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.