Sunday, 15 January 2012

voip - get the number dial by Caller -



voip - get the number dial by Caller -

i have asterisk server assign mutual voip number f.ex.: - 48221111111 - 48222222222

how can check/detect (in extension.conf) number 2 above, caller dial connect asterisk server?

you can utilize ${exten} purpose or if in macro can utilize ${macro_exten}:

[macro-incoming_voip] exten = s,1,lookupblacklist(j) exten = s,2,gotoif( ${macro_exten} = 48221111111?3:4) exten = s,3,goto(from-outside|24|1) exten = s,4,macro(timecondition,voicemenu-custom-1|660|1,voicemenu-custom-1|660|1) exten = s,102,goto(blacklist-handle,s,1)

if execute macro calling extension, context, , priority stored in ${macro_exten}, ${macro_context} , ${macro_priority} respectively.

voip asterisk

No comments:

Post a Comment