Author Topic: call forwarding issue  (Read 7226 times)

humai

  • Newbie
  • *
  • Posts: 1
    • View Profile
call forwarding issue
« on: October 16, 2018, 06:03:11 AM »
Hi,
I have a call forwarding issue:
when somebody in the company sets his phone to forward all incoming calls to another number it goes directly to the user 10, not to the forwarding number.
this is my regexroute.conf:

Code: [Select]
[priorities]
;preroute=10
;route=10
prerouteall=yes

[extra]
call.execute=80
call.update=50

[call.execute]
^.*$=echo DEBUG - call executed, caller '${caller}' called '${called}' '${formats}' '${sip_to}' callername '${callername}'
${callto}^earlymedia$=return;callto=moh/default;fork.calltype=persistent;fork.autoring=true;fork.automessage=call.progress

[call.update]
${mute}true^=return
^.*$=echo DEBUG - Channel '${id}' is now on-hold
; Replace the source with MOH, getting off hold will put back a RTP
.*=enqueue chan.masquerade;message=chan.attach;id=${id};source=moh/default

[contexts]
^.*$=echo DEBUG - contexts started

;company
${address}^[ISP-IP]:5060$=company
^.*$=echo DEBUG - Assigned company $(address)

;TELco
${address}^[ISP-IP]:8060$=TELco
^.*$=echo DEBUG - Assigned TELco $(address)

${caller}^10=company
${caller}^11=company
${caller}^12=company
${caller}^13=company
${caller}^14=company
${caller}^15=company
${caller}^16=company
${caller}^17=company
${caller}^18=company
${caller}^21=company
${caller}^22=company
${caller}^23=company
${caller}^24=company
${caller}^25=company
${caller}^26=company
${caller}^27=company
${caller}^28=company
${caller}^29=company
${caller}^30=company
${caller}^31=company
${caller}^32=company
${caller}^33=company
${caller}^34=company
${caller}^35=company
${caller}^36=company
${caller}^37=company
${caller}^38=company
${caller}^39=company
${caller}^40=company
${caller}^41=company
${caller}^42=company
${caller}^43=company
${caller}^44=company
${caller}^45=company
${caller}^46=company
${caller}^47=company
${caller}^48=company
${caller}^49=company
${caller}^50=company
${caller}^51=company
${caller}^52=company
${caller}^53=company
${caller}^54=company
${caller}^55=company
${caller}^56=company
${caller}^57=company
${caller}^58=company
${caller}^59=company
${caller}^68=company
${caller}^69=company
${caller}^70=company
${caller}^71=company
${caller}^72=company
${caller}^73=company
${caller}^80=company
${caller}^81=company
${caller}^90=company
${caller}^91=company
${caller}^99=company

;####################### company #######################
[company]
^.*$=echo DEBUG - caller '${caller}' from [company-section] called: '${called}' '${formats}' '${sip_to}' callername '${callername}'

;Doorbell
^63$=fork lateroute/690 lateroute/610 lateroute/611 lateroute/612 lateroute/614 lateroute/615 lateroute/616 lateroute/617 lateroute/621 lateroute/622 lateroute/623 lateroute/624 lateroute/625 lateroute/626 lateroute/627 lateroute/628 lateroute/629 lateroute/630 lateroute/631 lateroute/632 lateroute/633 lateroute/634 lateroute/635 lateroute/636 lateroute/637 lateroute/638 lateroute/639 lateroute/641 lateroute/642 lateroute/643 lateroute/645 lateroute/646 lateroute/647 lateroute/648 lateroute/649 lateroute/651 lateroute/652 lateroute/653 lateroute/654 lateroute/655 lateroute/656 lateroute/671

;website hotline
^100$=fork lateroute/18 lateroute/17 lateroute/012345678

;calling wp forward
^91$=fork lateroute/012345678

^2000$=pickup/sip/10

;Voicemail
^77$=wave/record//tmp/recordings/7.slin
^78$=wave/play//tmp/recordings/7.slin

^700$=park/1
^800$=pickup/park/1

^88$=echo ${id}
^88$=moh/default

;FAX
^99$=echo ${id}
^99$=external/nodata/k1.php

^0.*=line/\0;line=TELco-xxxxx

;######################## TELco ###########################
[TELco]
^.*$=echo DEBUG - caller '${caller}' from [TELco-section] called: '${called}' '${formats}' '${sip_to}' callername '${callername}'

^012345678$=fork earlymedia sip/sip:10@[ISP-IP] |next=10000 lateroute/10 lateroute/114 lateroute/115 lateroute/116 lateroute/117 lateroute/118 lateroute/121 lateroute/122 lateroute/123 lateroute/124 lateroute/125 lateroute/126 lateroute/127 lateroute/128 lateroute/129 lateroute/130 lateroute/131 lateroute/132 lateroute/133 lateroute/134 teroute/135 lateroute/136 lateroute/137 lateroute/138 lateroute/156 lateroute/171
^012345678\(.*\)$=fork earlymedia sip/sip:\1@[ISP-IP] |next=10000 sip/sip:10@[ISP-IP] |next=10000 lateroute/114 lateroute/115 lateroute/116 lateroute/117 lateroute/118 lateroute/121 lateroute/123 lateroute/124 lateroute/125 lateroute/126 lateroute/127 lateroute/128 lateroute/129 lateroute/130 lateroute/131 lateroute/132 lateroute/133 lateroute/134 lateroute/135 lateroute/136 lateroute/137 lateroute/138 lateroute/156

.*=-;error=forbidden;reason=not allowed here

;######################## default ###########################
[default]

^0.*=;caller=companyNumber${caller}
^0.*=line/\0;line=TELco-xxxxx

^.*$=echo DEBUG - [default] address:${address}, context:${context}, called:${called}

${username}^$=-;error=noauth
${context}^$=-;error=nocontext

.*=-;error=forbidden;reason=not allowed here