Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Area Code
Author Message
ka2qhg
Brekeke Addict


Joined: 21 Nov 2006
Posts: 34

PostPosted: Fri Apr 04, 2008 2:42 am    Post subject: Area Code Reply with quote

1. Brekeke Product Name and version:Brekeke sipserver 2.0

2. Java version:1.5

3. OS type and the version:Server 2003

4. UA (phone), gateway or other hardware/software involved:
Linksys PAP2, SPA3102, ect
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html :4

6. Your problem: Allowing outgoing call by Area Code.
Is it possible to allow only certain area
Codes to be dialed.
512,627,207 + plus phone number?

All other area codes would be rejected.

Thanks

_________________
Larry
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Fri Apr 04, 2008 3:02 pm    Post subject: Reply with quote

try following dial plan

matching patterns
-----------------------------
$request=^INVITE
To=sip:(512|627|207)(.+)@

deploy patterns
----------------------------
To=sip:%1%2@destinationIP
Back to top
View user's profile
ka2qhg
Brekeke Addict


Joined: 21 Nov 2006
Posts: 34

PostPosted: Fri Apr 04, 2008 4:46 pm    Post subject: Area Code Reply with quote

Thanks Hope
it worked

_________________
Larry
Back to top
View user's profile
hopkinsnewfound47
Brekeke Newbie


Joined: 20 Aug 2008
Posts: 1

PostPosted: Wed Aug 20, 2008 1:44 pm    Post subject: Reply with quote

This was unbelievable helpful. The state of Orgeon NPXX situation to handle local vs. ld dial is crazy. To ensure I did a local exchange I used

matching patterns
----------------------------
To=sip:(503)(200|201|202|203|204|205|206|209|215|216|219|220|221|222|223|224|225|226|227|228|229|230|231|232|233|234|235|236|237|238|239|240|241|242|243|244|245|246|247|248|249|250|251|252|253|254|255|256|257|258|260|261|262|265|267|271|273|274|275|276|278|279|280|281|282|283|284|285|286|287|288|289|290|291|292|293|294|295|296|297|299|301|306|307|309|310|312|313|314|317|318|319|320|321|323|326|327|329|331|333|334|335|340|341|345|346|347|348|349|351|358|360|367|380|381|382|384|401|402|407|408|412|413|414|415|416|417|418|419|421|422|423|425|426|432|441|442|444|445|449|450|452|453|459|460|464|467|471|473|475|477|478|481|484|488|490|493|494|497|499|502|504|505|514|515|516|517|519|522|525|527|528|529|535|539|542|544|545|546|548|552|553|572|577|593|595|599|604|621|679|680|688|701|702|703|704|705|706|708|709|715|719|720|721|724|725|727|729|730|731|733|734|735|736|737|740|745|750|752|753|754|756|757|758|760|761|762|764|768|771|772|774|775|777|778|780|781|784|788|789|790|793|795|796|797|799|802|803|804|805|806|807|808|810|813|816|817|818|819|820|821|823|827|830|833|839|841|849|853|860|863|865|866|867|869|870|872|875|880|886|887|888|889|890|891|892|896|901|903|904|909|913|914|916|920|921|922|927|928|929|933|935|936|937|938|939|940|942|943|944|946|948|952|953|954|955|956|957|960|961|962|963|969|970|972|973|975|977|978|983|988|993|995|997|998)(....)@


deploy patterns
----------------------------
To=sip:%1%2%3@destinationIP:port

Thanks again....
Very Happy
Back to top
View user's profile Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1