[asterisk-dev] Dial( )
Nir Simionovich
nir.simionovich at gmail.com
Tue May 5 17:01:32 CDT 2009
I agree with Russell, this is well within the realm of the dialplan to
handle, for example:
exten =>
_X.,1,Dial(Local/12345678^PRV1^30 at Local_SIP&Local/3456798^g1^30 at Local_DAHDI)
[Local_SIP]
exten => _X.,1,Set(ANI=CUT(EXTEN,^,1))
exten => _X.,n,Set(PEER=CUT(EXTEN,^,2))
exten => _X.,n,Set(TIMEOUT=CUT(EXTEN,^,3))
exten => _X.,n,Dial(SIP/${PEER}/${ANI},${TIMEOUT})
[Local_DAHDI]
exten => _X.,1,Set(ANI=CUT(EXTEN,^,1))
exten => _X.,n,Set(SPAN=CUT(EXTEN,^,2))
exten => _X.,n,Set(TIMEOUT=CUT(EXTEN,^,3))
exten => _X.,n,Dial(DAHDI/${SPAN}/${ANI},${TIMEOUT})
This is just an example, but you should get the general idea of how to
do this. In any case, this
definitely doesn't belong on the DEV list.
Thread closed ;-)
Nir S
Russell Bryant wrote:
> On May 5, 2009, at 2:41 PM, Chandrakant Solanki wrote:
>
>
>> But actual requirement is like
>>
>> Dial( SIP/Number&DAHDI/g0/Number&IAX/Number&IAX/Number,30,options)
>>
>> In above scenario, for every channel I want different timeout period..
>> like for SIP 10, Dahdi 30, IAX 100.
>>
>> What kind of changes occurred in dialplan or may be in app_dial.c
>> file.
>>
>> I am newbie for asterisk, so help me, If changes occurred in
>> dialplan... can u give me short example for the same scenario using
>> dialplan if possible..
>>
>
>
> I have already indicated that this is easily done in the dialplan
> without any changes to the code. If you need further help with
> implementation details, please use the asterisk-users list.
>
> --
> Russell Bryant
> Digium, Inc. | Senior Software Engineer, Open Source Team Lead
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
> Check us out at: www.digium.com & www.asterisk.org
>
>
>
>
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>
More information about the asterisk-dev
mailing list