# Usb dongle block caller id

**URL:** <https://community.asterisk.org/t/usb-dongle-block-caller-id/74247>\
**Category:** Asterisk Support\
**Created:** [April 11, 2018, 7:48am UTC](https://community.asterisk.org/t/usb-dongle-block-caller-id/74247 "2018-04-11T07:48:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![atux\_null](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@atux\_null](https://community.asterisk.org/u/atux_null)\
**Post date:** [April 11, 2018, 7:48am UTC](https://community.asterisk.org/t/usb-dongle-block-caller-id/74247/1 "2018-04-11T07:48:44Z")

</div>

Hi. i am running asterisk 11 and i have a 3g usb dongle to make/receive calls. At the moment the outgoing calls are with the following:

```auto
exten => _9X.,1,Dial(Dongle/dongle800/${EXTEN:1},120,KT)
exten => _9X.,n,Hangup(${HANGUPCAUSE})

```

i need to block my caller ID on the outgoing calls and the carrier has the #31# for this to works(it has been checked in an ordinary mobile phone). If i edit the dialplan to be:

```auto
exten => _9X.,1,Dial(Dongle/dongle800/#31#ww${EXTEN:1},120,KT)

```

but the carrier responds that the number is wrong. Here is the output from the asterisk’s console:

```auto

root@Pbx: /etc/asterisk $ asterisk -rvvv
Asterisk 11.25.3, Copyright (C) 1999 - 2013 D == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5 -- Executing [9211123456@AllCalls:1] Goto("SIP/500-00000003", "DefaultPlan,9211123456,1") in new stack -- Goto (DefaultPlan,92105727105,1)
    -- Executing [9211123456@DefaultPlan:1] Dial("SIP/500-00000003", "Dongle/dongle800/#31#ww211123456,120,KT") in new stack [2018-04-10 13:23:46] WARNING[1327][C-00000003]: channel.c:79 parse_dial_string: Invalid destination '#31#ww211123456' in chan_dongle, only 0123456789*#+ABC allowed [2018-04-10 13:23:46] WARNING[1327][C-00000003]: app_dial.c:2455 dial_exec_full: Unable to create channel of type 'Dongle' (cause 88 - Incompatible destination)
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [9211123456@DefaultPlan:2] Hangup("SIP/500-00000003", "88") in new stack == Spawn extension (DefaultPlan, 9211123456, 2) exited non-zero on 'SIP/500-00000003'
Pbx*CLI>

```

any ideas please?

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [April 11, 2018, 7:59am UTC](https://community.asterisk.org/t/usb-dongle-block-caller-id/74247/2 "2018-04-11T07:59:22Z")

</div>

Previous chan\_dongle questions have established that there is no chan\_dongle experience amongst the regulars on this forum. It is community supported code.

---

<div class="post-metadata">

**Author:** ![przeqpiciel](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@przeqpiciel](https://community.asterisk.org/u/przeqpiciel)\
**Post date:** [April 11, 2018, 11:23am UTC](https://community.asterisk.org/t/usb-dongle-block-caller-id/74247/3 "2018-04-11T11:23:26Z")

</div>

Why are you calling with double ‘w’ in your called number?

---

<div class="post-metadata">

**Author:** ![atux\_null](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@atux\_null](https://community.asterisk.org/u/atux_null)\
**Post date:** [April 11, 2018, 1:15pm UTC](https://community.asterisk.org/t/usb-dongle-block-caller-id/74247/4 "2018-04-11T13:15:09Z")

</div>

i thought that it might help to add a delay of 0.5 secs for each w.  
Do you see any way to make it work, please?  
If i take the ww off, then i have:

```auto
[2018-04-11 15:59:55] NOTICE[1172]: chan_sip.c:23797 handle_response_peerpoke: Peer '500' is now Reachable. (40ms / 2000ms) == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5 -- Executing [9211123456@AllCalls:1] Goto("SIP/500-00000004", "DefaultPlan,9211123456,1") in new stack
    -- Goto (DefaultPlan,9211123456,1) -- Executing [9211123456@DefaultPlan:1] Dial("SIP/500-00000004", "Dongle/dongle800/#31#211123456,120,KT") in new stack
    -- Called Dongle/dongle800/#31#211123456 -- Dongle/dongle800-0100000001 is making progress passing it to SIP/500-00000004
  == Spawn extension (DefaultPlan, 9211123456, 1) exited non-zero on 'SIP/500-00000004'

```

and the carrier to respond that the number is not valid and that i have to call directory services.

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [April 11, 2018, 5:17pm UTC](https://community.asterisk.org/t/usb-dongle-block-caller-id/74247/5 "2018-04-11T17:17:59Z")

</div>

During call setup, mobile phone systems don’t send one digit at a time; they send the whole number, in one go, when you press the end key, or do the equivalent electronically.

---

<div class="post-metadata">

**Author:** ![atux\_null](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@atux\_null](https://community.asterisk.org/u/atux_null)\
**Post date:** [April 11, 2018, 7:43pm UTC](https://community.asterisk.org/t/usb-dongle-block-caller-id/74247/6 "2018-04-11T19:43:05Z")

</div>

OK, so how do i do that, please?

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [April 11, 2018, 9:31pm UTC](https://community.asterisk.org/t/usb-dongle-block-caller-id/74247/7 "2018-04-11T21:31:08Z")

</div>

Back to my original response: there is no chan\_dongle expertise here. If removing the w’s doesn’t help, it is unlikely anyone will know what is going wrong, or even if what you want is possible.
