The programming required isn’t entirely trivial because the code that would detect the X-FAX is seperate from that which would need to generate it.
This only works with early offer SDP, as late offer SDP would require one to know one needed to send X-FAX before you received it![/quote]
Hum… I don’t understand. What is X-FAX ?
I just want, when a phone in my office is ringing since 20 seconds with no response, the incoming call to be transfered to an other, external, number.
Is there a way to do that ? :s
Thanks in advance.
The Dial() application will return to the next step in the dialplan after the timeout. In your sample, the next step is a Hangup(), you will want to add another Dial() statement to get to the desired PSTN number. If you have a SIP trunk, it would be something like ‘Dial(SIP/myproviderinfo/destination_phone_number)’.
Oh, Ok.
I don’t really know how to configure it.
I figured out how to solve this issue directly with the web manager of the phone.
I can add a rule for transferring every unanswered call (after 20 seconds by default) to a phone number (external or not).
Problem unsolved in dialplan, but topic closed
Looks like as well as posting a reply to the wrong thread, I lost my original reply to this thread.
As you’ve already been told, you can just make step three a Dial to the new target. You can also make it a Goto, to the handling for the new target number, as though it had been dialed directly, or you can use Transfer to do a real transfer. I wouldn’t reccommend the last option, as the implementation of transfer is not very good especially as you have already answered.
Note, there is no need for your original step 3 and, in most cases, your step 1 is also undesirable. Also, best current practice is to use n for all except the first priority (step) number.
Thnaks for your advices !
I’ll see what I can do.
I’m not expert on this technology and neither are everyone working with me.
So I may let that as it is just to be sure not to make any mistake.
Provider_Peer = Peer of Friend defined in sip.conf that connects Asterisk to a SIP provider
Phone_Number = External phone number to which you want to transfer a call after first 20 seconds
[internal]
include => default
exten => _XXXXX.,1,Dial(SIP/Provider_Peer/${EXTEN})[/code]
This particular configuation, if used with the normal usage of default and internal, would forward external callers to the external number if they would have rung 3258, but not allowed them access to other external numbers. I have used 3258 for both the extension and device name, but that is against best current security practice.
We want to add a little something to this dialplan :
We want that, after “X” seconds, the call to be tranferred to 3, 4 or 5 different internal numbers…
Is it possible ?