Hello Everyone
I'm trying to modify the callerid(num and name) for each of my branch offices when a call is placed over dundi.
This is my scenario!!


context default {
       includes something;
       includes via-voip;
       includes via-pstn;
};

context via-voip {
    switches {
          DUNDi/lookup;
    };
};

context via-pstn {
       _X. => Dial(IAX2/mediagateway/${EXTEN});
};


Now this is what i need

when the number dialed is found via DUNDi i wish to set callerid name like
Branch Office 1: CALLERNAME
Branch Office 2: CALLERNAME
and so on!!

But when not found just go thru the context psn normally!!

Tried to do with a macro like this

macro dundi(DESTINU){
        s: {
                set(CALLERID(name)=BRANCH OFFICE1: ${CALLERID(name)});
        };
        includes {
                procuradundi;
        };
return;
};

contex via-voip {
            X. => &dundi(${EXTEN});
};

The callerid(name) is set properly but no include is executed!!!

Thanks for who helps!!!


--
Atenciosamente,
André Luís
Grupo de Redes de Computadores
Assessoria de Informática
E-mail: [email protected]
Tel.: +55 (011) 5627-0604
VoIP.: 110604
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Dundi mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/dundi

Reply via email to