18
« on: July 10, 2014, 08:28:33 AM »
Dear Marian,
Please see the log below
20140710141613.461201 <sip/2:ALL> YateSIPConnection::YateSIPConnection(0x7fbb1c00cd50,0x7fbb2801fa10) [0x7fbb1c001db0]
20140710141613.461360 <sip/2:ALL> NAT address is '(null)' [0x7fbb1c001db0]
20140710141613.461656 <sip/2:ALL> Set media: audio=alaw,mulaw,g729 [0x7fbb1c001db0]
20140710141613.461897 <INFO> Could not classify call from '185236654321', wasted 3 usec
20140710141613.461980 <cdrbuild:INFO> Got message 'call.route' for untracked id 'sip/2'
20140710141613.462113 <RegexRoute:ALL> Jumping to context 'from_internal' by rule #1 '${module}sip'
20140710141613.462366 <INFO> Routing call to '456789' in context 'default' via 'external/nodata/route.js' in 345 usec
20140710141613.462403 <sip/2:ALL> NAT address is '(null)' [0x7fbb1c001db0]
20140710141613.462599 <ALL> ExtModChan::ExtModChan(1) [0x7fbb1000b490]
20140710141613.462632 <ALL> ExtModReceiver::ExtModReceiver("route.js","(null)") [0x7fbb100081f0]
20140710141613.463146 <INFO> Launched External Script '/usr/src/yate/share/scripts/route.js' ''
20140710141613.463913 <ExtModule:INFO> Read EOF on 0x7fbb14000900 [0x7fbb100081f0]
20140710141613.463973 <INFO> ExtModReceiver releasing 1 pending messages [0x7fbb100081f0]
20140710141613.468567 <WARN> ExtMod 'route.js' did not handle call message
20140710141613.468609 >>> ExtModChan::~ExtModChan() [0x7fbb1000b490]
20140710141613.468621 <ALL> ExtModReceiver::die() pid=774 dead=no [0x7fbb100081f0]
20140710141613.468637 <ALL> ExtModReceiver::die() waiting for pid=774 to die [0x7fbb100081f0]
20140710141613.469090 <ExtModule:WARN> Never got anything valid from terminated 'route.js' ''
20140710141613.469228 <ALL> ExtModReceiver::~ExtModReceiver() pid=0 [0x7fbb100081f0]
20140710141613.469261 <ALL> ExtModReceiver::die() pid=0 dead=yes [0x7fbb100081f0]
20140710141613.469271 <<< ExtModChan::~ExtModChan()
20140710141613.469335 <sip/2:MILD> Call rejected error='noconn' reason='Could not connect to target' [0x7fbb1c001db0]
20140710141613.469419 <sip/2:ALL> YateSIPConnection::hangup() state=0 trans=0x7fbb2801fa10 error='noconn' code=503 reason='Could not connect to target' [0x7fbb1c001db0]
20140710141613.469467 <sip/2:ALL> YateSIPConnection::~YateSIPConnection() [0x7fbb1c001db0]
my server configuration
in regex
${module}sip=goto from_internal
${address}^1\.1\.1\.1:=external/nodata/route.js
also i have modified the route.js