[asterisk-users] Extension wise dialplan

mahesh katta maheshkatta at flexydial.com
Thu Jul 14 02:15:21 CDT 2011


Best Regards,

Mahesh Katta
*BUZZ**WORKS* Business Services Private Limited
BANGALORE | CHENNAI | HYDERABAD | MUMBAI| DELHI
201, Crystal Tower, 75 Gundavali Cross Lane, Andheri Kurla Road, Andheri (E)
Mumbai 400069
GSM +91.97029.70779 | Phone +91.22.4229.2634 | Fax +91.22.4229.2634
Web http://www.buzzworks.com



On Thu, Jul 14, 2011 at 12:20 PM, DHAVAL INDRODIYA <dhaval.it01034 at gmail.com
> wrote:

> Hi Please replace your context with following i think this will work
>
>
>
> [isd]
> exten => _X!,1,NoOp(${CALLERID(number)})
> exten => _X!,2,AGI(agi://127.0.0.1:4577/call_log)
> exten =>
> _X!,3,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLERIDNUM}-${EXTEN}-${UNIQUEID}.gsm|av(0)V(0))
> exten => _X!,4,GotoIf($[$["${CDR(src)}" == "667"] & $[${CDR(src} ==
> "668"]]?ALLOW:NOTALLOW)
> exten => _X!,5(ALLOW),Dial(${SIPTRUNK}/${EXTEN},,To)
> exten => _X!,6(NOTALLOW),Hangup
>
>
>  NoOp("Local/8600062 at default-9932,1", "0000000000") in new
stack

    -- Executing AGI("Local/8600062 at default-9932,1", "agi://
127.0.0.1:4577/call_log") in new
stack
    -- AGI Script agi://127.0.0.1:4577/call_log completed, returning
0

    -- Executing MixMonitor("Local/8600062 at default-9932,1",
"/var/spool/asterisk/astrec/20110714-123333-0000000000-971559566768-1310627013.4231.gsm|av(0)V(0)")
in new
stack

Jul 14 12:33:33 WARNING[17506]: ast_expr2.fl:183 ast_yyerror: ast_yyerror():
syntax error: syntax error, unexpected TOK_EQ, expecting TOK_MINUS or
TOK_COMPL or TOK_LP or TOKEN;
Input:

"0000000000" == "98761"


^

Jul 14 12:33:33 WARNING[17506]: ast_expr2.fl:187 ast_yyerror: If you have
questions, please refer to doc/README.variables in the asterisk
source.
    -- Executing GotoIf("Local/8600062 at default-9932,1", "0?ALLOW:NOTALLOW")
in new
stack

    -- Goto
(default,971559566768,6)

    -- Executing Hangup("Local/8600062 at default-9932,1", "") in new stack


sir in this i have no callerid in dialplan 1 priority is wrong in my self.
is there any way .

Regards
> dhaval
>
>
>
>
>
>
> On Thu, Jul 14, 2011 at 12:12 PM, mahesh katta <maheshkatta at flexydial.com>wrote:
>
>>
>> Best Regards,
>>
>> Mahesh Katta
>> *BUZZ**WORKS* Business Services Private Limited
>> BANGALORE | CHENNAI | HYDERABAD | MUMBAI| DELHI
>> 201, Crystal Tower, 75 Gundavali Cross Lane, Andheri Kurla Road, Andheri
>> (E) Mumbai 400069
>> GSM +91.97029.70779 | Phone +91.22.4229.2634 | Fax +91.22.4229.2634
>> Web http://www.buzzworks.com
>>
>>
>>
>> On Thu, Jul 14, 2011 at 12:06 PM, DHAVAL INDRODIYA <
>> dhaval.it01034 at gmail.com> wrote:
>>
>>> ok, so just chek with Dial-plan and when you receive a call from 667 and
>>> 668 you can allowe a dialing out and for other calls you just dis-allow
>>> outdialing , kindly paste your dial-plan here if i can help.
>>>
>>>  [default]
>> include => isd
>> ; Mumbai Mobile Numbers
>> exten => _9XXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
>> exten =>
>> _9XXXXXXXXX,2,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLERIDNUM}-${EXTEN}-${UNIQUEID}.gsm|av(0)V(0))
>> exten => _9XXXXXXXXX,3,Dial(${TRUNK}/${EXTEN},,tTo)
>> exten => _9XXXXXXXXX,4,Hangup
>>
>> ; STD Any Numbers
>> exten => _0XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
>> exten =>
>> _0XXXXXXXXXX,2,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLERIDNUM}-${EXTEN}-${UNIQUEID}.gsm|av(0)V(0))
>> exten => _0XXXXXXXXXX,3,Dial(${TRUNK}/${EXTEN},,tTo)
>> exten => _0XXXXXXXXXX,4,Hangup
>>
>> [isd]
>> exten => _X!,1,NoOp(${CALLERID(number)})
>> exten => _X!,2,AGI(agi://127.0.0.1:4577/call_log)
>> exten =>
>> _X!,3,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLERIDNUM}-${EXTEN}-${UNIQUEID}.gsm|av(0)V(0))
>> exten => _X!,4,Dial(${SIPTRUNK}/${EXTEN},,To)
>> exten => _X!,5,Hangup
>>
>> in this scenario . all extensions are default context. but 667 and 668 to
>> allow only dial out isd calls. please help
>>
>> regards
>>> dhaval
>>>
>>>
>>> On Thu, Jul 14, 2011 at 11:59 AM, mahesh katta <
>>> maheshkatta at flexydial.com> wrote:
>>>
>>>> Thanks for reply.
>>>> but I need same context. because i am using dialer when I change the
>>>> context meetme is not configuring at login with dialer.
>>>>
>>>>
>>>> Best Regards,
>>>>
>>>> Mahesh Katta
>>>> *BUZZ**WORKS* Business Services Private Limited
>>>> BANGALORE | CHENNAI | HYDERABAD | MUMBAI| DELHI
>>>> 201, Crystal Tower, 75 Gundavali Cross Lane, Andheri Kurla Road, Andheri
>>>> (E) Mumbai 400069
>>>> GSM +91.97029.70779 | Phone +91.22.4229.2634 | Fax +91.22.4229.2634
>>>> Web http://www.buzzworks.com
>>>>
>>>>
>>>>
>>>> On Thu, Jul 14, 2011 at 11:56 AM, DHAVAL INDRODIYA <
>>>> dhaval.it01034 at gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Just change context for 667 and 668 extensions .
>>>>>
>>>>> Regards
>>>>> Dhaval
>>>>>
>>>>> On Thu, Jul 14, 2011 at 10:15 AM, mahesh katta <
>>>>> maheshkatta at flexydial.com> wrote:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> I have n no. of extensions in my dialer. from 456 to 556 extensions. I
>>>>>> was created 2 other extensions 667 and 668  I need to allow  only STD calls
>>>>>> to go from this extensions.
>>>>>> These all extensions are same context . I need to define the STD
>>>>>> dialplan for only this 2 extensions. how I can ?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Best Regards,
>>>>>>
>>>>>> Mahesh Katta
>>>>>> *BUZZ**WORKS* Business Services Private Limited
>>>>>> BANGALORE | CHENNAI | HYDERABAD | MUMBAI| DELHI
>>>>>> 201, Crystal Tower, 75 Gundavali Cross Lane, Andheri Kurla Road,
>>>>>> Andheri (E) Mumbai 400069
>>>>>> GSM +91.97029.70779 | Phone +91.22.4229.2634 | Fax +91.22.4229.2634
>>>>>> Web http://www.buzzworks.com
>>>>>>
>>>>>>
>>>>>> --
>>>>>> _____________________________________________________________________
>>>>>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>>>>> New to Asterisk? Join us for a live introductory webinar every Thurs:
>>>>>>               http://www.asterisk.org/hello
>>>>>>
>>>>>> 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 --
>>>>> New to Asterisk? Join us for a live introductory webinar every Thurs:
>>>>>               http://www.asterisk.org/hello
>>>>>
>>>>> 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 --
>>>> New to Asterisk? Join us for a live introductory webinar every Thurs:
>>>>               http://www.asterisk.org/hello
>>>>
>>>> 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 --
>>> New to Asterisk? Join us for a live introductory webinar every Thurs:
>>>               http://www.asterisk.org/hello
>>>
>>> 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 --
>> New to Asterisk? Join us for a live introductory webinar every Thurs:
>>               http://www.asterisk.org/hello
>>
>> 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 --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110714/e9747e83/attachment.htm>


More information about the asterisk-users mailing list