inquba

outgoing sched_transfer and convert incoming call number to

Jan 23rd, 2014
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. HI hope someone could help I have two task that I can not achieve
  2.  
  3. 1- I have set an inbound route for only one DID. what I want to do this is that the incoming call like [email protected] instead of detect like this transfer or bridge the call but instead of the number that is calling convert to the extension number example [email protected] this way my gsm gateway can dial apropiate number which is not dialing correctly since the call appears like [email protected] even the fact that it has already being transfered to 190 ext
  4.  
  5. 2- I have a gateway that send calls from FusionPbx (192.168.3.100) to this gsm gateway (192.168.3.40)
  6.  
  7. this is the scenario.
  8. An incoming call enter fusionPbx then it ring a ring group with 3 extensions 2 locals and the gsm gateway that dial my cel. this gsm gateway has a chip (mexico telcel ) which can have 3 numbers that are free for 5 minutes then it cost per minute. so I succesful did a dialplan that count 4.5 minutes then it put the call in hold for 4 sec hangup with the gateway and after 4 sec it re-connect the call to cel again. this is a loop that can last forever until i hangup. so no problem here the dialplan
  9.  
  10. condition destination_number ^105$
  11. action sched_transfer +265 142 XML default
  12.  
  13. the conference room that hold the call is
  14.  
  15. condition destination_number ^142$
  16. action sched_transfer +4 105 XML default
  17. action answer
  18. action playback /usr/local/freeswitch/recordings/recording1.wav
  19. action conference Conference-2-192.168.3.100@default
  20.  
  21. this work like a charm for inbound calls
  22.  
  23. what I have not yet is the opposite..... when I from my cel phone call my gsm gateway to connect to fusionpbx and dial out but ALL outbound call I do to put in this same loop 4.5 minutes then send the call to conference room then the system knows to hold the call an re-connect......... any idea on how to achieve this ? remember the gateway is in 192.168.3.40
  24. I had this this but dont work
  25.  
  26. condition ${sip_from_uri} ^[email protected]:5060$
  27. condition destination_number ^(\d{8,14})$
  28. action sched_transfer +26 142 XML default
Advertisement
Add Comment
Please, Sign In to add comment