okay
this is the dial plan u can test it and let me know if u want more
information ...
and script is attached.

exten=>112,1,AGI(DialNumber.pl|${EXTEN});
exten=>112,2,Dial(SIP/Terminator/${DestNo}|);
exten=>112,3,Hangup();

on second in place of termeinator u have to use the ip of terminator to
which u r sending ur traffic.if u want to call sip sip of from one soft
phone to second soft phone then remoce /terminator ok... like
(SIP/${DestNo})

mail be back if any problem.

On Fri, Feb 20, 2009 at 1:07 PM, michel freiha <[email protected]> wrote:

> Dear Yawar,
>
> I'll appreciate a lot if you send to me these scripts in order to test
>
> Regards
>
> On Fri, Feb 20, 2009 at 5:58 AM, Yawar Hadi <[email protected]> wrote:
>
>> i have in perl AGI script if u want then let me know ...?
>>
>>
>> On Fri, Feb 20, 2009 at 4:59 AM, Steve Edwards <[email protected]
>> > wrote:
>>
>>> On Fri, 20 Feb 2009, michel freiha wrote:
>>>
>>> > I need the following....A customer will dial a specific number like
>>> 112,this
>>> > will fire a php AGI script...The AGI script will connect to the
>>> database and
>>> > see if this number (112) is registered in a specific table...If yes,
>>> AGI
>>> > script will return to asterisk a destination number registered in that
>>> table
>>> > and match the 112 then asterisk will dial out the number fetched
>>> >
>>> > Please let me know if you need any other information
>>>
>>> 1) How much are you paying for us to do your work?
>>>
>>> 2) Shouldn't this be on -biz?
>>>
>>> Thanks in advance,
>>> ------------------------------------------------------------------------
>>> Steve Edwards      [email protected]      Voice: +1-760-468-3867 PST
>>> Newline                                             Fax: +1-760-731-3000
>>>
>>> _______________________________________________
>>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>>
>>> asterisk-users mailing list
>>> To UNSUBSCRIBE or update options visit:
>>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>>>
>>
>>
>>
>> --
>> Best regards
>>
>> Yawar Hadi Noshahi
>>  QAU Islamabad
>> (+92-0300-5504798)
>>
>> _______________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 
Best regards

Yawar Hadi Noshahi
 QAU Islamabad
(+92-0300-5504798)

Attachment: DialNumber.pl
Description: Perl program

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to