how add a line in the database with axl?

Unanswered Question
Jun 5th, 2008
User Badges:

Hi, i would like add the line for a phone, with axl if it is possible.

But I must add a line in the table deviceNumPlanMap to associate a phone with a second line. the phone has already a first line.

How can I add the line in the table deviceNumPlanMap with AXL or other?

thanks you for your answer

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
stephan.steiner Fri, 06/06/2008 - 04:06
User Badges:
  • Silver, 250 points or more

first execute an addLine AXL operation, followed by an updatePhone operation (where you add the newly created line to the existing phone).

If you need help, execute a getPhone operation on an existing phone, then add a line via ccmadmin, do another getPhone and you'll see the difference and thus how a new line is being added.

Sascha Monteiro Fri, 06/06/2008 - 13:21
User Badges:
  • Silver, 250 points or more

careful, when you updatPhone with lines, it will remove all lines and add the stated lines..

so you need to read your phone first to get the uuid and device-specific settings, then updatePhone with the existing line1 and the new line2

(when you add a line to a phone it has device-specific settings like label, E164 mask etc)



This Discussion