Hi, I have been trying chan_bluetooth module for asterisk during last week. I found some difficulties configuring it, due mainly to my ignorance and secondly to the lack of documentation. Thanks to the list I have managed to configure the Audio Gateway mode and I have a strong doubt about how it works. This is my scenario: sip phone--->sip-Asterisk-bluetooth------>Nokia 6630 & 7600 ----------->PSTN (My mobile phone) I want to make a call from my sip phone to my mobile phone using the Nokias as intermediaries. I have successfully made calls using both of them, but I get all the audio on the Nokia when I was expecting it on my sip phone. I am thinking what could be the point for this as the only functionality I am getting is dialling from the sip phone instead of from the Nokia, as for the rest, it is nothing but a normal pstn call. Is it due to a wrong configuration, an uncompleted programming, or Am I just missing the point? Regards, Victor. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051117/5ba6b2a0/attachment.htm
On Thu, 2005-11-17 at 12:46 +0000, Victor Alvarez wrote:> Hi, > > I have been trying chan_bluetooth module for asterisk during last > week. I found some difficulties configuring it, due mainly to my > ignorance and secondly to the lack of documentation. Thanks to the > list I have managed to configure the Audio Gateway mode and I have a > strong doubt about how it works. > > This is my scenario: > > sip phone--->sip-Asterisk-bluetooth------>Nokia 6630 & > 7600 ----------->PSTN (My mobile phone) > > I want to make a call from my sip phone to my mobile phone using the > Nokias as intermediaries. I have successfully made calls using both of > them, but I get all the audio on the Nokia when I was expecting it on > my sip phone. > > I am thinking what could be the point for this as the only > functionality I am getting is dialling from the sip phone instead of > from the Nokia, as for the rest, it is nothing but a normal pstn call. > Is it due to a wrong configuration, an uncompleted programming, or Am > I just missing the point?I got this the other day ( * stepping out of the chain on answer), but interestingly if I called my other fixed line it all worked perfectly. -- Dave Cotton <dcotton@linuxautrement.com>
> > I have been trying chan_bluetooth module for asterisk during last > > week. I found some difficulties configuring it, due mainly to my > > ignorance and secondly to the lack of documentation. Thanks to the > > list I have managed to configure the Audio Gateway mode and I have a > > strong doubt about how it works. > > > > This is my scenario: > > > > sip phone--->sip-Asterisk-bluetooth------>Nokia 6630 & > > 7600 ----------->PSTN (My mobile phone) > > > > I want to make a call from my sip phone to my mobile phone using the > > Nokias as intermediaries. I have successfully made calls using bothof> > them, but I get all the audio on the Nokia when I was expecting iton> > my sip phone. > > > > I am thinking what could be the point for this as the only > > functionality I am getting is dialling from the sip phone instead of > > from the Nokia, as for the rest, it is nothing but a normal pstncall.> > Is it due to a wrong configuration, an uncompleted programming, orAm> > I just missing the point?> >I got this the other day ( * stepping out of the chain on answer),but> >interestingly if I called my other fixed line it all workedperfectly.> > >Dave Cotton <dcotton@linuxautrement.com> >I have been trying X-lite and Nokia 6630 & 7600 with mobile phones and fixed phones, obtaining the same result. Funny thing is manage the communication from the SIP end, which says Trying, Ringing, Connected and Hang up, but doesn't get sound at all. What is your configuration, Dave, if I may ask? Regards, Victor.
On Thu, 2005-11-17 at 12:46 +0000, Victor Alvarez wrote:> Hi, > > I have been trying chan_bluetooth module for asterisk during last > week. I found some difficulties configuring it, due mainly to my > ignorance and secondly to the lack of documentation. Thanks to the > list I have managed to configure the Audio Gateway mode and I have a > strong doubt about how it works. > > This is my scenario: > > sip phone--->sip-Asterisk-bluetooth------>Nokia 6630 & > 7600 ----------->PSTN (My mobile phone) > > I want to make a call from my sip phone to my mobile phone using the > Nokias as intermediaries. I have successfully made calls using both of > them, but I get all the audio on the Nokia when I was expecting it on > my sip phone. > > I am thinking what could be the point for this as the only > functionality I am getting is dialling from the sip phone instead of > from the Nokia, as for the rest, it is nothing but a normal pstn call. > Is it due to a wrong configuration, an uncompleted programming, or Am > I just missing the point? >Can you try this again with a CLI open on * with a high verbose level. This is what I get when asterisk drops out of the chain. chan_bluetooth.c:701 sco_thread: SCO connection error: Connection refused (errno 111) -- Dave Cotton <dcotton@linuxautrement.com>
>Can you try this again with a CLI open on * with a high verbose level. >This is what I get when asterisk drops out of the chain. > chan_bluetooth.c:701 sco_thread: SCO connection error: Connection >refused (errno 111)This is the trace asterisk is giving me: ---------------------------------------------------------------------------- ----- show version Asterisk CVS-Nv1-0-9-11/14/05-15:26:22 built by root@voip2 on a i686 running Linux sip show peers Name/username Host Dyn Nat ACL Mask Port Status 02/02 (Unspecified) D 255.255.255.255 0 Unmonitored 01/01 192.168.129.237 D 255.255.255.255 5060 Unmonitored *CLI> bluetooth show peers BDAddr Name Role Status A/C SCOCon/Fd/Th Sig ----------------- ---------- ---- ----------- --- ------------ --- 00:0E:6D:7A:B1:FA N7600 AG Ready Yes -1/-1/0 Yes 00:12:62:E1:E5:45 Nokia AG Ready Yes -1/-1/0 Yes *CLI> Nov 18 10:30:45 DEBUG[18269]: chan_sip.c:5456 check_user_full: Setting NAT on RTP to 0 Nov 18 10:30:45 DEBUG[18269]: chan_sip.c:841 __c 'CD2A2727-D9EC-400B-A83A-EFB443FF2776@192.168.129.237' of Response 34150: Found Nov 18 10:30:45 DEBUG[18269]: chan_sip.c:5456 check_user_full: Setting NAT on RTP to 0 Nov 18 10:30:45 DEBUG[18269]: chan_sip.c:7354 handle_request: Check for res for 01 Nov 18 10:30:45 DEBUG[18269]: chan_sip.c:1623 update_user_counter: Call from user '01' is 1 out of 0 Nov 18 10:30:45 DEBUG[18269]: chan_sip.c:4643 build_route: build_route: Contact hop: <sip:01@192.168.129.237:5060> -- Executing Dial("SIP/01-1724", "BLT/N7600/XXXXXXXXXXX") in new stack Nov 18 10:30:45 DEBUG[18312]: /usr/src/chan_bluetooth/chan_bluetooth.c:1112 blt_request: Dialing 'XXXXXXXXXXX' via 'N7600' Nov 18 10:30:46 DEBUG[18312]: /usr/src/chan_bluetooth/chan_bluetooth.c:882 blt_call: Calling N7600 on BLT/N7600 [t: 0] [AG] N7600 < ATDXXXXXXXXXXX; -- Called N7600 [AG] N7600 > ATDXXXXXXXXXXX; [AG] N7600 > OK Nov 18 10:30:47 DEBUG[18281]: /usr/src/chan_bluetooth/chan_bluetooth.c:1578 ag_unknown_response: Got UNKN response: OK Nov 18 10:30:47 DEBUG[18281]: /usr/src/chan_bluetooth/chan_bluetooth.c:386 set_cind: CIND 3 set to 2 [AG] N7600 > +CIEV: 3,2 Nov 18 10:30:47 DEBUG[18281]: /usr/src/chan_bluetooth/chan_bluetooth.c:386 set_cind: CIND 4 set to 2 [AG] N7600 > +CIEV: 4,2 Nov 18 10:30:50 DEBUG[18281]: /usr/src/chan_bluetooth/chan_bluetooth.c:386 set_cind: CIND 3 set to 3 [AG] N7600 > +CIEV: 3,3 Nov 18 10:30:50 DEBUG[18281]: /usr/src/chan_bluetooth/chan_bluetooth.c:386 set_cind: CIND 4 set to 3 [AG] N7600 > +CIEV: 4,3 -- BLT/N7600 is ringing Nov 18 10:30:52 DEBUG[18281]: /usr/src/chan_bluetooth/chan_bluetooth.c:386 set_cind: CIND 1 set to 1 [AG] N7600 > +CIEV: 1,1 -- BLT/N7600 answered SIP/01-1724 Nov 18 10:30:52 DEBUG[18281]: /usr/src/chan_bluetooth/chan_bluetooth.c:386 set_cind: CIND 3 set to 0 [AG] N7600 > +CIEV: 3,0 Nov 18 10:30:52 DEBUG[18281]: /usr/src/chan_bluetooth/chan_bluetooth.c:386 set_cind: CIND 4 set to 0 [AG] N7600 > +CIEV: 4,0 Nov 18 10:30:52 DEBUG[18269]: chan_sip.c:841 __sip_ack: Stopping retransmission on 'CD2A2727-D9EC-400B-A83A-EFB443FF2776@192.168.129.237' of Response 34151: Found Nov 18 10:30:57 DEBUG[18312]: channel.c:2675 ast_channel_bridge: Didn't get a frame from channel: SIP/01-1724 Nov 18 10:30:57 DEBUG[18312]: channel.c:2746 ast_channel_bridge: Bridge stops bridging channels SIP/01-1724 and BLT/N7600 Nov 18 10:30:57 DEBUG[18312]: /usr/src/chan_bluetooth/chan_bluetooth.c:932 blt_hangup: blt_hangup(BLT/N7600) [AG] N7600 < AT+CHUP Nov 18 10:30:57 DEBUG[18312]: app_dial.c:1054 dial_exec: Exiting with DIALSTATUS=ANSWER. == Spawn extension (default, 04, 1) exited non-zero on 'SIP/01-1724' Nov 18 10:30:57 DEBUG[18312]: chan_sip.c:1726 sip_hangup: update_user_counter(01) - decrement inUse counter [AG] N7600 > AT+CHUP [AG] N7600 > OK Nov 18 10:30:57 DEBUG[18281]: /usr/src/chan_bluetooth/chan_bluetooth.c:1578 ag_unknown_response: Got UNKN response: OK Nov 18 10:30:57 DEBUG[18281]: /usr/src/chan_bluetooth/chan_bluetooth.c:386 set_cind: CIND 1 set to 0 [AG] N7600 > +CIEV: 1,0 ---------------------------------------------------------------------------- ----- ast_channel_bridge stops bridging channels SIP and BLT? Kind Regards, Victor.
Hi, I have compiled chan_bluetooth on FC4 (kernel 2.6.14-1). The phone (SonyEricsson W800i) is paired with the BT dongle (ID 0db0:1967 Micro Star International Bluetooth Dongle). I have configured vi /etc/asterisk/bluetooth.conf like that: [general] rfchannel_hs = 2 rfchannel_ag = 3 interface = 0 channel = 2 autoconnect = yes [00:12:EE:C0:7A:81] name = W800 type = AG channel = 13 autoconnect = yes ..but when I start Asterisk, I get the folllowing errors: Nov 24 20:55:13 NOTICE[25742]: chan_bluetooth.c:2227 try_connect: Initialised bluetooth link to device W800 [AG] W800 < AT+BRSF=23 Nov 24 20:55:13 ERROR[25742]: chan_bluetooth.c:2628 handle_rd_data: Device W800: Expected '\n' got 13. state = BLT_STATE_WANT_N2: What can I do to solve this issue? Thank you and best regards, Dan