From a4b3c54f40ad32808bea5860df263a494935024b Mon Sep 17 00:00:00 2001 From: Ramon Kania Date: Tue, 1 Sep 2015 10:04:07 +0200 Subject: [PATCH 1/3] now using Set(CALLERID(num/name-pres)) replaced deprecated SetCallerPres --- opt/gemeinschaft/etc/asterisk/e-internal.ael | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opt/gemeinschaft/etc/asterisk/e-internal.ael b/opt/gemeinschaft/etc/asterisk/e-internal.ael index 41e8b8883..2c6e0a129 100644 --- a/opt/gemeinschaft/etc/asterisk/e-internal.ael +++ b/opt/gemeinschaft/etc/asterisk/e-internal.ael @@ -1021,7 +1021,8 @@ context to-internal-users-self { //Set(CALLERID(name)=Queue ${EXTEN}); //Set(CALLERID(name)=Q${EXTEN} ${CALLERID(name)}); - SetCallerPres(allowed_passed_screen); + Set(CALLERID(name-pres)=allowed_passed_screen); + Set(CALLERID(num-pres)=allowed_passed_screen); Set(CALLERID(name)=[${queue_displayname}] ${CALLERID(name)}); if ("${CALLERID(num)}" = "") Set(CALLERID(num)=${EXTEN}); From 4cf48e4e29b618ac99de96cbc46b77946f4a39fd Mon Sep 17 00:00:00 2001 From: Ramon Kania Date: Mon, 31 Aug 2015 23:36:40 +0200 Subject: [PATCH 2/3] Added PBX Network did_full hack did_full is now set to P-Called-Party-ID (first two digits removed) --- opt/gemeinschaft/etc/asterisk/e-gategroups-in.ael.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/opt/gemeinschaft/etc/asterisk/e-gategroups-in.ael.php b/opt/gemeinschaft/etc/asterisk/e-gategroups-in.ael.php index 0d3a48eed..0d41a5571 100755 --- a/opt/gemeinschaft/etc/asterisk/e-gategroups-in.ael.php +++ b/opt/gemeinschaft/etc/asterisk/e-gategroups-in.ael.php @@ -69,7 +69,12 @@ echo "\t\t\t\t", 'WaitExten(1);' ,"\n"; echo "\t\t\t", '}' ,"\n"; - echo "\t\t\t", 'Set(did_full=${EXTEN});' ,"\n"; + if (preg_match('/\bpbx\-network\b/i', $name)) { + // PBX Network hack + echo "\t\t\t", 'Set(did_full=${CUT(CUT(SIP_HEADER(P-Called-Party-ID),:,2),@,1)});', "\n"; + } else { + echo "\t\t\t", 'Set(did_full=${EXTEN});' ,"\n"; + } /* # hack for Sipgate.de { @@ -125,4 +130,4 @@ echo '// end of contexts for incoming calls from the gateway groups' ,"\n"; echo "\n"; -?> \ No newline at end of file +?> From 2db55c03fdb155403886b966e857553000063c3f Mon Sep 17 00:00:00 2001 From: Ramon Kania Date: Thu, 19 Nov 2015 16:21:54 +0100 Subject: [PATCH 3/3] Extended maxlength to 50 --- opt/gemeinschaft/htdocs/gui/mod/routing_gws-sip.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opt/gemeinschaft/htdocs/gui/mod/routing_gws-sip.php b/opt/gemeinschaft/htdocs/gui/mod/routing_gws-sip.php index f09a6f983..53f2e1a9a 100644 --- a/opt/gemeinschaft/htdocs/gui/mod/routing_gws-sip.php +++ b/opt/gemeinschaft/htdocs/gui/mod/routing_gws-sip.php @@ -311,7 +311,7 @@ function confirm_delete() { echo '',"\n"; echo '', __('Benutzername') ,' [2]:',"\n"; echo '',"\n"; - echo '',"\n"; + echo '',"\n"; echo '',"\n"; echo 'username / fromuser@fromdomain',"\n"; echo '',"\n";