Your inheritied context is including the exten => h,... for dial-out & internal 
because your sip.conf is pulling both via your "local" context.

Something like this should fix it:

[local]
include => extensions
exten => _9,....,1,Goto(dial-out,${EXTEN},1)

That will only execute the exten => h,... entry for matched outgoing calls that use 
"9".


Hope it helps!!

-----Original Message-----
From: WipeOut [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 10:26 AM
To: [EMAIL PROTECTED]
Subject: [Asterisk-Users] Scope of the "h" extension..


I have the following setup..

[extensions]
; all extensions defined here.
exten => 1234,....

exten => 1235,....

[dial-out]
; PSTN dialout config
ignorepat = 9

exten => _9,....

exten => h,....

[local]
; phone context in sip.conf is here..
include => extensions
include => dialout


The question is where will the "h" extension be active?? it appears to 
run for ALL, both internal and PSTN calls, not just the calls to the 
PSTN.. Is that correct?? is there any way to limit it to PSTN calls??

Later..

_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to