[Asterisk-Users] Scope of the "h" extension..

DUSTIN WILDES dwildes at pabbankshares.com
Thu Nov 20 09:58:05 MST 2003


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:wipe_out at onetel.com]
Sent: Thursday, November 20, 2003 10:26 AM
To: asterisk-users at lists.digium.com
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
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list