When running Freeswitch as service called teoswitch as user
teoswitch I cannot make calls through the Sangoma PRI or analog cards using
wanpipe driver. I have added a file called 30-wanpipe.rules to
/etc/udev/rules.d and rebooted the server.
cat 30-wanpipe.rules
# /etc/udev/rules.d/30-wanpipe.rules
SUBSYSTEM=="wptdm",
OWNER="teoswitch", GROUP="teoswitch", MODE="0660"
SUBSYSTEM=="wanpipe",
OWNER="teoswitch", GROUP="teoswitch", MODE="0660"
Freeswitch log:
Dialplan: sofia/internal/5410@192.168.72.45:5060
parsing [default->SangomaPRI] continue=false
Dialplan: sofia/internal/5410@192.168.72.45:5060
Regex (PASS) [SangomaPRI] destination_number(93491045) =~ /^9(\d+)$/
break=on-false
Dialplan: sofia/internal/5410@192.168.72.45:5060
Action set(effective_caller_id_number=425740${caller_id_number})
Dialplan: sofia/internal/5410@192.168.72.45:5060
Action bridge(openzap/smg_prid/a/3491045@g1)
2010-02-25 16:51:11.328635 [DEBUG]
switch_core_state_machine.c:122 (sofia/internal/5410@192.168.72.45:5060) State
Change CS_ROUTING -> CS_EXECUTE
2010-02-25 16:51:11.328635 [DEBUG]
switch_core_session.c:1019 Send signal sofia/internal/5410@192.168.72.45:5060
[BREAK]
2010-02-25 16:51:11.328635 [DEBUG]
switch_core_state_machine.c:341 (sofia/internal/5410@192.168.72.45:5060) State
ROUTING going to sleep
2010-02-25 16:51:11.328635 [DEBUG]
switch_core_state_machine.c:314 (sofia/internal/5410@192.168.72.45:5060)
Running State Change CS_EXECUTE
2010-02-25 16:51:11.328635 [DEBUG] switch_core_state_machine.c:348
(sofia/internal/5410@192.168.72.45:5060) State EXECUTE
2010-02-25 16:51:11.328635 [DEBUG] mod_sofia.c:181
sofia/internal/5410@192.168.72.45:5060 SOFIA EXECUTE
2010-02-25 16:51:11.328635 [DEBUG]
switch_core_state_machine.c:159 sofia/internal/5410@192.168.72.45:5060 Standard
EXECUTE
EXECUTE sofia/internal/5410@192.168.72.45:5060
set(effective_caller_id_number=4257405410)
2010-02-25 16:51:11.328635 [DEBUG] mod_dptools.c:811
sofia/internal/5410@192.168.72.45:5060 SET [effective_caller_id_number]=[4257405410]
EXECUTE sofia/internal/5410@192.168.72.45:5060
bridge(openzap/smg_prid/a/3491045@g1)
2010-02-25 16:51:11.339637 [ERR]
switch_core_session.c:357 Could not locate channel type openzap
2010-02-25 16:51:11.339637 [ERR]
switch_ivr_originate.c:2411 Cannot create outgoing channel of type [openzap]
cause: [CHAN_NOT_IMPLEMENTED]
2010-02-25 16:51:11.339637 [DEBUG]
switch_ivr_originate.c:3209 Originate Resulted in Error Cause: 66
[CHAN_NOT_IMPLEMENTED]
2010-02-25 16:51:11.339637 [INFO] mod_dptools.c:2346
Originate Failed. Cause: CHAN_NOT_IMPLEMENTED
2010-02-25 16:51:11.339637 [NOTICE]
mod_dptools.c:2409 Hangup sofia/internal/5410@192.168.72.45:5060 [CS_EXECUTE]
[CHAN_NOT_IMPLEMENTED]
2010-02-25 16:51:11.339637 [DEBUG]
switch_channel.c:1976 Send signal sofia/internal/5410@192.168.72.45:5060 [KILL]
2010-02-25 16:51:11.339637 [DEBUG]
switch_core_session.c:1019 Send signal sofia/internal/5410@192.168.72.45:5060
[BREAK]
Thanks,
Robert