Adds screening of redirecting number
authorBirger Harzenetter <WIMPy@yeti.dk>
Sat, 16 Jun 2012 07:52:48 +0000 (09:52 +0200)
committerAndreas Eversberg <jolly@eversberg.eu>
Sat, 16 Jun 2012 07:52:48 +0000 (09:52 +0200)
apppbx.cpp
dss1.cpp

index c80c20a..6cf2c92 100644 (file)
@@ -1344,6 +1344,7 @@ void EndpointAppPBX::port_setup(struct port_list *portlist, int message_type, un
        if (e_callerinfo.interface[0]) {
                do_screen(0, e_callerinfo.id, sizeof(e_callerinfo.id), &e_callerinfo.ntype, &e_callerinfo.present, e_callerinfo.interface);
                do_screen(0, e_callerinfo.id2, sizeof(e_callerinfo.id2), &e_callerinfo.ntype2, &e_callerinfo.present2, e_callerinfo.interface);
+               do_screen(0, e_redirinfo.id, sizeof(e_redirinfo.id), &e_redirinfo.ntype, &e_redirinfo.present, e_callerinfo.interface);
        }
 
        /* process extension */
index 6a718ab..6adbf1f 100644 (file)
--- a/dss1.cpp
+++ b/dss1.cpp
@@ -1973,6 +1973,7 @@ void Pdss1::message_setup(unsigned int epoint_id, int message_id, union paramete
        /* screen outgoing caller id */
        do_screen(1, p_callerinfo.id, sizeof(p_callerinfo.id), &p_callerinfo.ntype, &p_callerinfo.present, p_m_mISDNport->ifport->interface->name);
        do_screen(1, p_callerinfo.id2, sizeof(p_callerinfo.id2), &p_callerinfo.ntype2, &p_callerinfo.present2, p_m_mISDNport->ifport->interface->name);
+       do_screen(1, p_redirinfo.id, sizeof(p_redirinfo.id), &p_redirinfo.ntype, &p_redirinfo.present, p_m_mISDNport->ifport->interface->name);
 
        /* only display at connect state: this case happens if endpoint is in connected mode */
        if (p_state==PORT_STATE_CONNECT) {