zandbelt wrote:cuppie wrote:asterisk: can't resolve symbol 'ast_debug'
forgot to backport ast_debug with chan_mobile; fixed now in an updated release of asterisk14-addons including asterisk14-addons-chan-mobile_1.4.2-4
good luck
Hans.
Thank you very much !
Now I get a segmentation fault when a call from gsm is bridged.
I found a possible solution , but it seems more a kind of workaround....
Its about changing channel.c
I'm using a CSR bluetooth dongle (Sitecom CN-521)
The bug is about another one...
http://bugs.digium.com/view.php?id=10163
Debug output :
Asterisk Ready.
*CLI> [Jan 1 00:01:38] DEBUG[766]: chan_sip.c:4375 sip_alloc: Allocating new SIP dialog for YjFjNWNiMGZlMTkwNjM2ZmYwMDM0NDgwZjYxNjQzZDY. - SUBSCRIBE (No RTP)
-- Bluetooth Device gsm-roel has connected.
]Jan 1 00:01:41] DEBUG[771]: chan_mobile.c:852 rfcomm_write: rfcomm_write() (gsm-roel) [AT+BRSF=4
[Jan 1 00:01:41] DEBUG[771]: chan_mobile.c:1136 do_monitor_phone: rfcomm_read() (gsm-roel) [+BRSF: 47]
[Jan 1 00:01:41] DEBUG[771]: chan_mobile.c:1136 do_monitor_phone: rfcomm_read() (gsm-roel) [OK]
]Jan 1 00:01:41] DEBUG[771]: chan_mobile.c:852 rfcomm_write: rfcomm_write() (gsm-roel) [AT+CIND=?
[Jan 1 00:01:41] DEBUG[771]: chan_mobile.c:1136 do_monitor_phone: rfcomm_read() (gsm-roel) [+CIND: ("call",(0,1)),("service",(0,1)),("call_setup",(0-3)),("callsetup",(0-3))]
[Jan 1 00:01:41] DEBUG[771]: chan_mobile.c:1177 do_monitor_phone: CIEV_CALL=1 CIEV_CALLSETUP=4
[Jan 1 00:01:41] DEBUG[771]: chan_mobile.c:1136 do_monitor_phone: rfcomm_read() (gsm-roel) [OK]
]Jan 1 00:01:41] DEBUG[771]: chan_mobile.c:852 rfcomm_write: rfcomm_write() (gsm-roel) [AT+CIND?
[Jan 1 00:01:41] DEBUG[771]: chan_mobile.c:1136 do_monitor_phone: rfcomm_read() (gsm-roel) [+CIND: 0,1,0,0]
[Jan 1 00:01:41] DEBUG[771]: chan_mobile.c:1136 do_monitor_phone: rfcomm_read() (gsm-roel) [OK]
]Jan 1 00:01:41] DEBUG[771]: chan_mobile.c:852 rfcomm_write: rfcomm_write() (gsm-roel) [AT+CMER=3,0,0,1
[Jan 1 00:01:41] DEBUG[771]: chan_mobile.c:1136 do_monitor_phone: rfcomm_read() (gsm-roel) [OK]
]Jan 1 00:01:41] DEBUG[771]: chan_mobile.c:852 rfcomm_write: rfcomm_write() (gsm-roel) [AT+CLIP=1
[Jan 1 00:01:41] DEBUG[771]: chan_mobile.c:1136 do_monitor_phone: rfcomm_read() (gsm-roel) [OK]
]Jan 1 00:01:41] DEBUG[771]: chan_mobile.c:852 rfcomm_write: rfcomm_write() (gsm-roel) [AT+CMGF=1
[Jan 1 00:01:41] DEBUG[771]: chan_mobile.c:1136 do_monitor_phone: rfcomm_read() (gsm-roel) [OK]
]Jan 1 00:01:41] DEBUG[771]: chan_mobile.c:852 rfcomm_write: rfcomm_write() (gsm-roel) [AT+CNMI=2,1,0,1,0
[Jan 1 00:01:41] DEBUG[771]: chan_mobile.c:1136 do_monitor_phone: rfcomm_read() (gsm-roel) [OK]
-- Bluetooth Device gsm-roel initialised and ready.
[Jan 1 00:01:44] NOTICE[765]: chan_mobile.c:1646 do_sco_listen: sco_socket returns 15...
[Jan 1 00:01:44] DEBUG[765]: chan_mobile.c:1652 do_sco_listen: Incoming Audio Connection from device 00:13:FD:82:C5:58 MTU is 64
[Jan 1 00:01:44] NOTICE[765]: chan_mobile.c:1660 do_sco_listen: about to close the pvt-sco_socket and set it ns
[Jan 1 00:01:44] NOTICE[765]: chan_mobile.c:1644 do_sco_listen: About to accept the sco_socket...
[Jan 1 00:02:24] DEBUG[766]: chan_sip.c:2624 do_setnat: Setting NAT on RTP to Off
[Jan 1 00:02:24] DEBUG[766]: chan_sip.c:4375 sip_alloc: Allocating new SIP dialog for 3C9035FC805A1AC4@192.168.249.2 - INVITE (With RTP)
[Jan 1 00:02:24] DEBUG[766]: chan_sip.c:2624 do_setnat: Setting NAT on RTP to Off
[Jan 1 00:02:24] DEBUG[766]: chan_sip.c:13547 handle_request_invite: Checking SIP call limits for device openwrt
[Jan 1 00:02:24] DEBUG[774]: pbx.c:1809 pbx_extension_helper: Launching 'Dial'
-- Executing [06xxxxxxxx@default:1] Dial("SIP/openwrt-100645f8", "MOBILE/gsm-roel/06xxxxxxxx|45") in new stack
[Jan 1 00:02:24] DEBUG[774]: rtp.c:1574 ast_rtp_make_compatible: Channel 'Mobile/gsm-roel-b195' has no RTP, not doing anything
[Jan 1 00:02:24] DEBUG[774]: channel.c:3470 ast_channel_inherit_variables: Not copying variable STACK-default-06xxxxxxxx-1.
[Jan 1 00:02:24] DEBUG[774]: channel.c:3470 ast_channel_inherit_variables: Not copying variable SIPCALLID.
[Jan 1 00:02:24] DEBUG[774]: channel.c:3470 ast_channel_inherit_variables: Not copying variable SIPUSERAGENT.
[Jan 1 00:02:24] DEBUG[774]: channel.c:3470 ast_channel_inherit_variables: Not copying variable SIPDOMAIN.
[Jan 1 00:02:24] DEBUG[774]: channel.c:3470 ast_channel_inherit_variables: Not copying variable SIPURI.
[Jan 1 00:02:24] DEBUG[774]: chan_mobile.c:511 mbl_call: Calling gsm-roel/06xxxxxxxx on Mobile/gsm-roel-b195
-- Called gsm-roel/06xxxxxxxx
[Jan 1 00:02:24] DEBUG[774]: channel.c:2999 set_format: Set channel Mobile/gsm-roel-b195 to read format ulaw
[Jan 1 00:02:24] DEBUG[774]: channel.c:2999 set_format: Set channel SIP/openwrt-100645f8 to read format slin
]Jan 1 00:02:25] DEBUG[771]: chan_mobile.c:852 rfcomm_write: rfcomm_write() (gsm-roel) [ATD06xxxxxxxx;
[Jan 1 00:02:25] DEBUG[771]: chan_mobile.c:1136 do_monitor_phone: rfcomm_read() (gsm-roel) [OK]
[Jan 1 00:02:25] DEBUG[749]: chan_mobile.c:757 mbl_devicestate: Checking device state for device gsm-roel
[Jan 1 00:02:25] DEBUG[771]: chan_mobile.c:1136 do_monitor_phone: rfcomm_read() (gsm-roel) [+CIEV: 3,2]
[Jan 1 00:02:25] DEBUG[771]: chan_mobile.c:1136 do_monitor_phone: rfcomm_read() (gsm-roel) [+CIEV: 4,2]
[Jan 1 00:02:32] NOTICE[765]: chan_mobile.c:1646 do_sco_listen: sco_socket returns 19...
[Jan 1 00:02:32] DEBUG[765]: chan_mobile.c:1652 do_sco_listen: Incoming Audio Connection from device 00:13:FD:82:C5:58 MTU is 64
[Jan 1 00:02:32] NOTICE[765]: chan_mobile.c:1660 do_sco_listen: about to close the pvt-sco_socket and set it ns
[Jan 1 00:02:32] NOTICE[765]: chan_mobile.c:1644 do_sco_listen: About to accept the sco_socket...
[Jan 1 00:02:34] DEBUG[771]: chan_mobile.c:1136 do_monitor_phone: rfcomm_read() (gsm-roel) [+CIEV: 3,3]
[Jan 1 00:02:34] DEBUG[771]: chan_mobile.c:1136 do_monitor_phone: rfcomm_read() (gsm-roel) [+CIEV: 4,3]
-- Mobile/gsm-roel-b195 is ringing
[Jan 1 00:02:34] DEBUG[774]: rtp.c:1499 ast_rtp_early_bridge: Channel 'Mobile/gsm-roel-b195' has no RTP, not doing anything
[Jan 1 00:02:34] DEBUG[774]: chan_sip.c:6499 transmit_response_with_sdp: Setting framing from config on incoming call
[Jan 1 00:02:34] DEBUG[774]: rtp.c:2727 ast_rtp_write: Ooh, format changed from unknown to ulaw
[Jan 1 00:02:34] DEBUG[774]: rtp.c:2744 ast_rtp_write: Created smoother: format: 4 ms: 20 len: 160
Segmentation fault
root@OpenWrt:~#