Brekeke Forum Index » Brekeke PBX Forum

Post new topic   Reply to topic
Dial plan to strip off prefix from caller id & destinato
Author Message
muja
Brekeke Member


Joined: 08 Aug 2009
Posts: 15
Location: Nigeria

PostPosted: Thu Oct 14, 2010 9:10 am    Post subject: Dial plan to strip off prefix from caller id & destinato Reply with quote

1. Brekeke Product Name and version:PBX 2_3_6_0

2. Java version:

3. OS type and the version: Windows Sever 2003

4. UA (phone), gateway or other hardware/software involved: SVK IVRCat and SVK RadiusCat billing

5. Select your network pattern from http:Pattern 2

6. Your problem:
My provider sends my incoming calls with prefix attached to the Calling Number and the destinationa number. So i need a dial plan that helps strip of the prefixes from both the Called Number and Destination Number and replace the prefix with 0. T

My provider sends call as:
Calling Number = 00923480523090
Destination Number= +23416260603

I want to strip of prefix and replace the with 0 so it look like:
Calling Number = 08052309023
Destination Number= 016260603

Currently i use just one dial plan for both Inbound and Outbound Calls:
Matching Patterns
$request = ^INVITE
To = sip:(.+)@
Deploy Patterns
$auth = false
To = sip:%1@XXX.XXX.XXX.XX
$continue = false


Thank you

[/b]
Back to top
View user's profile Send e-mail
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Thu Oct 14, 2010 9:42 am    Post subject: Reply with quote


Matching Patterns
$request = ^INVITE
$addr = <incoming_source_IP>
$geturi(From) = sip:.{6}(.+)@(.+)
To = sip:\+.{3}(.+)@
Deploy Patterns
$auth = false
From = sip:0%1@%2
To = sip:0%3@<destination_IP>

put the above dial plan at top of others
when there is a call from <incoming_source_ip>(provider IP), the dial plan will replace the first 6 digits in From with 0 and replace + and first 3 digits in To with 0 and send call to destination_IP
Back to top
View user's profile
muja
Brekeke Member


Joined: 08 Aug 2009
Posts: 15
Location: Nigeria

PostPosted: Thu Oct 14, 2010 11:34 am    Post subject: Dial plan to strip off prefix from caller id Reply with quote

Thanks for the reply i have implemented the dial plan and have succeded in removing the prefix from the destination number but the caller id prefix still appears as here is a call trace:

sip:0092348135739602;cpc=ordinary@anonymous.invalid
(62.173.41.131:5060)

sip:016260200@41.217.205.27:5060
(41.217.205.28:57608)

2010-10-14 19:32:49.675

Inviting


how do i strip off the 009234 prefix from the Caller ID

Thank you
Back to top
View user's profile Send e-mail
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Thu Oct 14, 2010 1:18 pm    Post subject: Reply with quote

is the dial plan in use for the call?
you can check it from sip server / "active sessions"/rule field for the call
or capture the packets with wireshark and check the from header in the invite from brekeke to callee
Back to top
View user's profile
muja
Brekeke Member


Joined: 08 Aug 2009
Posts: 15
Location: Nigeria

PostPosted: Fri Oct 15, 2010 2:15 am    Post subject: Dial plan to strip off prefix from caller id Reply with quote

Yes the dial plan is in use for the call and it works only for the destination number stripping of the +234 prefix.
Back to top
View user's profile Send e-mail
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Fri Oct 15, 2010 9:27 am    Post subject: Reply with quote

can you capture the packets of the call and check if the From field is changed in the Invite from provider to brekeke and the invite from brekeke to destination
http://wiki.brekeke.com/wiki/Capture-Packets-Wireshark
Back to top
View user's profile
muja
Brekeke Member


Joined: 08 Aug 2009
Posts: 15
Location: Nigeria

PostPosted: Fri Oct 15, 2010 10:53 am    Post subject: Reply with quote

Thank for the reply, i hope i capture the trace right, this is it:

No. Time Source Destination Protocol Info
1 0.000000 Teletron_14:02:69 Broadcast ARP Who has 172.17.17.40? Tell 172.17.17.202

Frame 1 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)

No. Time Source Destination Protocol Info
2 0.611224 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0x1a3a2850

Frame 2 (590 bytes on wire, 590 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Internet Protocol, Src: 0.0.0.0 (0.0.0.0), Dst: 255.255.255.255 (255.255.255.255)
User Datagram Protocol, Src Port: bootpc (6Cool, Dst Port: bootps (67)
Bootstrap Protocol

No. Time Source Destination Protocol Info
3 2.610924 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0x1a3a2850

Frame 3 (590 bytes on wire, 590 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Internet Protocol, Src: 0.0.0.0 (0.0.0.0), Dst: 255.255.255.255 (255.255.255.255)
User Datagram Protocol, Src Port: bootpc (6Cool, Dst Port: bootps (67)
Bootstrap Protocol

No. Time Source Destination Protocol Info
4 3.996331 Teletron_14:02:69 Broadcast ARP Who has 172.17.17.40? Tell 172.17.17.202

Frame 4 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)

No. Time Source Destination Protocol Info
5 6.043304 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0x72f95e95

Frame 5 (590 bytes on wire, 590 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Internet Protocol, Src: 0.0.0.0 (0.0.0.0), Dst: 255.255.255.255 (255.255.255.255)
User Datagram Protocol, Src Port: bootpc (6Cool, Dst Port: bootps (67)
Bootstrap Protocol

No. Time Source Destination Protocol Info
6 6.612305 Teletron_14:02:69 Broadcast ARP Who has 172.17.17.7? Tell 172.17.17.202

Frame 6 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)

No. Time Source Destination Protocol Info
7 8.049147 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0x72f95e95

Frame 7 (590 bytes on wire, 590 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Internet Protocol, Src: 0.0.0.0 (0.0.0.0), Dst: 255.255.255.255 (255.255.255.255)
User Datagram Protocol, Src Port: bootpc (6Cool, Dst Port: bootps (67)
Bootstrap Protocol

No. Time Source Destination Protocol Info
8 10.055115 0.0.0.0 255.255.255.255 DHCP DHCP Discover - Transaction ID 0x72f95e95

Frame 8 (590 bytes on wire, 590 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Internet Protocol, Src: 0.0.0.0 (0.0.0.0), Dst: 255.255.255.255 (255.255.255.255)
User Datagram Protocol, Src Port: bootpc (6Cool, Dst Port: bootps (67)
Bootstrap Protocol

No. Time Source Destination Protocol Info
9 10.395187 41.217.205.27 41.217.205.28 SIP Request: OPTIONS sip:016260200@192.168.0.100:5060

Frame 9 (368 bytes on wire, 368 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: D-Link_8b:50:db (00:1e:58:8b:50:db)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 41.217.205.28 (41.217.205.2Cool
User Datagram Protocol, Src Port: sip (5060), Dst Port: 57607 (57607)
Session Initiation Protocol

No. Time Source Destination Protocol Info
10 10.427794 41.217.205.28 41.217.205.27 SIP Status: 200 OK

Frame 10 (482 bytes on wire, 482 bytes captured)
Ethernet II, Src: D-Link_8b:50:db (00:1e:58:8b:50:db), Dst: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24)
Internet Protocol, Src: 41.217.205.28 (41.217.205.2Cool, Dst: 41.217.205.27 (41.217.205.27)
User Datagram Protocol, Src Port: 57607 (57607), Dst Port: sip (5060)
Session Initiation Protocol

No. Time Source Destination Protocol Info
11 12.801322 62.173.41.131 41.217.205.27 SIP Request: OPTIONS sip:41.217.205.27:5060

Frame 11 (357 bytes on wire, 357 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24)
Internet Protocol, Src: 62.173.41.131 (62.173.41.131), Dst: 41.217.205.27 (41.217.205.27)
User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
Session Initiation Protocol

No. Time Source Destination Protocol Info
12 12.801540 41.217.205.27 62.173.41.131 SIP Status: 100 Trying

Frame 12 (329 bytes on wire, 329 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: Teletron_14:02:69 (00:0d:f5:14:02:69)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 62.173.41.131 (62.173.41.131)
User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
Session Initiation Protocol

No. Time Source Destination Protocol Info
13 12.803980 41.217.205.27 62.173.41.131 SIP Status: 404 Not Found

Frame 13 (347 bytes on wire, 347 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: Teletron_14:02:69 (00:0d:f5:14:02:69)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 62.173.41.131 (62.173.41.131)
User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
Session Initiation Protocol

No. Time Source Destination Protocol Info
14 13.444263 41.217.205.27 41.217.205.25 SSDP M-SEARCH * HTTP/1.1

Frame 14 (206 bytes on wire, 206 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: Teletron_14:02:69 (00:0d:f5:14:02:69)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 41.217.205.25 (41.217.205.25)
User Datagram Protocol, Src Port: simplement-tie (2756), Dst Port: ssdp (1900)
Hypertext Transfer Protocol

No. Time Source Destination Protocol Info
15 14.044522 41.217.205.27 41.217.205.25 SSDP M-SEARCH * HTTP/1.1

Frame 15 (206 bytes on wire, 206 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: Teletron_14:02:69 (00:0d:f5:14:02:69)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 41.217.205.25 (41.217.205.25)
User Datagram Protocol, Src Port: simplement-tie (2756), Dst Port: ssdp (1900)
Hypertext Transfer Protocol

No. Time Source Destination Protocol Info
16 14.645142 41.217.205.27 41.217.205.25 SSDP M-SEARCH * HTTP/1.1

Frame 16 (206 bytes on wire, 206 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: Teletron_14:02:69 (00:0d:f5:14:02:69)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 41.217.205.25 (41.217.205.25)
User Datagram Protocol, Src Port: simplement-tie (2756), Dst Port: ssdp (1900)
Hypertext Transfer Protocol

No. Time Source Destination Protocol Info
17 18.045516 Teletron_14:02:69 Broadcast ARP Who has 41.217.206.1? Tell 41.217.206.2

Frame 17 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)

No. Time Source Destination Protocol Info
18 22.395258 41.217.205.27 41.217.205.28 SIP Request: OPTIONS sip:016260200@192.168.0.100:5060

Frame 18 (368 bytes on wire, 368 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: D-Link_8b:50:db (00:1e:58:8b:50:db)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 41.217.205.28 (41.217.205.2Cool
User Datagram Protocol, Src Port: sip (5060), Dst Port: 57607 (57607)
Session Initiation Protocol

No. Time Source Destination Protocol Info
19 22.427772 41.217.205.28 41.217.205.27 SIP Status: 200 OK

Frame 19 (481 bytes on wire, 481 bytes captured)
Ethernet II, Src: D-Link_8b:50:db (00:1e:58:8b:50:db), Dst: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24)
Internet Protocol, Src: 41.217.205.28 (41.217.205.2Cool, Dst: 41.217.205.27 (41.217.205.27)
User Datagram Protocol, Src Port: 57607 (57607), Dst Port: sip (5060)
Session Initiation Protocol

No. Time Source Destination Protocol Info
20 29.971940 62.173.33.157 41.217.205.27 SIP Request: OPTIONS sip:41.217.205.27

Frame 20 (515 bytes on wire, 515 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24)
Internet Protocol, Src: 62.173.33.157 (62.173.33.157), Dst: 41.217.205.27 (41.217.205.27)
User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
Session Initiation Protocol

No. Time Source Destination Protocol Info
21 29.972199 41.217.205.27 62.173.33.157 SIP Status: 100 Trying

Frame 21 (345 bytes on wire, 345 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: Teletron_14:02:69 (00:0d:f5:14:02:69)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 62.173.33.157 (62.173.33.157)
User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
Session Initiation Protocol

No. Time Source Destination Protocol Info
22 29.974642 41.217.205.27 62.173.33.157 SIP Status: 404 Not Found

Frame 22 (363 bytes on wire, 363 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: Teletron_14:02:69 (00:0d:f5:14:02:69)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 62.173.33.157 (62.173.33.157)
User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
Session Initiation Protocol

No. Time Source Destination Protocol Info
23 30.641230 Teletron_14:02:69 Broadcast ARP Who has 41.217.206.70? Tell 41.217.206.65

Frame 23 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)

No. Time Source Destination Protocol Info
24 31.477486 Teletron_14:02:69 Broadcast ARP Who has 41.217.206.70? Tell 41.217.206.65

Frame 24 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)

No. Time Source Destination Protocol Info
25 32.140376 Teletron_14:02:69 Broadcast ARP Who has 41.217.206.70? Tell 41.217.206.65

Frame 25 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)

No. Time Source Destination Protocol Info
26 32.840143 Teletron_14:02:69 Broadcast ARP Who has 41.217.206.70? Tell 41.217.206.65

Frame 26 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)

No. Time Source Destination Protocol Info
27 32.995916 62.173.41.131 41.217.205.27 SIP Request: OPTIONS sip:41.217.205.27:5060

Frame 27 (357 bytes on wire, 357 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24)
Internet Protocol, Src: 62.173.41.131 (62.173.41.131), Dst: 41.217.205.27 (41.217.205.27)
User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
Session Initiation Protocol

No. Time Source Destination Protocol Info
28 32.996136 41.217.205.27 62.173.41.131 SIP Status: 100 Trying

Frame 28 (329 bytes on wire, 329 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: Teletron_14:02:69 (00:0d:f5:14:02:69)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 62.173.41.131 (62.173.41.131)
User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
Session Initiation Protocol

No. Time Source Destination Protocol Info
29 32.999118 41.217.205.27 62.173.41.131 SIP Status: 404 Not Found

Frame 29 (347 bytes on wire, 347 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: Teletron_14:02:69 (00:0d:f5:14:02:69)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 62.173.41.131 (62.173.41.131)
User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
Session Initiation Protocol

No. Time Source Destination Protocol Info
30 33.475024 Teletron_14:02:69 Broadcast ARP Who has 41.217.206.70? Tell 41.217.206.65

Frame 30 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)

No. Time Source Destination Protocol Info
31 34.395344 41.217.205.27 41.217.205.28 SIP Request: OPTIONS sip:016260200@192.168.0.100:5060

Frame 31 (368 bytes on wire, 368 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: D-Link_8b:50:db (00:1e:58:8b:50:db)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 41.217.205.28 (41.217.205.2Cool
User Datagram Protocol, Src Port: sip (5060), Dst Port: 57607 (57607)
Session Initiation Protocol

No. Time Source Destination Protocol Info
32 34.428030 41.217.205.28 41.217.205.27 SIP Status: 200 OK

Frame 32 (481 bytes on wire, 481 bytes captured)
Ethernet II, Src: D-Link_8b:50:db (00:1e:58:8b:50:db), Dst: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24)
Internet Protocol, Src: 41.217.205.28 (41.217.205.2Cool, Dst: 41.217.205.27 (41.217.205.27)
User Datagram Protocol, Src Port: 57607 (57607), Dst Port: sip (5060)
Session Initiation Protocol

No. Time Source Destination Protocol Info
33 37.920706 41.217.205.27 62.173.41.131 SIP Status: 408 Request Timeout

Frame 33 (432 bytes on wire, 432 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: Teletron_14:02:69 (00:0d:f5:14:02:69)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 62.173.41.131 (62.173.41.131)
Transmission Control Protocol, Src Port: sip (5060), Dst Port: 60583 (60583), Seq: 1, Ack: 1, Len: 378
Session Initiation Protocol

No. Time Source Destination Protocol Info
34 37.920810 41.217.205.27 41.217.205.28 SIP Request: CANCEL sip:016260200@192.168.0.100:5060;user=phone

Frame 34 (464 bytes on wire, 464 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: D-Link_8b:50:db (00:1e:58:8b:50:db)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 41.217.205.28 (41.217.205.2Cool
User Datagram Protocol, Src Port: sip (5060), Dst Port: 57607 (57607)
Session Initiation Protocol

No. Time Source Destination Protocol Info
35 37.983133 41.217.205.28 41.217.205.27 SIP Status: 487 Request Cancelled

Frame 35 (721 bytes on wire, 721 bytes captured)
Ethernet II, Src: D-Link_8b:50:db (00:1e:58:8b:50:db), Dst: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24)
Internet Protocol, Src: 41.217.205.28 (41.217.205.2Cool, Dst: 41.217.205.27 (41.217.205.27)
User Datagram Protocol, Src Port: 57607 (57607), Dst Port: sip (5060)
Session Initiation Protocol

No. Time Source Destination Protocol Info
36 37.983450 41.217.205.27 41.217.205.28 SIP Request: ACK sip:016260200@192.168.0.100:5060;user=phone

Frame 36 (458 bytes on wire, 458 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: D-Link_8b:50:db (00:1e:58:8b:50:db)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 41.217.205.28 (41.217.205.2Cool
User Datagram Protocol, Src Port: sip (5060), Dst Port: 57607 (57607)
Session Initiation Protocol

No. Time Source Destination Protocol Info
37 37.985500 62.173.41.131 41.217.205.27 TCP 60583 > sip [ACK] Seq=1 Ack=379 Win=49262 Len=0

Frame 37 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24)
Internet Protocol, Src: 62.173.41.131 (62.173.41.131), Dst: 41.217.205.27 (41.217.205.27)
Transmission Control Protocol, Src Port: 60583 (60583), Dst Port: sip (5060), Seq: 1, Ack: 379, Len: 0

No. Time Source Destination Protocol Info
38 37.985870 62.173.41.131 41.217.205.27 SIP Request: ACK sip:+23416260200@41.217.205.27:5060;user=phone

Frame 38 (438 bytes on wire, 438 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24)
Internet Protocol, Src: 62.173.41.131 (62.173.41.131), Dst: 41.217.205.27 (41.217.205.27)
User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
Session Initiation Protocol

No. Time Source Destination Protocol Info
39 37.994608 41.217.205.28 41.217.205.27 SIP Status: 200 OK

Frame 39 (590 bytes on wire, 590 bytes captured)
Ethernet II, Src: D-Link_8b:50:db (00:1e:58:8b:50:db), Dst: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24)
Internet Protocol, Src: 41.217.205.28 (41.217.205.2Cool, Dst: 41.217.205.27 (41.217.205.27)
User Datagram Protocol, Src Port: 57607 (57607), Dst Port: sip (5060)
Session Initiation Protocol

No. Time Source Destination Protocol Info
40 42.994995 41.217.205.27 62.173.41.131 TCP sip > 60583 [FIN, ACK] Seq=379 Ack=1 Win=64086 Len=0

Frame 40 (54 bytes on wire, 54 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: Teletron_14:02:69 (00:0d:f5:14:02:69)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 62.173.41.131 (62.173.41.131)
Transmission Control Protocol, Src Port: sip (5060), Dst Port: 60583 (60583), Seq: 379, Ack: 1, Len: 0

No. Time Source Destination Protocol Info
41 42.996937 62.173.41.131 41.217.205.27 TCP 60583 > sip [ACK] Seq=1 Ack=380 Win=49639 Len=0

Frame 41 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24)
Internet Protocol, Src: 62.173.41.131 (62.173.41.131), Dst: 41.217.205.27 (41.217.205.27)
Transmission Control Protocol, Src Port: 60583 (60583), Dst Port: sip (5060), Seq: 1, Ack: 380, Len: 0

No. Time Source Destination Protocol Info
42 43.007613 62.173.41.131 41.217.205.27 TCP 60583 > sip [FIN, ACK] Seq=1 Ack=380 Win=49639 Len=0

Frame 42 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24)
Internet Protocol, Src: 62.173.41.131 (62.173.41.131), Dst: 41.217.205.27 (41.217.205.27)
Transmission Control Protocol, Src Port: 60583 (60583), Dst Port: sip (5060), Seq: 1, Ack: 380, Len: 0

No. Time Source Destination Protocol Info
43 43.007631 41.217.205.27 62.173.41.131 TCP sip > 60583 [ACK] Seq=380 Ack=2 Win=64086 Len=0

Frame 43 (54 bytes on wire, 54 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: Teletron_14:02:69 (00:0d:f5:14:02:69)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 62.173.41.131 (62.173.41.131)
Transmission Control Protocol, Src Port: sip (5060), Dst Port: 60583 (60583), Seq: 380, Ack: 2, Len: 0

No. Time Source Destination Protocol Info
44 43.448352 41.217.205.27 41.217.205.25 SSDP M-SEARCH * HTTP/1.1

Frame 44 (206 bytes on wire, 206 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: Teletron_14:02:69 (00:0d:f5:14:02:69)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 41.217.205.25 (41.217.205.25)
User Datagram Protocol, Src Port: cnrp (2757), Dst Port: ssdp (1900)
Hypertext Transfer Protocol

No. Time Source Destination Protocol Info
45 44.039361 173.31.93.141 41.217.205.27 TCP 3001 > microsoft-ds [SYN] Seq=0 Win=16384 Len=0 MSS=1460

Frame 45 (62 bytes on wire, 62 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24)
Internet Protocol, Src: 173.31.93.141 (173.31.93.141), Dst: 41.217.205.27 (41.217.205.27)
Transmission Control Protocol, Src Port: 3001 (3001), Dst Port: microsoft-ds (445), Seq: 0, Len: 0

No. Time Source Destination Protocol Info
46 44.039400 41.217.205.27 173.31.93.141 TCP microsoft-ds > 3001 [SYN, ACK] Seq=0 Ack=1 Win=16384 Len=0 MSS=1460

Frame 46 (62 bytes on wire, 62 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: Teletron_14:02:69 (00:0d:f5:14:02:69)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 173.31.93.141 (173.31.93.141)
Transmission Control Protocol, Src Port: microsoft-ds (445), Dst Port: 3001 (3001), Seq: 0, Ack: 1, Len: 0

No. Time Source Destination Protocol Info
47 44.048597 41.217.205.27 41.217.205.25 SSDP M-SEARCH * HTTP/1.1

Frame 47 (206 bytes on wire, 206 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: Teletron_14:02:69 (00:0d:f5:14:02:69)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 41.217.205.25 (41.217.205.25)
User Datagram Protocol, Src Port: cnrp (2757), Dst Port: ssdp (1900)
Hypertext Transfer Protocol

No. Time Source Destination Protocol Info
48 44.317223 173.31.93.141 41.217.205.27 TCP 3001 > microsoft-ds [ACK] Seq=1 Ack=1 Win=17520 Len=0

Frame 48 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24)
Internet Protocol, Src: 173.31.93.141 (173.31.93.141), Dst: 41.217.205.27 (41.217.205.27)
Transmission Control Protocol, Src Port: 3001 (3001), Dst Port: microsoft-ds (445), Seq: 1, Ack: 1, Len: 0

No. Time Source Destination Protocol Info
49 44.317271 41.217.205.27 173.31.93.141 TCP microsoft-ds > 3001 [RST] Seq=1 Win=0 Len=0

Frame 49 (54 bytes on wire, 54 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: Teletron_14:02:69 (00:0d:f5:14:02:69)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 173.31.93.141 (173.31.93.141)
Transmission Control Protocol, Src Port: microsoft-ds (445), Dst Port: 3001 (3001), Seq: 1, Len: 0

No. Time Source Destination Protocol Info
50 44.318081 173.31.93.141 41.217.205.27 TCP 3001 > microsoft-ds [FIN, ACK] Seq=1 Ack=1 Win=17520 Len=0

Frame 50 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24)
Internet Protocol, Src: 173.31.93.141 (173.31.93.141), Dst: 41.217.205.27 (41.217.205.27)
Transmission Control Protocol, Src Port: 3001 (3001), Dst Port: microsoft-ds (445), Seq: 1, Ack: 1, Len: 0

No. Time Source Destination Protocol Info
51 44.318094 41.217.205.27 173.31.93.141 TCP microsoft-ds > 3001 [RST] Seq=1 Win=0 Len=0

Frame 51 (54 bytes on wire, 54 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: Teletron_14:02:69 (00:0d:f5:14:02:69)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 173.31.93.141 (173.31.93.141)
Transmission Control Protocol, Src Port: microsoft-ds (445), Dst Port: 3001 (3001), Seq: 1, Len: 0

No. Time Source Destination Protocol Info
52 44.649223 41.217.205.27 41.217.205.25 SSDP M-SEARCH * HTTP/1.1

Frame 52 (206 bytes on wire, 206 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: Teletron_14:02:69 (00:0d:f5:14:02:69)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 41.217.205.25 (41.217.205.25)
User Datagram Protocol, Src Port: cnrp (2757), Dst Port: ssdp (1900)
Hypertext Transfer Protocol

No. Time Source Destination Protocol Info
53 46.395429 41.217.205.27 41.217.205.28 SIP Request: OPTIONS sip:016260200@192.168.0.100:5060

Frame 53 (368 bytes on wire, 368 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: D-Link_8b:50:db (00:1e:58:8b:50:db)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 41.217.205.28 (41.217.205.2Cool
User Datagram Protocol, Src Port: sip (5060), Dst Port: 57607 (57607)
Session Initiation Protocol

No. Time Source Destination Protocol Info
54 46.426980 41.217.205.28 41.217.205.27 SIP Status: 200 OK

Frame 54 (481 bytes on wire, 481 bytes captured)
Ethernet II, Src: D-Link_8b:50:db (00:1e:58:8b:50:db), Dst: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24)
Internet Protocol, Src: 41.217.205.28 (41.217.205.2Cool, Dst: 41.217.205.27 (41.217.205.27)
User Datagram Protocol, Src Port: 57607 (57607), Dst Port: sip (5060)
Session Initiation Protocol

No. Time Source Destination Protocol Info
55 53.070535 62.173.41.131 41.217.205.27 SIP Request: OPTIONS sip:41.217.205.27:5060

Frame 55 (357 bytes on wire, 357 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24)
Internet Protocol, Src: 62.173.41.131 (62.173.41.131), Dst: 41.217.205.27 (41.217.205.27)
User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
Session Initiation Protocol

No. Time Source Destination Protocol Info
56 53.070807 41.217.205.27 62.173.41.131 SIP Status: 100 Trying

Frame 56 (329 bytes on wire, 329 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: Teletron_14:02:69 (00:0d:f5:14:02:69)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 62.173.41.131 (62.173.41.131)
User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
Session Initiation Protocol

No. Time Source Destination Protocol Info
57 53.073312 41.217.205.27 62.173.41.131 SIP Status: 404 Not Found

Frame 57 (347 bytes on wire, 347 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: Teletron_14:02:69 (00:0d:f5:14:02:69)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 62.173.41.131 (62.173.41.131)
User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
Session Initiation Protocol

No. Time Source Destination Protocol Info
58 58.395505 41.217.205.27 41.217.205.28 SIP Request: OPTIONS sip:016260200@192.168.0.100:5060

Frame 58 (368 bytes on wire, 368 bytes captured)
Ethernet II, Src: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24), Dst: D-Link_8b:50:db (00:1e:58:8b:50:db)
Internet Protocol, Src: 41.217.205.27 (41.217.205.27), Dst: 41.217.205.28 (41.217.205.2Cool
User Datagram Protocol, Src Port: sip (5060), Dst Port: 57607 (57607)
Session Initiation Protocol

No. Time Source Destination Protocol Info
59 58.427324 41.217.205.28 41.217.205.27 SIP Status: 200 OK

Frame 59 (482 bytes on wire, 482 bytes captured)
Ethernet II, Src: D-Link_8b:50:db (00:1e:58:8b:50:db), Dst: Giga-Byt_cd:2b:24 (00:1f:d0:cd:2b:24)
Internet Protocol, Src: 41.217.205.28 (41.217.205.2Cool, Dst: 41.217.205.27 (41.217.205.27)
User Datagram Protocol, Src Port: 57607 (57607), Dst Port: sip (5060)
Session Initiation Protocol

No. Time Source Destination Protocol Info
60 59.214202 Teletron_14:02:69 Broadcast ARP Who has 41.217.205.54? Tell 41.217.205.49

Frame 60 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)

No. Time Source Destination Protocol Info
61 59.813242 Teletron_14:02:69 Broadcast ARP Who has 41.217.205.54? Tell 41.217.205.49

Frame 61 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)

No. Time Source Destination Protocol Info
62 61.313216 Teletron_14:02:69 Broadcast ARP Who has 41.217.205.54? Tell 41.217.205.49

Frame 62 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)

No. Time Source Destination Protocol Info
63 62.212854 Teletron_14:02:69 Broadcast ARP Who has 41.217.205.54? Tell 41.217.205.49

Frame 63 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)

No. Time Source Destination Protocol Info
64 62.552445 Teletron_14:02:69 Broadcast ARP Who has 41.217.206.70? Tell 41.217.206.65

Frame 64 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)

No. Time Source Destination Protocol Info
65 63.212550 Teletron_14:02:69 Broadcast ARP Who has 41.217.206.70? Tell 41.217.206.65

Frame 65 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)

No. Time Source Destination Protocol Info
66 63.969584 Teletron_14:02:69 Broadcast ARP Who has 41.217.206.70? Tell 41.217.206.65

Frame 66 (60 bytes on wire, 60 bytes captured)
Ethernet II, Src: Teletron_14:02:69 (00:0d:f5:14:02:69), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Address Resolution Protocol (request)
Back to top
View user's profile Send e-mail
muja
Brekeke Member


Joined: 08 Aug 2009
Posts: 15
Location: Nigeria

PostPosted: Tue Oct 19, 2010 7:37 am    Post subject: Removing Charaters from Caller ID Reply with quote

Hello

How do i remove all characters and leave only the digits of the caller id:

It looks like this:
0092348135739602;cpc=ordinary@XXX.XXX.XXX.XXX

I would want the caller id to look like this:
08135739602@XXX.XXX.XXX.XXX


Thank you
Back to top
View user's profile Send e-mail
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Tue Oct 19, 2010 10:33 am    Post subject: Reply with quote


Matching Patterns
$request = ^INVITE
$addr = <incoming_source_IP>
$geturi(From) = sip:.{6}(.+);.+@(.+)
To = sip:\+.{3}(.+)@
Deploy Patterns
$auth = false
From = sip:0%1@%2
To = sip:0%3@<destination_IP>
Back to top
View user's profile
muja
Brekeke Member


Joined: 08 Aug 2009
Posts: 15
Location: Nigeria

PostPosted: Wed Oct 20, 2010 8:13 am    Post subject: Reply with quote

Thanks a million Hope, the dial plan works, its has stripped off the 009234 prefix with the ;cpc=ordinary. Thanks again!
Back to top
View user's profile Send e-mail
kennedy joseph
Brekeke Member


Joined: 24 Aug 2010
Posts: 16

PostPosted: Thu Oct 21, 2010 5:07 pm    Post subject: Wholesale Termination. Reply with quote

Hi Muja,

I see you're located in Nigeria,we have good traffic to Nigeria.Please let me know if you're doing wholesaler Termination.

We're looking for direct route to Nigeria.

Regards,
Joseph,
Tel:+1-818-804-2992
+84-918-866-310
Email:joseph@irukatel.net
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke PBX Forum All times are GMT - 7 Hours
Page 1 of 1