[asterisk-users] how to specify the numbers to call with sip

2011-05-27 Thread salaheddine elharit
i have installed asterisk and i have 3 sip 104 ,105 and 106



Now I can make the calls with theses sip without issue



I want to configure the outbound calls for these sips like that:



104 permission to call any number, but for 105 and 106 I want to specify
some numbers to call


Any help please

thanks and regards
--
_
-- 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

Re: [asterisk-users] how to specify the numbers to call with sip

2011-05-27 Thread mahesh katta
you need to make dial plan .

On Fri, May 27, 2011 at 2:59 PM, salaheddine elharit 
salah.elharit...@gmail.com wrote:

 i have installed asterisk and i have 3 sip 104 ,105 and 106



 Now I can make the calls with theses sip without issue



 I want to configure the outbound calls for these sips like that:



 104 permission to call any number, but for 105 and 106 I want to specify
 some numbers to call


 Any help please

 thanks and regards

 --
 _
 -- 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




-- 
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

Re: [asterisk-users] how to specify the numbers to call with sip

2011-05-27 Thread salaheddine elharit
thanks for reply i have a dial plan but can you please give me an exemple

regrads

2011/5/27 mahesh katta maheshka...@flexydial.com

 you need to make dial plan .

   On Fri, May 27, 2011 at 2:59 PM, salaheddine elharit 
 salah.elharit...@gmail.com wrote:

   i have installed asterisk and i have 3 sip 104 ,105 and 106



 Now I can make the calls with theses sip without issue



 I want to configure the outbound calls for these sips like that:



 104 permission to call any number, but for 105 and 106 I want to specify
 some numbers to call


 Any help please

 thanks and regards

 --
 _
 -- 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




 --
 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

Re: [asterisk-users] how to specify the numbers to call with sip

2011-05-27 Thread Alex Balashov
Route 104 into one dialplan context and 105  106 into a more restrictive one.

--
Alex Balashov - Principal
Evariste Systems LLC
260 Peachtree Street NW
Suite 2200
Atlanta, GA 30303
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/

On May 27, 2011, at 5:29 AM, salaheddine elharit salah.elharit...@gmail.com 
wrote:

 i have installed asterisk and i have 3 sip 104 ,105 and 106
  
 Now I can make the calls with theses sip without issue
  
 I want to configure the outbound calls for these sips like that:
  
 104 permission to call any number, but for 105 and 106 I want to specify some 
 numbers to call
  
 Any help please
  
 thanks and regards
 --
 _
 -- 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

Re: [asterisk-users] how to specify the numbers to call with sip

2011-05-27 Thread A J Stiles
On Friday 27 May 2011, salaheddine elharit wrote:
 i have installed asterisk and i have 3 sip 104 ,105 and 106

 Now I can make the calls with theses sip without issue

 I want to configure the outbound calls for these sips like that:

 104 permission to call any number, but for 105 and 106 I want to specify
 some numbers to call

 Any help please

Specify different default contexts for your extension phones in sip.conf.  Say 
104 is in outgoing-full and 105 and 106 are in outgoing-restricted.  Then 
you need something in your extensions.conf like

[outgoing-full]
; allow calls to internal numbers
include = internal

; include specially-chosen outgoing numbers
include = outgoing-restricted

; anything beginning with 0 is an STD call
exten = _0X.,1,Dial(${TRUNK}/${EXTEN})
exten = _0X.,2,Hangup()

[outgoing-restricted]
; allow calls to internal numbers
include = internal

; only allow calls to 01234567890 and 02345678901
exten = 01234567890,1,Dial(${TRUNK}/${EXTEN})
exten = 01234567890,2,Hangup()

exten = 02345678901,1,Dial(${TRUNK}/${EXTEN})
exten = 02345678901,2,Hangup()


Note this is a highly minimal example and will need expanding on, but you 
should get the general idea.

-- 
AJS

Answers come *after* questions.

--
_
-- 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


Re: [asterisk-users] how to specify the numbers to call with sip

2011-05-27 Thread mahesh katta
104 extension should call all outgoing calls, for example you can give one
particular context for104 ,EX: ALL is a context
sip.conf
[104]
username=104
secret=123
nat=yes
canreinvite=yes
context=ALL


extensions.conf
[ALL]
_0X.,1,Dial(zap/go,20,tTo)



On Fri, May 27, 2011 at 3:15 PM, Alex Balashov abalas...@evaristesys.comwrote:

 Route 104 into one dialplan context and 105  106 into a more restrictive
 one.

 --
 Alex Balashov - Principal
 Evariste Systems LLC
 260 Peachtree Street NW
 Suite 2200
 Atlanta, GA 30303
 Tel: +1-678-954-0670
 Fax: +1-404-961-1892
 Web: http://www.evaristesys.com/http://www.evaristesys.com/

 On May 27, 2011, at 5:29 AM, salaheddine elharit 
 salah.elharit...@gmail.com wrote:

 i have installed asterisk and i have 3 sip 104 ,105 and 106



 Now I can make the calls with theses sip without issue



 I want to configure the outbound calls for these sips like that:



 104 permission to call any number, but for 105 and 106 I want to specify
 some numbers to call


 Any help please

 thanks and regards

 --

 _
 -- 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
 http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
 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




-- 
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

Re: [asterisk-users] how to specify the numbers to call with sip

2011-05-27 Thread mahesh katta
A.J.Stiles given perfect example .

On Fri, May 27, 2011 at 3:26 PM, mahesh katta maheshka...@flexydial.comwrote:

 104 extension should call all outgoing calls, for example you can give one
 particular context for104 ,EX: ALL is a context
 sip.conf
 [104]
 username=104
 secret=123
 nat=yes
 canreinvite=yes
 context=ALL


 extensions.conf
 [ALL]
 _0X.,1,Dial(zap/go,20,tTo)




 On Fri, May 27, 2011 at 3:15 PM, Alex Balashov 
 abalas...@evaristesys.comwrote:

 Route 104 into one dialplan context and 105  106 into a more restrictive
 one.

 --
 Alex Balashov - Principal
 Evariste Systems LLC
 260 Peachtree Street NW
 Suite 2200
 Atlanta, GA 30303
 Tel: +1-678-954-0670
 Fax: +1-404-961-1892
 Web: http://www.evaristesys.com/http://www.evaristesys.com/

 On May 27, 2011, at 5:29 AM, salaheddine elharit 
 salah.elharit...@gmail.com wrote:

 i have installed asterisk and i have 3 sip 104 ,105 and 106



 Now I can make the calls with theses sip without issue



 I want to configure the outbound calls for these sips like that:



 104 permission to call any number, but for 105 and 106 I want to specify
 some numbers to call


 Any help please

 thanks and regards

 --

 _
 -- 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
 http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
 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




 --
 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




-- 
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

Re: [asterisk-users] how to specify the numbers to call with sip

2011-05-27 Thread salaheddine elharit
thank you for your response now i can do that without any issue ,i have
just one question

when i verify after this solution all the calls now boot from g1

before i have this


exten = _0612.,1,Set(CALLERID(number)=520460587)

exten = _0612.,n,MixMonitor(zap_g2_${EXTEN}_${UNIQUEID}.wav|av(0}V(0))

exten =
_0612.,n,Dial(Zap/g2/${EXTEN},30,A(this-call-may-be-monitored-or-recorded))

exten = _0612.,n,Hangup();

and for the secend

exten = _0.,1,Set(CALLERID(number)=520460587)

exten = _0.,n,MixMonitor(zap_g1_${EXTEN}_${UNIQUEID}.wav|av(0}V(0))

exten =
_0.,n,Dial(Zap/g1/${EXTEN},30,A(this-call-may-be-monitored-or-recorded))

exten = _0.,n,Hangup();

any help please

2011/5/27 mahesh katta maheshka...@flexydial.com

 A.J.Stiles given perfect example .


 On Fri, May 27, 2011 at 3:26 PM, mahesh katta 
 maheshka...@flexydial.comwrote:

 104 extension should call all outgoing calls, for example you can give one
 particular context for104 ,EX: ALL is a context
 sip.conf
 [104]
 username=104
 secret=123
 nat=yes
 canreinvite=yes
 context=ALL


 extensions.conf
 [ALL]
 _0X.,1,Dial(zap/go,20,tTo)




 On Fri, May 27, 2011 at 3:15 PM, Alex Balashov abalas...@evaristesys.com
  wrote:

  Route 104 into one dialplan context and 105  106 into a more
 restrictive one.

 --
 Alex Balashov - Principal
 Evariste Systems LLC
 260 Peachtree Street NW
 Suite 2200
 Atlanta, GA 30303
 Tel: +1-678-954-0670
 Fax: +1-404-961-1892
 Web: http://www.evaristesys.com/http://www.evaristesys.com/

 On May 27, 2011, at 5:29 AM, salaheddine elharit 
 salah.elharit...@gmail.com wrote:

   i have installed asterisk and i have 3 sip 104 ,105 and 106



 Now I can make the calls with theses sip without issue



 I want to configure the outbound calls for these sips like that:



 104 permission to call any number, but for 105 and 106 I want to specify
 some numbers to call


 Any help please

 thanks and regards

  --

 _
 -- 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
 http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
 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




  --
 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




 --
 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