cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1988
Views
0
Helpful
2
Replies

addSipTrunk not working

Michael Schmidt
Level 1
Level 1

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

2 Replies 2

dcburleigh
Level 1
Level 1

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.

BjoernMartin
Spotlight
Spotlight

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