; Indique le bon Caller ID en cas d'un appel SIP vers ISN (ITAD Subscriber Numbers, www.freenum.org)
; ( inspiration : http://www.loligo.com/asterisk/sipedu/current/configs/extensions.conf )
; Si le Caller ID contient un @ : c'est sans doute l'adresse SIP, on arrete la
-exten => s,1,Set(rightampersand=${CUT(CALLERID(name),@,-)})
+exten => s,1,Set(rightampersand=${CUT(CALLERID(name),@,2)})
exten => s,n,GotoIf(${ISNULL(${rightampersand})}?setpri:endmacro)
; Sinon, le Caller ID sera IIINNN@sip.auf.org (III = indicatif de l'implantation
; NNN = numero dans l'implantation)