Asterisk Automatically Dial extension on Smart PHone

Hello Asterisk Support,

Hope you are doing well.

I need your support on this, How to Automatically Dial Extension on Smart Phone like Android and iOS.

Let me brief you my requirement, I have one Virtual Number that is mapped in different Promotion platform, now I need to know the real time traffic analysis using the same virtual number, Is there any alternate way to get it from the Single Virtual number if so Please share?

When Customer call on Virtual Number or DID it has terminated to our Asterisk Calling Server and call patch to agent via Asterisk Outgoing Function but in this scenario we can’t get call conversion analysis via single Virtual number or DID, We need to know the exact call ratio from different promotion platforms, like Google, Facebook, YouTube etc.

I got one solution to fetch this problem in real time that we called it Automatically Dial Extension using Smart Phone , for more details go this URL https://www.lifewire.com/automatically-dialing-extensions-on-android-577619

I am using below dial plan

[incoming]
exten => _X.,1,Gosub(To-Auto-Dial-Exten,s,1)

[To-Auto-Dial-Exten]

 exten => s,1,Set(date_time=${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)})
    same => n,Set(exten_number=${SIP_HEADER(To)})
    same => n,Set(k_number=${CUT(CUT(SIP_HEADER(To),@,1),:,2)})
    same => n,NoOp(${EXTEN} is Running )
    same => n,Progress()
    same => n,Answer()
    same => n,WaitExten()
    same => n,Playback(welcome)
    same => n,Hangup()
 exten => _X.,1,NoOp(${EXTEN} is Running )
    same => n,Playback(digits/0)
    same => n,NoOp(Promotion Platform Name is ${EXTEN})
    same => n,Hangup()

 exten => h,1,NoOp(All Time Hangup in Any calls)
    same => n,NoOp(Custom API will run in this context )
    same => n,Hangup()

Here problem is WaitExten() took time and customer has to wait to talk with agent, I need to overcome this time lag

Example : Dial in this Format 10DigitMobileNumber,EXTEN
9891005409,1001 [First string is 10 digit number after Comma 4 digit extension ]

Please help on this

Asterisk Support is a peer support forum, not a department in a business.

You seem to be going about things in a very complex way without justifying the need to do so. Without that justification, I don’t think I’m going to be able to understand what you are really trying to achieve.

How to Automatically Dial Extension on Smart Phone like Android and iOS.

Setting up dedicated dialing or application initiated dialing on a smart phone is outside the scope of this forum. Maybe you meant something else.

Let me brief you my requirement, I have one Virtual Number that is mapped in different Promotion platform, now I need to know the real time traffic analysis using the same virtual number, Is there any alternate way to get it from the Single Virtual number if so Please share?

The best interpretation I can achieve for this is that it refers to how your service provider implements direct in dialing. Maybe “virtual number” refers to address of record or contact number? From the code, it looks like you are assuming the provider posses the DID number in the To header, but I think we need to see concrete examples to be sure, It is possible you are using a service that is not suited to your purpose.

Calling Progress then immediately calling Answer doesn’t make sense, although is harmless.

same => n,NoOp(${EXTEN} is Running )

Substituting ${EXTEN} here is pointless, as it will always be s!

I can see no point at all in calling WaitExten(). You have not told the caller that they need to key in an extension. If you don’t want WaitExten to wait for a complete number, you need to avoid using “.” in dialplan patterns, so that WaitExten knows when a complete number has been keyed.

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