No Specific number, just to pass the call onto the trunk.
So we are using this for mobiles asking the caller to use their mobile as it is free rather then using the trunk, so after the caller presses the digits, they would get a thankyou and then the number and call would be passed to trunk to complete the call.
I don’t have a clue what your attempting here, but the only place where you can use the Trunks destination is on an Inbound Route, otherwise it will fail as you have already learned. You can create a new Custom Destination with a target of:
And send your caller to this Custom Destination it should work to send the call outbound.
I’m trying to user user interaction before calling mobiles so it is 07.
Here is the worKflow in more detail
User is calling 07XXXXXXXXX
Outbound Route (Dial Plan (07.) >IVR (Digits Pressed)>Announcement>Trunk to pass the call onto the provider.
I don’t have to go to the announcments and can go from the IVR to the outbound trunk, however this dosen’t work either.
I did try your custom destination and this just hanged up the call see the log bellow
Executing [[email protected]:4] NoOp(“SIP/9002-0000019a”, “Playing announcement out to trunk”) in new stack
– Executing [[email protected]:5] Playback(“SIP/9002-0000019a”, “auth-thankyou,noanswer”) in new stack
– <SIP/9002-0000019a> Playing ‘auth-thankyou.ulaw’ (language ‘en’)
– Executing [[email protected]:6] Goto(“SIP/9002-0000019a”, “outbound-allroutes,1”) in new stack
– Goto (outbound-allroutes,s,1)
[2018-09-05 11:57:25] WARNING[C-00000023]: pbx.c:4461 __ast_pbx_run: Channel ‘SIP/9002-0000019a’ sent to invalid extension but no invalid handler: context,exten,priority=outbound-allroutes,s,1
At the IVR the user presses two digits(1*) which if correct forwards the call onto anouncments which works, after the announcment is played the call will then need to go onto an outbound trunk now this is where it fails, it seems like the 07 number the user is dialling isn’t getting through ( as in the number to hand off to the trunk)
UK mobile numbers begin with 07, So the user would dial 07983504466 for example, this would be filtered via dial patterns tot he IVR, where the user has to dial two buttons to pass the call through, then they get a thankyou message, after the thankyou we would like the 07983504466 number the extension/user dialled to be forwarded onto the trunk. The IVR is used because calling uk mobiles on trunk providers isn’t cheap, and the have to press certain digits to allow the call through.
You want to add a PIN to the outbound route for cell phones?
That seems like something the system should do out of the box.
If using a PIN is too easy, you could write a custom context that would simulate a PIN. That way, you could control all aspects of the interaction - the announcement, the get-digits, the comparison, etc.