Call tying: различия между версиями

Материал из fidoman.ru
(Новая страница: «Category: VoIP Category: asterisk Save number called from internal extension into DB. When call received from that number it is routed directly to that e...»)
 
Строка 4: Строка 4:
 
Save number called from internal extension into DB.
 
Save number called from internal extension into DB.
 
When call received from that number it is routed directly to that extension.
 
When call received from that number it is routed directly to that extension.
 +
 +
Dialplan for outgoing calls:
 +
exten => _8XXXXXXXXXX,1,Set(DB(lastcall_trunkname/${EXTEN})=${CALLERID(num)})
 +
 +
Dialplan for incoming calls:
 +
same => n,Gosubif(${DB_EXISTS(lastcall_trunkname/${CALLERID(num)})}?internal_dialplan,${DB(lastcall_trunkname/${CALLERID(num)})},1)

Версия 00:41, 13 января 2022


Save number called from internal extension into DB. When call received from that number it is routed directly to that extension.

Dialplan for outgoing calls:

exten => _8XXXXXXXXXX,1,Set(DB(lastcall_trunkname/${EXTEN})=${CALLERID(num)})

Dialplan for incoming calls:

same => n,Gosubif(${DB_EXISTS(lastcall_trunkname/${CALLERID(num)})}?internal_dialplan,${DB(lastcall_trunkname/${CALLERID(num)})},1)