[sub-Get-FromIP]
; Возвращает IP, с которого звонят
exten => s,1,Goto(${CHANNEL(channeltype)})
same => n(PJSIP),return(${CUT(CHANNEL(pjsip,remote_addr),:,1)})
same => n(SIP),return(${CHANNEL(recvip)})
same => n(IAX2),return(${CHANNEL(peerip)})
same => n(Local),return()
same => n(Motif),return(${CHANNEL(recvip)})
same => n,return()