#EnumDB.map! {|x| x.class == Hash ? keys_to_ENUM(x) : x } # rebuild local ENUM table
CNAM = {
'(206) 424-1234' => 'My Home',
}
CNAM = {
'(206) 424-1234' => 'My Home',
'10.mySipUserName' => 'Jay', #when i add this it breaks. Ext 10 for ex.
}
10.mySSUserName is an account i created under the main account mySSUserName and has it's own ATA in a different location.
DialPlan 18:38:36:997 sip1: New call from udp:xx.140.154.xxx:5060 successfully authenticated by digest.
DialPlan 18:38:37:013 sip1: Using dialplan main for Out call to sip:10@sip1.sipsorcery.com.
NewCall 18:38:37:029 sip1: Executing script dial plan for call to 10.
DialPlan 18:38:37:154 sip1: ** Call from "My Home" <sip:mySSUserName@sip1.sipsorcery.com>;tag=d57476b95bc4d2d1o0 to 10 **
DialPlan 18:38:37:154 sip1: Local time: 08/21/2010 02:38
DialPlan 18:38:37:169 sip1: URI dialing: 10.mySSUserName.@local[ma=false]
DialPlan 18:38:37:169 sip1: Commencing Dial with: 10.mySSUserName@local[ma=false].
DialPlan 18:38:37:185 sip1: Call leg is for local domain forwarding to incoming dialplan for 10.mySSUserName@sipsorcery.com.
DialPlan 18:38:37:185 sip1: ForkCall commencing call leg to sip:10.mySSUserName@local.
DialPlan 18:38:37:185 sip1: Creating B2B call for sip:10.mySSUserName@local.
DialPlan 18:38:37:216 sip1: Using dialplan gv_simple for In call to sip:10.mySSUserName@local.
NewCall 18:38:37:247 sip1: Executing script dial plan for call to 10.mySSUserName.
DialPlan 18:38:37:388 sip1: ** Call from <sip:mySSUserName@sipsorcery.com>;tag=1470999200 to 10.mySSUserName **
DialPlan 18:38:37:388 sip1: Local time: 08/21/2010 02:38
DialPlan 18:38:37:404 sip1: user ****** 10.mySSUserName and cname= and cid=mySSUserName
DialPlan 18:38:37:419 sip1: Dialplan cleanup for mySSUserName.
DialPlan 18:38:37:419 sip1: Call failed: code 603, Wrong number: '', check & dial again
DialPlan 18:38:37:419 sip1: UAS call failed with a response status of 603 and Wrong number: '', check & dial again.
DialPlan 18:38:37:419 sip1: Dialplan cleanup for mySSUserName.
DialPlan 18:38:37:513 sip1: Dial plan execution completed with normal clearing.
DialPlan 18:38:37:529 sip1: Dial plan execution completed with normal clearing.
# ********************** k e y s t o E N U M *************************
def keys_to_ENUM (table)
Hash[*table.keys.map! {|key| to_ENUM(key.dup)}.zip(table.values).flatten]
endi may suggest including the code to handle the SIP to SIP CNAM, since i'm sure others will eventually run into the same issues.
def IncomingCall
@cname ||= CNAM1[@cid]
sys.SetFromHeader(formatNum(@cname || @cid,true), nil, Host) # Set FromName & FromHost for sys.Dial
# ...Users browsing this forum: No registered users and 1 guest