06-18-2018 01:00 AM
Hi,
I try to add several SIP Trunks via AXL but this "addSipTrunk" is not working.
Does anybody know why this is not working?
my $res =
$cm->addSipTrunk(
SOAP::Data->attr({xmlns => ''})->name('name'=> $name),
SOAP::Data->attr({xmlns => ''})->name('description'=> $name),
SOAP::Data->attr({xmlns => ''})->name('product'=> 'SIP Trunk'),
SOAP::Data->attr({xmlns => ''})->name('class'=> 'Trunk'),
SOAP::Data->attr({xmlns => ''})->name('protocol'=> 'SIP'),
SOAP::Data->attr({xmlns => ''})->name('protocolSide'=> 'Network'),
SOAP::Data->attr({xmlns => ''})->name('devicePoolName'=> 'DEV-Pool'),
SOAP::Data->attr({xmlns => ''})->name('commonDeviceConfigName'=> 'German'),
SOAP::Data->attr({xmlns => ''})->name('mediaResourceListName'=> 'DE'),
SOAP::Data->attr({xmlns => ''})->name('locationName'=> 'DE'),
SOAP::Data->attr({xmlns => ''})->name('mtpRequired'=> 't'),
SOAP::Data->attr({xmlns => ''})->name('pstnAccess'=> 't'),
SOAP::Data->attr({xmlns => ''})->name('runOnEveryNode'=> 't'),
SOAP::Data->attr({xmlns => ''})->name('isPaiEnabled'=> 'f'),
SOAP::Data->attr({xmlns => ''})->name('sipAssertedType'=> 'PAI'),
SOAP::Data->attr({xmlns => ''})->name('callingSearchSpaceName'=> 'DE-International'),
SOAP::Data->attr({xmlns => ''})->name('originatingParameterValue'=> '711alaw'),
SOAP::Data->attr({xmlns => ''})->name('securityProfileName'=> 'SIP Profile'),
SOAP::Data->attr({xmlns => ''})->name('sipProfileName'=> 'SIP Profile'),
SOAP::Data->attr({xmlns => ''})->name('destinations'=> \SOAP::Data->attr({xmlns => ''})->value(
SOAP::Data->attr({xmlns => ''})->name('destination'=> \SOAP::Data->attr({xmlns => ''})->value(
SOAP::Data->attr({xmlns => ''})->name('addressIpv4'=> $ip),
SOAP::Data->attr({xmlns => ''})->name('port'=> '5060'),
)),
)),
);
BR
Michael
06-22-2018 07:50 AM
Are you getting an error message in the XML response?
A common error might be that one of the elements does not exist, e.g. the device pool or common device config.
06-23-2018 08:18 AM
Hi, I think that SipSecurityProfile is missing in your request.
Please check AXL Schema
https://developer.cisco.com/docs/axl-schema-reference/
or send us your response code from your soap client
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide